@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Grant extends Object implements Serializable, Cloneable, StructuredPojo
The Grant union represents the set of possible configuration options for the selected grant type. Exactly one member of the union must be specified, and must match the grant type selected.
Constructor and Description |
---|
Grant() |
Modifier and Type | Method and Description |
---|---|
Grant |
clone() |
boolean |
equals(Object obj) |
AuthorizationCodeGrant |
getAuthorizationCode()
Configuration options for the
authorization_code grant type. |
JwtBearerGrant |
getJwtBearer()
Configuration options for the
urn:ietf:params:oauth:grant-type:jwt-bearer grant type. |
RefreshTokenGrant |
getRefreshToken()
Configuration options for the
refresh_token grant type. |
TokenExchangeGrant |
getTokenExchange()
Configuration options for the
urn:ietf:params:oauth:grant-type:token-exchange grant type. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAuthorizationCode(AuthorizationCodeGrant authorizationCode)
Configuration options for the
authorization_code grant type. |
void |
setJwtBearer(JwtBearerGrant jwtBearer)
Configuration options for the
urn:ietf:params:oauth:grant-type:jwt-bearer grant type. |
void |
setRefreshToken(RefreshTokenGrant refreshToken)
Configuration options for the
refresh_token grant type. |
void |
setTokenExchange(TokenExchangeGrant tokenExchange)
Configuration options for the
urn:ietf:params:oauth:grant-type:token-exchange grant type. |
String |
toString()
Returns a string representation of this object.
|
Grant |
withAuthorizationCode(AuthorizationCodeGrant authorizationCode)
Configuration options for the
authorization_code grant type. |
Grant |
withJwtBearer(JwtBearerGrant jwtBearer)
Configuration options for the
urn:ietf:params:oauth:grant-type:jwt-bearer grant type. |
Grant |
withRefreshToken(RefreshTokenGrant refreshToken)
Configuration options for the
refresh_token grant type. |
Grant |
withTokenExchange(TokenExchangeGrant tokenExchange)
Configuration options for the
urn:ietf:params:oauth:grant-type:token-exchange grant type. |
public void setAuthorizationCode(AuthorizationCodeGrant authorizationCode)
Configuration options for the authorization_code
grant type.
authorizationCode
- Configuration options for the authorization_code
grant type.public AuthorizationCodeGrant getAuthorizationCode()
Configuration options for the authorization_code
grant type.
authorization_code
grant type.public Grant withAuthorizationCode(AuthorizationCodeGrant authorizationCode)
Configuration options for the authorization_code
grant type.
authorizationCode
- Configuration options for the authorization_code
grant type.public void setJwtBearer(JwtBearerGrant jwtBearer)
Configuration options for the urn:ietf:params:oauth:grant-type:jwt-bearer
grant type.
jwtBearer
- Configuration options for the urn:ietf:params:oauth:grant-type:jwt-bearer
grant type.public JwtBearerGrant getJwtBearer()
Configuration options for the urn:ietf:params:oauth:grant-type:jwt-bearer
grant type.
urn:ietf:params:oauth:grant-type:jwt-bearer
grant type.public Grant withJwtBearer(JwtBearerGrant jwtBearer)
Configuration options for the urn:ietf:params:oauth:grant-type:jwt-bearer
grant type.
jwtBearer
- Configuration options for the urn:ietf:params:oauth:grant-type:jwt-bearer
grant type.public void setRefreshToken(RefreshTokenGrant refreshToken)
Configuration options for the refresh_token
grant type.
refreshToken
- Configuration options for the refresh_token
grant type.public RefreshTokenGrant getRefreshToken()
Configuration options for the refresh_token
grant type.
refresh_token
grant type.public Grant withRefreshToken(RefreshTokenGrant refreshToken)
Configuration options for the refresh_token
grant type.
refreshToken
- Configuration options for the refresh_token
grant type.public void setTokenExchange(TokenExchangeGrant tokenExchange)
Configuration options for the urn:ietf:params:oauth:grant-type:token-exchange
grant type.
tokenExchange
- Configuration options for the urn:ietf:params:oauth:grant-type:token-exchange
grant type.public TokenExchangeGrant getTokenExchange()
Configuration options for the urn:ietf:params:oauth:grant-type:token-exchange
grant type.
urn:ietf:params:oauth:grant-type:token-exchange
grant type.public Grant withTokenExchange(TokenExchangeGrant tokenExchange)
Configuration options for the urn:ietf:params:oauth:grant-type:token-exchange
grant type.
tokenExchange
- Configuration options for the urn:ietf:params:oauth:grant-type:token-exchange
grant type.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.