@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateWorkspaceServiceAccountTokenRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateWorkspaceServiceAccountTokenRequest() |
Modifier and Type | Method and Description |
---|---|
CreateWorkspaceServiceAccountTokenRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getName()
A name for the token to create.
|
Integer |
getSecondsToLive()
Sets how long the token will be valid, in seconds.
|
String |
getServiceAccountId()
The ID of the service account for which to create a token.
|
String |
getWorkspaceId()
The ID of the workspace the service account resides within.
|
int |
hashCode() |
void |
setName(String name)
A name for the token to create.
|
void |
setSecondsToLive(Integer secondsToLive)
Sets how long the token will be valid, in seconds.
|
void |
setServiceAccountId(String serviceAccountId)
The ID of the service account for which to create a token.
|
void |
setWorkspaceId(String workspaceId)
The ID of the workspace the service account resides within.
|
String |
toString()
Returns a string representation of this object.
|
CreateWorkspaceServiceAccountTokenRequest |
withName(String name)
A name for the token to create.
|
CreateWorkspaceServiceAccountTokenRequest |
withSecondsToLive(Integer secondsToLive)
Sets how long the token will be valid, in seconds.
|
CreateWorkspaceServiceAccountTokenRequest |
withServiceAccountId(String serviceAccountId)
The ID of the service account for which to create a token.
|
CreateWorkspaceServiceAccountTokenRequest |
withWorkspaceId(String workspaceId)
The ID of the workspace the service account resides within.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateWorkspaceServiceAccountTokenRequest()
public void setName(String name)
A name for the token to create.
name
- A name for the token to create.public String getName()
A name for the token to create.
public CreateWorkspaceServiceAccountTokenRequest withName(String name)
A name for the token to create.
name
- A name for the token to create.public void setSecondsToLive(Integer secondsToLive)
Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
secondsToLive
- Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.public Integer getSecondsToLive()
Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
public CreateWorkspaceServiceAccountTokenRequest withSecondsToLive(Integer secondsToLive)
Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
secondsToLive
- Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.public void setServiceAccountId(String serviceAccountId)
The ID of the service account for which to create a token.
serviceAccountId
- The ID of the service account for which to create a token.public String getServiceAccountId()
The ID of the service account for which to create a token.
public CreateWorkspaceServiceAccountTokenRequest withServiceAccountId(String serviceAccountId)
The ID of the service account for which to create a token.
serviceAccountId
- The ID of the service account for which to create a token.public void setWorkspaceId(String workspaceId)
The ID of the workspace the service account resides within.
workspaceId
- The ID of the workspace the service account resides within.public String getWorkspaceId()
The ID of the workspace the service account resides within.
public CreateWorkspaceServiceAccountTokenRequest withWorkspaceId(String workspaceId)
The ID of the workspace the service account resides within.
workspaceId
- The ID of the workspace the service account resides within.public String toString()
toString
in class Object
Object.toString()
public CreateWorkspaceServiceAccountTokenRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()