@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateWorkspaceApiKeyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateWorkspaceApiKeyResult() |
Modifier and Type | Method and Description |
---|---|
CreateWorkspaceApiKeyResult |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key token.
|
String |
getKeyName()
The name of the key that was created.
|
String |
getWorkspaceId()
The ID of the workspace that the key is valid for.
|
int |
hashCode() |
void |
setKey(String key)
The key token.
|
void |
setKeyName(String keyName)
The name of the key that was created.
|
void |
setWorkspaceId(String workspaceId)
The ID of the workspace that the key is valid for.
|
String |
toString()
Returns a string representation of this object.
|
CreateWorkspaceApiKeyResult |
withKey(String key)
The key token.
|
CreateWorkspaceApiKeyResult |
withKeyName(String keyName)
The name of the key that was created.
|
CreateWorkspaceApiKeyResult |
withWorkspaceId(String workspaceId)
The ID of the workspace that the key is valid for.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setKey(String key)
The key token. Use this value as a bearer token to authenticate HTTP requests to the workspace.
key
- The key token. Use this value as a bearer token to authenticate HTTP requests to the workspace.public String getKey()
The key token. Use this value as a bearer token to authenticate HTTP requests to the workspace.
public CreateWorkspaceApiKeyResult withKey(String key)
The key token. Use this value as a bearer token to authenticate HTTP requests to the workspace.
key
- The key token. Use this value as a bearer token to authenticate HTTP requests to the workspace.public void setKeyName(String keyName)
The name of the key that was created.
keyName
- The name of the key that was created.public String getKeyName()
The name of the key that was created.
public CreateWorkspaceApiKeyResult withKeyName(String keyName)
The name of the key that was created.
keyName
- The name of the key that was created.public void setWorkspaceId(String workspaceId)
The ID of the workspace that the key is valid for.
workspaceId
- The ID of the workspace that the key is valid for.public String getWorkspaceId()
The ID of the workspace that the key is valid for.
public CreateWorkspaceApiKeyResult withWorkspaceId(String workspaceId)
The ID of the workspace that the key is valid for.
workspaceId
- The ID of the workspace that the key is valid for.public String toString()
toString
in class Object
Object.toString()
public CreateWorkspaceApiKeyResult clone()