public class UpdateResourceServerRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Updates the name and scopes of resource server. All other fields are read-only.
If you don't provide a value for an attribute, it is set to the default value.
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 |
|---|
UpdateResourceServerRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIdentifier()
The identifier for the resource server.
|
java.lang.String |
getName()
The name of the resource server.
|
java.util.List<ResourceServerScopeType> |
getScopes()
The scope values to be set for the resource server.
|
java.lang.String |
getUserPoolId()
The user pool ID for the user pool.
|
int |
hashCode() |
void |
setIdentifier(java.lang.String identifier)
The identifier for the resource server.
|
void |
setName(java.lang.String name)
The name of the resource server.
|
void |
setScopes(java.util.Collection<ResourceServerScopeType> scopes)
The scope values to be set for the resource server.
|
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.
|
UpdateResourceServerRequest |
withIdentifier(java.lang.String identifier)
The identifier for the resource server.
|
UpdateResourceServerRequest |
withName(java.lang.String name)
The name of the resource server.
|
UpdateResourceServerRequest |
withScopes(java.util.Collection<ResourceServerScopeType> scopes)
The scope values to be set for the resource server.
|
UpdateResourceServerRequest |
withScopes(ResourceServerScopeType... scopes)
The scope values to be set for the resource server.
|
UpdateResourceServerRequest |
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 UpdateResourceServerRequest 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()
The identifier for the resource server.
Constraints:
Length: 1 - 256
Pattern: [\x21\x23-\x5B\x5D-\x7E]+
The identifier for the resource server.
public void setIdentifier(java.lang.String identifier)
The identifier for the resource server.
Constraints:
Length: 1 - 256
Pattern: [\x21\x23-\x5B\x5D-\x7E]+
identifier - The identifier for the resource server.
public UpdateResourceServerRequest withIdentifier(java.lang.String identifier)
The identifier for the resource server.
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 - The identifier for the resource server.
public java.lang.String getName()
The name of the resource server.
Constraints:
Length: 1 - 256
Pattern: [\w\s+=,.@-]+
The name of the resource server.
public void setName(java.lang.String name)
The name of the resource server.
Constraints:
Length: 1 - 256
Pattern: [\w\s+=,.@-]+
name - The name of the resource server.
public UpdateResourceServerRequest withName(java.lang.String name)
The name of 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 - The name of the resource server.
public java.util.List<ResourceServerScopeType> getScopes()
The scope values to be set for the resource server.
The scope values to be set for the resource server.
public void setScopes(java.util.Collection<ResourceServerScopeType> scopes)
The scope values to be set for the resource server.
scopes - The scope values to be set for the resource server.
public UpdateResourceServerRequest withScopes(ResourceServerScopeType... scopes)
The scope values to be set for the resource server.
Returns a reference to this object so that method calls can be chained together.
scopes - The scope values to be set for the resource server.
public UpdateResourceServerRequest withScopes(java.util.Collection<ResourceServerScopeType> scopes)
The scope values to be set for the resource server.
Returns a reference to this object so that method calls can be chained together.
scopes - The scope values to be set for the resource server.
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