public class CreateResourceServerRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Creates a new OAuth2.0 resource server and defines custom scopes within it.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
| Constructor and Description |
|---|
CreateResourceServerRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIdentifier()
A unique resource server identifier for the resource server.
|
java.lang.String |
getName()
A friendly name for the resource server.
|
java.util.List<ResourceServerScopeType> |
getScopes()
A list of scopes.
|
java.lang.String |
getUserPoolId()
The user pool ID for the user pool.
|
int |
hashCode() |
void |
setIdentifier(java.lang.String identifier)
A unique resource server identifier for the resource server.
|
void |
setName(java.lang.String name)
A friendly name for the resource server.
|
void |
setScopes(java.util.Collection<ResourceServerScopeType> scopes)
A list of scopes.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateResourceServerRequest |
withIdentifier(java.lang.String identifier)
A unique resource server identifier for the resource server.
|
CreateResourceServerRequest |
withName(java.lang.String name)
A friendly name for the resource server.
|
CreateResourceServerRequest |
withScopes(java.util.Collection<ResourceServerScopeType> scopes)
A list of scopes.
|
CreateResourceServerRequest |
withScopes(ResourceServerScopeType... scopes)
A list of scopes.
|
CreateResourceServerRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getUserPoolId()
The user pool ID for the user pool.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID for the user pool.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool.
public CreateResourceServerRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool.
public java.lang.String getIdentifier()
A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located, such as
https://my-weather-api.example.com.
Constraints:
Length: 1 - 256
Pattern: [\x21\x23-\x5B\x5D-\x7E]+
A unique resource server identifier for the resource server. This
could be an HTTPS endpoint where the resource server is located,
such as https://my-weather-api.example.com.
public void setIdentifier(java.lang.String identifier)
A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located, such as
https://my-weather-api.example.com.
Constraints:
Length: 1 - 256
Pattern: [\x21\x23-\x5B\x5D-\x7E]+
identifier -
A unique resource server identifier for the resource server.
This could be an HTTPS endpoint where the resource server is
located, such as
https://my-weather-api.example.com.
public CreateResourceServerRequest withIdentifier(java.lang.String identifier)
A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located, such as
https://my-weather-api.example.com.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [\x21\x23-\x5B\x5D-\x7E]+
identifier -
A unique resource server identifier for the resource server.
This could be an HTTPS endpoint where the resource server is
located, such as
https://my-weather-api.example.com.
public java.lang.String getName()
A friendly name for the resource server.
Constraints:
Length: 1 - 256
Pattern: [\w\s+=,.@-]+
A friendly name for the resource server.
public void setName(java.lang.String name)
A friendly name for the resource server.
Constraints:
Length: 1 - 256
Pattern: [\w\s+=,.@-]+
name - A friendly name for the resource server.
public CreateResourceServerRequest withName(java.lang.String name)
A friendly name for the resource server.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [\w\s+=,.@-]+
name - A friendly name for the resource server.
public java.util.List<ResourceServerScopeType> getScopes()
A list of scopes. Each scope is a key-value map with the keys
name and description.
A list of scopes. Each scope is a key-value map with the keys
name and description.
public void setScopes(java.util.Collection<ResourceServerScopeType> scopes)
A list of scopes. Each scope is a key-value map with the keys
name and description.
scopes -
A list of scopes. Each scope is a key-value map with the keys
name and description.
public CreateResourceServerRequest withScopes(ResourceServerScopeType... scopes)
A list of scopes. Each scope is a key-value map with the keys
name and description.
Returns a reference to this object so that method calls can be chained together.
scopes -
A list of scopes. Each scope is a key-value map with the keys
name and description.
public CreateResourceServerRequest withScopes(java.util.Collection<ResourceServerScopeType> scopes)
A list of scopes. Each scope is a key-value map with the keys
name and description.
Returns a reference to this object so that method calls can be chained together.
scopes -
A list of scopes. Each scope is a key-value map with the keys
name and description.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object