@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class RequestAuthenticationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Details for request HTTP authentication.
Note: Objects should always be created or deserialized using the RequestAuthenticationDetails.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the RequestAuthenticationDetails.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
RequestAuthenticationDetails.Builder |
Constructor and Description |
---|
RequestAuthenticationDetails(OAuthSchemes oauthScheme,
String authUserName,
String authUserPassword,
String authToken,
String authUrl,
List<Header> authHeaders,
RequestMethods authRequestMethod,
String authRequestPostBody)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RequestAuthenticationDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<Header> |
getAuthHeaders()
List of authentication headers.
|
RequestMethods |
getAuthRequestMethod()
Request method.
|
String |
getAuthRequestPostBody()
Request post body.
|
String |
getAuthToken()
Authentication token.
|
String |
getAuthUrl()
URL to get authetication token.
|
String |
getAuthUserName()
Username for authentication.
|
String |
getAuthUserPassword()
User password for authentication.
|
OAuthSchemes |
getOauthScheme()
Request http oauth scheme.
|
int |
hashCode() |
RequestAuthenticationDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"oauthScheme","authUserName","authUserPassword","authToken","authUrl","authHeaders","authRequestMethod","authRequestPostBody"}) public RequestAuthenticationDetails(OAuthSchemes oauthScheme, String authUserName, String authUserPassword, String authToken, String authUrl, List<Header> authHeaders, RequestMethods authRequestMethod, String authRequestPostBody)
public static RequestAuthenticationDetails.Builder builder()
Create a new builder.
public RequestAuthenticationDetails.Builder toBuilder()
public OAuthSchemes getOauthScheme()
Request http oauth scheme.
public String getAuthUserName()
Username for authentication.
public String getAuthUserPassword()
User password for authentication.
public String getAuthToken()
Authentication token.
public String getAuthUrl()
URL to get authetication token.
public List<Header> getAuthHeaders()
List of authentication headers. Example: [{"headerName": "content-type",
"headerValue":"json"}]
public RequestMethods getAuthRequestMethod()
Request method.
public String getAuthRequestPostBody()
Request post body.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.