@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 RequestAuthenticationDetails.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
RequestAuthenticationDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
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 authentication token.
|
String |
getAuthUserName()
User name 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()
User name for authentication.
public String getAuthUserPassword()
User password for authentication.
public String getAuthToken()
Authentication token.
public String getAuthUrl()
URL to get authentication 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–2024. All rights reserved.