@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateWorkspaceApiKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateWorkspaceApiKeyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateWorkspaceApiKeyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getKeyName()
Specifies the name of the key.
|
String |
getKeyRole()
Specifies the permission level of the key.
|
Integer |
getSecondsToLive()
Specifies the time in seconds until the key expires.
|
String |
getWorkspaceId()
The ID of the workspace to create an API key.
|
int |
hashCode() |
void |
setKeyName(String keyName)
Specifies the name of the key.
|
void |
setKeyRole(String keyRole)
Specifies the permission level of the key.
|
void |
setSecondsToLive(Integer secondsToLive)
Specifies the time in seconds until the key expires.
|
void |
setWorkspaceId(String workspaceId)
The ID of the workspace to create an API key.
|
String |
toString()
Returns a string representation of this object.
|
CreateWorkspaceApiKeyRequest |
withKeyName(String keyName)
Specifies the name of the key.
|
CreateWorkspaceApiKeyRequest |
withKeyRole(String keyRole)
Specifies the permission level of the key.
|
CreateWorkspaceApiKeyRequest |
withSecondsToLive(Integer secondsToLive)
Specifies the time in seconds until the key expires.
|
CreateWorkspaceApiKeyRequest |
withWorkspaceId(String workspaceId)
The ID of the workspace to create an API key.
|
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 void setKeyName(String keyName)
Specifies the name of the key. Keynames must be unique to the workspace.
keyName
- Specifies the name of the key. Keynames must be unique to the workspace.public String getKeyName()
Specifies the name of the key. Keynames must be unique to the workspace.
public CreateWorkspaceApiKeyRequest withKeyName(String keyName)
Specifies the name of the key. Keynames must be unique to the workspace.
keyName
- Specifies the name of the key. Keynames must be unique to the workspace.public void setKeyRole(String keyRole)
Specifies the permission level of the key.
Valid values: ADMIN
|EDITOR
|VIEWER
keyRole
- Specifies the permission level of the key.
Valid values: ADMIN
|EDITOR
|VIEWER
public String getKeyRole()
Specifies the permission level of the key.
Valid values: ADMIN
|EDITOR
|VIEWER
Valid values: ADMIN
|EDITOR
|VIEWER
public CreateWorkspaceApiKeyRequest withKeyRole(String keyRole)
Specifies the permission level of the key.
Valid values: ADMIN
|EDITOR
|VIEWER
keyRole
- Specifies the permission level of the key.
Valid values: ADMIN
|EDITOR
|VIEWER
public void setSecondsToLive(Integer secondsToLive)
Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
secondsToLive
- Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.public Integer getSecondsToLive()
Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
public CreateWorkspaceApiKeyRequest withSecondsToLive(Integer secondsToLive)
Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
secondsToLive
- Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.public void setWorkspaceId(String workspaceId)
The ID of the workspace to create an API key.
workspaceId
- The ID of the workspace to create an API key.public String getWorkspaceId()
The ID of the workspace to create an API key.
public CreateWorkspaceApiKeyRequest withWorkspaceId(String workspaceId)
The ID of the workspace to create an API key.
workspaceId
- The ID of the workspace to create an API key.public String toString()
toString
in class Object
Object.toString()
public CreateWorkspaceApiKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()