@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OAuth2PropertiesInput extends Object implements Serializable, Cloneable, StructuredPojo
A structure containing properties for OAuth2 in the CreateConnection request.
Constructor and Description |
---|
OAuth2PropertiesInput() |
Modifier and Type | Method and Description |
---|---|
OAuth2PropertiesInput |
addTokenUrlParametersMapEntry(String key,
String value)
Add a single TokenUrlParametersMap entry
|
OAuth2PropertiesInput |
clearTokenUrlParametersMapEntries()
Removes all the entries added into TokenUrlParametersMap.
|
OAuth2PropertiesInput |
clone() |
boolean |
equals(Object obj) |
AuthorizationCodeProperties |
getAuthorizationCodeProperties()
The set of properties required for the the OAuth2
AUTHORIZATION_CODE grant type. |
OAuth2ClientApplication |
getOAuth2ClientApplication()
The client application type in the CreateConnection request.
|
String |
getOAuth2GrantType()
The OAuth2 grant type in the CreateConnection request.
|
String |
getTokenUrl()
The URL of the provider's authentication server, to exchange an authorization code for an access token.
|
Map<String,String> |
getTokenUrlParametersMap()
A map of parameters that are added to the token
GET request. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAuthorizationCodeProperties(AuthorizationCodeProperties authorizationCodeProperties)
The set of properties required for the the OAuth2
AUTHORIZATION_CODE grant type. |
void |
setOAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type in the CreateConnection request.
|
void |
setOAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type in the CreateConnection request.
|
void |
setTokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
|
void |
setTokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token
GET request. |
String |
toString()
Returns a string representation of this object.
|
OAuth2PropertiesInput |
withAuthorizationCodeProperties(AuthorizationCodeProperties authorizationCodeProperties)
The set of properties required for the the OAuth2
AUTHORIZATION_CODE grant type. |
OAuth2PropertiesInput |
withOAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type in the CreateConnection request.
|
OAuth2PropertiesInput |
withOAuth2GrantType(OAuth2GrantType oAuth2GrantType)
The OAuth2 grant type in the CreateConnection request.
|
OAuth2PropertiesInput |
withOAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type in the CreateConnection request.
|
OAuth2PropertiesInput |
withTokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
|
OAuth2PropertiesInput |
withTokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token
GET request. |
public void setOAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE
,
JWT_BEARER
, or CLIENT_CREDENTIALS
.
oAuth2GrantType
- The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE
,
JWT_BEARER
, or CLIENT_CREDENTIALS
.OAuth2GrantType
public String getOAuth2GrantType()
The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE
,
JWT_BEARER
, or CLIENT_CREDENTIALS
.
AUTHORIZATION_CODE
,
JWT_BEARER
, or CLIENT_CREDENTIALS
.OAuth2GrantType
public OAuth2PropertiesInput withOAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE
,
JWT_BEARER
, or CLIENT_CREDENTIALS
.
oAuth2GrantType
- The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE
,
JWT_BEARER
, or CLIENT_CREDENTIALS
.OAuth2GrantType
public OAuth2PropertiesInput withOAuth2GrantType(OAuth2GrantType oAuth2GrantType)
The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE
,
JWT_BEARER
, or CLIENT_CREDENTIALS
.
oAuth2GrantType
- The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE
,
JWT_BEARER
, or CLIENT_CREDENTIALS
.OAuth2GrantType
public void setOAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type in the CreateConnection request. For example, AWS_MANAGED
or
USER_MANAGED
.
oAuth2ClientApplication
- The client application type in the CreateConnection request. For example, AWS_MANAGED
or
USER_MANAGED
.public OAuth2ClientApplication getOAuth2ClientApplication()
The client application type in the CreateConnection request. For example, AWS_MANAGED
or
USER_MANAGED
.
AWS_MANAGED
or
USER_MANAGED
.public OAuth2PropertiesInput withOAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type in the CreateConnection request. For example, AWS_MANAGED
or
USER_MANAGED
.
oAuth2ClientApplication
- The client application type in the CreateConnection request. For example, AWS_MANAGED
or
USER_MANAGED
.public void setTokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
tokenUrl
- The URL of the provider's authentication server, to exchange an authorization code for an access token.public String getTokenUrl()
The URL of the provider's authentication server, to exchange an authorization code for an access token.
public OAuth2PropertiesInput withTokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
tokenUrl
- The URL of the provider's authentication server, to exchange an authorization code for an access token.public Map<String,String> getTokenUrlParametersMap()
A map of parameters that are added to the token GET
request.
GET
request.public void setTokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token GET
request.
tokenUrlParametersMap
- A map of parameters that are added to the token GET
request.public OAuth2PropertiesInput withTokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token GET
request.
tokenUrlParametersMap
- A map of parameters that are added to the token GET
request.public OAuth2PropertiesInput addTokenUrlParametersMapEntry(String key, String value)
public OAuth2PropertiesInput clearTokenUrlParametersMapEntries()
public void setAuthorizationCodeProperties(AuthorizationCodeProperties authorizationCodeProperties)
The set of properties required for the the OAuth2 AUTHORIZATION_CODE
grant type.
authorizationCodeProperties
- The set of properties required for the the OAuth2 AUTHORIZATION_CODE
grant type.public AuthorizationCodeProperties getAuthorizationCodeProperties()
The set of properties required for the the OAuth2 AUTHORIZATION_CODE
grant type.
AUTHORIZATION_CODE
grant type.public OAuth2PropertiesInput withAuthorizationCodeProperties(AuthorizationCodeProperties authorizationCodeProperties)
The set of properties required for the the OAuth2 AUTHORIZATION_CODE
grant type.
authorizationCodeProperties
- The set of properties required for the the OAuth2 AUTHORIZATION_CODE
grant type.public String toString()
toString
in class Object
Object.toString()
public OAuth2PropertiesInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.