public class CreateResourceServerRequest extends AmazonWebServiceRequest implements Serializable
Creates a new OAuth2.0 resource server and defines custom scopes in it.
| Constructor and Description |
|---|
CreateResourceServerRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getIdentifier()
A unique resource server identifier for the resource server.
|
String |
getName()
A friendly name for the resource server.
|
List<ResourceServerScopeType> |
getScopes()
A list of scopes.
|
String |
getUserPoolId()
The user pool ID for the user pool.
|
int |
hashCode() |
void |
setIdentifier(String identifier)
A unique resource server identifier for the resource server.
|
void |
setName(String name)
A friendly name for the resource server.
|
void |
setScopes(Collection<ResourceServerScopeType> scopes)
A list of scopes.
|
void |
setUserPoolId(String userPoolId)
The user pool ID for the user pool.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateResourceServerRequest |
withIdentifier(String identifier)
A unique resource server identifier for the resource server.
|
CreateResourceServerRequest |
withName(String name)
A friendly name for the resource server.
|
CreateResourceServerRequest |
withScopes(Collection<ResourceServerScopeType> scopes)
A list of scopes.
|
CreateResourceServerRequest |
withScopes(ResourceServerScopeType... scopes)
A list of scopes.
|
CreateResourceServerRequest |
withUserPoolId(String userPoolId)
The user pool ID for the user pool.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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(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(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 String getIdentifier()
A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located. For example,
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.
For example, https://my-weather-api.example.com.
public void setIdentifier(String identifier)
A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located. For example,
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. For example,
https://my-weather-api.example.com.
public CreateResourceServerRequest withIdentifier(String identifier)
A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located. For example,
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. For example,
https://my-weather-api.example.com.
public 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(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(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 List<ResourceServerScopeType> getScopes()
A list of scopes. Each scope is map, where the keys are name
and description.
A list of scopes. Each scope is map, where the keys are
name and description.
public void setScopes(Collection<ResourceServerScopeType> scopes)
A list of scopes. Each scope is map, where the keys are name
and description.
scopes -
A list of scopes. Each scope is map, where the keys are
name and description.
public CreateResourceServerRequest withScopes(ResourceServerScopeType... scopes)
A list of scopes. Each scope is map, where the keys are 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 map, where the keys are
name and description.
public CreateResourceServerRequest withScopes(Collection<ResourceServerScopeType> scopes)
A list of scopes. Each scope is map, where the keys are 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 map, where the keys are
name and description.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.