public class ResourceServerType extends Object implements Serializable
A container for information about a resource server for a user pool.
| Constructor and Description |
|---|
ResourceServerType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getIdentifier()
The identifier for the resource server.
|
String |
getName()
The name of the resource server.
|
List<ResourceServerScopeType> |
getScopes()
A list of scopes that are defined for the resource server.
|
String |
getUserPoolId()
The user pool ID for the user pool that hosts the resource server.
|
int |
hashCode() |
void |
setIdentifier(String identifier)
The identifier for the resource server.
|
void |
setName(String name)
The name of the resource server.
|
void |
setScopes(Collection<ResourceServerScopeType> scopes)
A list of scopes that are defined for the resource server.
|
void |
setUserPoolId(String userPoolId)
The user pool ID for the user pool that hosts the resource server.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceServerType |
withIdentifier(String identifier)
The identifier for the resource server.
|
ResourceServerType |
withName(String name)
The name of the resource server.
|
ResourceServerType |
withScopes(Collection<ResourceServerScopeType> scopes)
A list of scopes that are defined for the resource server.
|
ResourceServerType |
withScopes(ResourceServerScopeType... scopes)
A list of scopes that are defined for the resource server.
|
ResourceServerType |
withUserPoolId(String userPoolId)
The user pool ID for the user pool that hosts the resource server.
|
public String getUserPoolId()
The user pool ID for the user pool that hosts the resource server.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID for the user pool that hosts the resource server.
public void setUserPoolId(String userPoolId)
The user pool ID for the user pool that hosts the resource server.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool that hosts the resource server.
public ResourceServerType withUserPoolId(String userPoolId)
The user pool ID for the user pool that hosts the resource server.
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 that hosts the resource server.
public 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(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 ResourceServerType withIdentifier(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 String getName()
The name of the resource server.
Constraints:
Length: 1 - 256
Pattern: [\w\s+=,.@-]+
The name of the resource server.
public void setName(String name)
The name of the resource server.
Constraints:
Length: 1 - 256
Pattern: [\w\s+=,.@-]+
name - The name of the resource server.
public ResourceServerType withName(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 List<ResourceServerScopeType> getScopes()
A list of scopes that are defined for the resource server.
A list of scopes that are defined for the resource server.
public void setScopes(Collection<ResourceServerScopeType> scopes)
A list of scopes that are defined for the resource server.
scopes - A list of scopes that are defined for the resource server.
public ResourceServerType withScopes(ResourceServerScopeType... scopes)
A list of scopes that are defined for the resource server.
Returns a reference to this object so that method calls can be chained together.
scopes - A list of scopes that are defined for the resource server.
public ResourceServerType withScopes(Collection<ResourceServerScopeType> scopes)
A list of scopes that are defined for the resource server.
Returns a reference to this object so that method calls can be chained together.
scopes - A list of scopes that are defined for the resource server.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.