@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UserPoolClientType extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a user pool client.
Constructor and Description |
---|
UserPoolClientType() |
Modifier and Type | Method and Description |
---|---|
UserPoolClientType |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAllowedOAuthFlows()
Set to
code to initiate a code grant flow, which provides an authorization code as the response. |
Boolean |
getAllowedOAuthFlowsUserPoolClient()
Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
|
List<String> |
getAllowedOAuthScopes()
A list of allowed
OAuth scopes. |
List<String> |
getCallbackURLs()
A list of allowed callback URLs for the identity providers.
|
String |
getClientId()
The ID of the client associated with the user pool.
|
String |
getClientName()
The client name from the user pool request of the client type.
|
String |
getClientSecret()
The client secret from the user pool request of the client type.
|
Date |
getCreationDate()
The date the user pool client was created.
|
String |
getDefaultRedirectURI()
The default redirect URI.
|
List<String> |
getExplicitAuthFlows()
The explicit authentication flows.
|
Date |
getLastModifiedDate()
The date the user pool client was last modified.
|
List<String> |
getLogoutURLs()
A list of allowed logout URLs for the identity providers.
|
List<String> |
getReadAttributes()
The Read-only attributes.
|
Integer |
getRefreshTokenValidity()
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
|
List<String> |
getSupportedIdentityProviders()
A list of provider names for the identity providers that are supported on this client.
|
String |
getUserPoolId()
The user pool ID for the user pool client.
|
List<String> |
getWriteAttributes()
The writeable attributes.
|
int |
hashCode() |
Boolean |
isAllowedOAuthFlowsUserPoolClient()
Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowedOAuthFlows(Collection<String> allowedOAuthFlows)
Set to
code to initiate a code grant flow, which provides an authorization code as the response. |
void |
setAllowedOAuthFlowsUserPoolClient(Boolean allowedOAuthFlowsUserPoolClient)
Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
|
void |
setAllowedOAuthScopes(Collection<String> allowedOAuthScopes)
A list of allowed
OAuth scopes. |
void |
setCallbackURLs(Collection<String> callbackURLs)
A list of allowed callback URLs for the identity providers.
|
void |
setClientId(String clientId)
The ID of the client associated with the user pool.
|
void |
setClientName(String clientName)
The client name from the user pool request of the client type.
|
void |
setClientSecret(String clientSecret)
The client secret from the user pool request of the client type.
|
void |
setCreationDate(Date creationDate)
The date the user pool client was created.
|
void |
setDefaultRedirectURI(String defaultRedirectURI)
The default redirect URI.
|
void |
setExplicitAuthFlows(Collection<String> explicitAuthFlows)
The explicit authentication flows.
|
void |
setLastModifiedDate(Date lastModifiedDate)
The date the user pool client was last modified.
|
void |
setLogoutURLs(Collection<String> logoutURLs)
A list of allowed logout URLs for the identity providers.
|
void |
setReadAttributes(Collection<String> readAttributes)
The Read-only attributes.
|
void |
setRefreshTokenValidity(Integer refreshTokenValidity)
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
|
void |
setSupportedIdentityProviders(Collection<String> supportedIdentityProviders)
A list of provider names for the identity providers that are supported on this client.
|
void |
setUserPoolId(String userPoolId)
The user pool ID for the user pool client.
|
void |
setWriteAttributes(Collection<String> writeAttributes)
The writeable attributes.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UserPoolClientType |
withAllowedOAuthFlows(Collection<String> allowedOAuthFlows)
Set to
code to initiate a code grant flow, which provides an authorization code as the response. |
UserPoolClientType |
withAllowedOAuthFlows(OAuthFlowType... allowedOAuthFlows)
Set to
code to initiate a code grant flow, which provides an authorization code as the response. |
UserPoolClientType |
withAllowedOAuthFlows(String... allowedOAuthFlows)
Set to
code to initiate a code grant flow, which provides an authorization code as the response. |
UserPoolClientType |
withAllowedOAuthFlowsUserPoolClient(Boolean allowedOAuthFlowsUserPoolClient)
Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
|
UserPoolClientType |
withAllowedOAuthScopes(Collection<String> allowedOAuthScopes)
A list of allowed
OAuth scopes. |
UserPoolClientType |
withAllowedOAuthScopes(String... allowedOAuthScopes)
A list of allowed
OAuth scopes. |
UserPoolClientType |
withCallbackURLs(Collection<String> callbackURLs)
A list of allowed callback URLs for the identity providers.
|
UserPoolClientType |
withCallbackURLs(String... callbackURLs)
A list of allowed callback URLs for the identity providers.
|
UserPoolClientType |
withClientId(String clientId)
The ID of the client associated with the user pool.
|
UserPoolClientType |
withClientName(String clientName)
The client name from the user pool request of the client type.
|
UserPoolClientType |
withClientSecret(String clientSecret)
The client secret from the user pool request of the client type.
|
UserPoolClientType |
withCreationDate(Date creationDate)
The date the user pool client was created.
|
UserPoolClientType |
withDefaultRedirectURI(String defaultRedirectURI)
The default redirect URI.
|
UserPoolClientType |
withExplicitAuthFlows(Collection<String> explicitAuthFlows)
The explicit authentication flows.
|
UserPoolClientType |
withExplicitAuthFlows(ExplicitAuthFlowsType... explicitAuthFlows)
The explicit authentication flows.
|
UserPoolClientType |
withExplicitAuthFlows(String... explicitAuthFlows)
The explicit authentication flows.
|
UserPoolClientType |
withLastModifiedDate(Date lastModifiedDate)
The date the user pool client was last modified.
|
UserPoolClientType |
withLogoutURLs(Collection<String> logoutURLs)
A list of allowed logout URLs for the identity providers.
|
UserPoolClientType |
withLogoutURLs(String... logoutURLs)
A list of allowed logout URLs for the identity providers.
|
UserPoolClientType |
withReadAttributes(Collection<String> readAttributes)
The Read-only attributes.
|
UserPoolClientType |
withReadAttributes(String... readAttributes)
The Read-only attributes.
|
UserPoolClientType |
withRefreshTokenValidity(Integer refreshTokenValidity)
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
|
UserPoolClientType |
withSupportedIdentityProviders(Collection<String> supportedIdentityProviders)
A list of provider names for the identity providers that are supported on this client.
|
UserPoolClientType |
withSupportedIdentityProviders(String... supportedIdentityProviders)
A list of provider names for the identity providers that are supported on this client.
|
UserPoolClientType |
withUserPoolId(String userPoolId)
The user pool ID for the user pool client.
|
UserPoolClientType |
withWriteAttributes(Collection<String> writeAttributes)
The writeable attributes.
|
UserPoolClientType |
withWriteAttributes(String... writeAttributes)
The writeable attributes.
|
public void setUserPoolId(String userPoolId)
The user pool ID for the user pool client.
userPoolId
- The user pool ID for the user pool client.public String getUserPoolId()
The user pool ID for the user pool client.
public UserPoolClientType withUserPoolId(String userPoolId)
The user pool ID for the user pool client.
userPoolId
- The user pool ID for the user pool client.public void setClientName(String clientName)
The client name from the user pool request of the client type.
clientName
- The client name from the user pool request of the client type.public String getClientName()
The client name from the user pool request of the client type.
public UserPoolClientType withClientName(String clientName)
The client name from the user pool request of the client type.
clientName
- The client name from the user pool request of the client type.public void setClientId(String clientId)
The ID of the client associated with the user pool.
clientId
- The ID of the client associated with the user pool.public String getClientId()
The ID of the client associated with the user pool.
public UserPoolClientType withClientId(String clientId)
The ID of the client associated with the user pool.
clientId
- The ID of the client associated with the user pool.public void setClientSecret(String clientSecret)
The client secret from the user pool request of the client type.
clientSecret
- The client secret from the user pool request of the client type.public String getClientSecret()
The client secret from the user pool request of the client type.
public UserPoolClientType withClientSecret(String clientSecret)
The client secret from the user pool request of the client type.
clientSecret
- The client secret from the user pool request of the client type.public void setLastModifiedDate(Date lastModifiedDate)
The date the user pool client was last modified.
lastModifiedDate
- The date the user pool client was last modified.public Date getLastModifiedDate()
The date the user pool client was last modified.
public UserPoolClientType withLastModifiedDate(Date lastModifiedDate)
The date the user pool client was last modified.
lastModifiedDate
- The date the user pool client was last modified.public void setCreationDate(Date creationDate)
The date the user pool client was created.
creationDate
- The date the user pool client was created.public Date getCreationDate()
The date the user pool client was created.
public UserPoolClientType withCreationDate(Date creationDate)
The date the user pool client was created.
creationDate
- The date the user pool client was created.public void setRefreshTokenValidity(Integer refreshTokenValidity)
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
refreshTokenValidity
- The time limit, in days, after which the refresh token is no longer valid and cannot be used.public Integer getRefreshTokenValidity()
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
public UserPoolClientType withRefreshTokenValidity(Integer refreshTokenValidity)
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
refreshTokenValidity
- The time limit, in days, after which the refresh token is no longer valid and cannot be used.public List<String> getReadAttributes()
The Read-only attributes.
public void setReadAttributes(Collection<String> readAttributes)
The Read-only attributes.
readAttributes
- The Read-only attributes.public UserPoolClientType withReadAttributes(String... readAttributes)
The Read-only attributes.
NOTE: This method appends the values to the existing list (if any). Use
setReadAttributes(java.util.Collection)
or withReadAttributes(java.util.Collection)
if you want
to override the existing values.
readAttributes
- The Read-only attributes.public UserPoolClientType withReadAttributes(Collection<String> readAttributes)
The Read-only attributes.
readAttributes
- The Read-only attributes.public List<String> getWriteAttributes()
The writeable attributes.
public void setWriteAttributes(Collection<String> writeAttributes)
The writeable attributes.
writeAttributes
- The writeable attributes.public UserPoolClientType withWriteAttributes(String... writeAttributes)
The writeable attributes.
NOTE: This method appends the values to the existing list (if any). Use
setWriteAttributes(java.util.Collection)
or withWriteAttributes(java.util.Collection)
if you
want to override the existing values.
writeAttributes
- The writeable attributes.public UserPoolClientType withWriteAttributes(Collection<String> writeAttributes)
The writeable attributes.
writeAttributes
- The writeable attributes.public List<String> getExplicitAuthFlows()
The explicit authentication flows.
ExplicitAuthFlowsType
public void setExplicitAuthFlows(Collection<String> explicitAuthFlows)
The explicit authentication flows.
explicitAuthFlows
- The explicit authentication flows.ExplicitAuthFlowsType
public UserPoolClientType withExplicitAuthFlows(String... explicitAuthFlows)
The explicit authentication flows.
NOTE: This method appends the values to the existing list (if any). Use
setExplicitAuthFlows(java.util.Collection)
or withExplicitAuthFlows(java.util.Collection)
if
you want to override the existing values.
explicitAuthFlows
- The explicit authentication flows.ExplicitAuthFlowsType
public UserPoolClientType withExplicitAuthFlows(Collection<String> explicitAuthFlows)
The explicit authentication flows.
explicitAuthFlows
- The explicit authentication flows.ExplicitAuthFlowsType
public UserPoolClientType withExplicitAuthFlows(ExplicitAuthFlowsType... explicitAuthFlows)
The explicit authentication flows.
explicitAuthFlows
- The explicit authentication flows.ExplicitAuthFlowsType
public List<String> getSupportedIdentityProviders()
A list of provider names for the identity providers that are supported on this client.
public void setSupportedIdentityProviders(Collection<String> supportedIdentityProviders)
A list of provider names for the identity providers that are supported on this client.
supportedIdentityProviders
- A list of provider names for the identity providers that are supported on this client.public UserPoolClientType withSupportedIdentityProviders(String... supportedIdentityProviders)
A list of provider names for the identity providers that are supported on this client.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedIdentityProviders(java.util.Collection)
or
withSupportedIdentityProviders(java.util.Collection)
if you want to override the existing values.
supportedIdentityProviders
- A list of provider names for the identity providers that are supported on this client.public UserPoolClientType withSupportedIdentityProviders(Collection<String> supportedIdentityProviders)
A list of provider names for the identity providers that are supported on this client.
supportedIdentityProviders
- A list of provider names for the identity providers that are supported on this client.public List<String> getCallbackURLs()
A list of allowed callback URLs for the identity providers.
public void setCallbackURLs(Collection<String> callbackURLs)
A list of allowed callback URLs for the identity providers.
callbackURLs
- A list of allowed callback URLs for the identity providers.public UserPoolClientType withCallbackURLs(String... callbackURLs)
A list of allowed callback URLs for the identity providers.
NOTE: This method appends the values to the existing list (if any). Use
setCallbackURLs(java.util.Collection)
or withCallbackURLs(java.util.Collection)
if you want to
override the existing values.
callbackURLs
- A list of allowed callback URLs for the identity providers.public UserPoolClientType withCallbackURLs(Collection<String> callbackURLs)
A list of allowed callback URLs for the identity providers.
callbackURLs
- A list of allowed callback URLs for the identity providers.public List<String> getLogoutURLs()
A list of allowed logout URLs for the identity providers.
public void setLogoutURLs(Collection<String> logoutURLs)
A list of allowed logout URLs for the identity providers.
logoutURLs
- A list of allowed logout URLs for the identity providers.public UserPoolClientType withLogoutURLs(String... logoutURLs)
A list of allowed logout URLs for the identity providers.
NOTE: This method appends the values to the existing list (if any). Use
setLogoutURLs(java.util.Collection)
or withLogoutURLs(java.util.Collection)
if you want to
override the existing values.
logoutURLs
- A list of allowed logout URLs for the identity providers.public UserPoolClientType withLogoutURLs(Collection<String> logoutURLs)
A list of allowed logout URLs for the identity providers.
logoutURLs
- A list of allowed logout URLs for the identity providers.public void setDefaultRedirectURI(String defaultRedirectURI)
The default redirect URI. Must be in the CallbackURLs
list.
defaultRedirectURI
- The default redirect URI. Must be in the CallbackURLs
list.public String getDefaultRedirectURI()
The default redirect URI. Must be in the CallbackURLs
list.
CallbackURLs
list.public UserPoolClientType withDefaultRedirectURI(String defaultRedirectURI)
The default redirect URI. Must be in the CallbackURLs
list.
defaultRedirectURI
- The default redirect URI. Must be in the CallbackURLs
list.public List<String> getAllowedOAuthFlows()
Set to code
to initiate a code grant flow, which provides an authorization code as the response.
This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID token,
based on scopes) directly.
code
to initiate a code grant flow, which provides an authorization code as the
response. This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID
token, based on scopes) directly.
OAuthFlowType
public void setAllowedOAuthFlows(Collection<String> allowedOAuthFlows)
Set to code
to initiate a code grant flow, which provides an authorization code as the response.
This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID token,
based on scopes) directly.
allowedOAuthFlows
- Set to code
to initiate a code grant flow, which provides an authorization code as the
response. This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID
token, based on scopes) directly.
OAuthFlowType
public UserPoolClientType withAllowedOAuthFlows(String... allowedOAuthFlows)
Set to code
to initiate a code grant flow, which provides an authorization code as the response.
This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID token,
based on scopes) directly.
NOTE: This method appends the values to the existing list (if any). Use
setAllowedOAuthFlows(java.util.Collection)
or withAllowedOAuthFlows(java.util.Collection)
if
you want to override the existing values.
allowedOAuthFlows
- Set to code
to initiate a code grant flow, which provides an authorization code as the
response. This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID
token, based on scopes) directly.
OAuthFlowType
public UserPoolClientType withAllowedOAuthFlows(Collection<String> allowedOAuthFlows)
Set to code
to initiate a code grant flow, which provides an authorization code as the response.
This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID token,
based on scopes) directly.
allowedOAuthFlows
- Set to code
to initiate a code grant flow, which provides an authorization code as the
response. This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID
token, based on scopes) directly.
OAuthFlowType
public UserPoolClientType withAllowedOAuthFlows(OAuthFlowType... allowedOAuthFlows)
Set to code
to initiate a code grant flow, which provides an authorization code as the response.
This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID token,
based on scopes) directly.
allowedOAuthFlows
- Set to code
to initiate a code grant flow, which provides an authorization code as the
response. This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID
token, based on scopes) directly.
OAuthFlowType
public List<String> getAllowedOAuthScopes()
A list of allowed OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.
OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.public void setAllowedOAuthScopes(Collection<String> allowedOAuthScopes)
A list of allowed OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.
allowedOAuthScopes
- A list of allowed OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.public UserPoolClientType withAllowedOAuthScopes(String... allowedOAuthScopes)
A list of allowed OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.
NOTE: This method appends the values to the existing list (if any). Use
setAllowedOAuthScopes(java.util.Collection)
or withAllowedOAuthScopes(java.util.Collection)
if
you want to override the existing values.
allowedOAuthScopes
- A list of allowed OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.public UserPoolClientType withAllowedOAuthScopes(Collection<String> allowedOAuthScopes)
A list of allowed OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.
allowedOAuthScopes
- A list of allowed OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.public void setAllowedOAuthFlowsUserPoolClient(Boolean allowedOAuthFlowsUserPoolClient)
Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
allowedOAuthFlowsUserPoolClient
- Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user
pools.public Boolean getAllowedOAuthFlowsUserPoolClient()
Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
public UserPoolClientType withAllowedOAuthFlowsUserPoolClient(Boolean allowedOAuthFlowsUserPoolClient)
Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
allowedOAuthFlowsUserPoolClient
- Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user
pools.public Boolean isAllowedOAuthFlowsUserPoolClient()
Set to TRUE if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
public String toString()
toString
in class Object
Object.toString()
public UserPoolClientType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.