public class KeyMetadata extends Object implements Serializable, Cloneable
Contains metadata associated with a specific key.
Constructor and Description |
---|
KeyMetadata() |
Modifier and Type | Method and Description |
---|---|
KeyMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
Key ARN (Amazon Resource Name).
|
String |
getAWSAccountId()
Account ID number.
|
Date |
getCreationDate()
Date the key was created.
|
String |
getDescription()
The description of the key.
|
Boolean |
getEnabled()
Value that specifies whether the key is enabled.
|
String |
getKeyId()
Unique identifier for the key.
|
String |
getKeyUsage()
A value that specifies what operation(s) the key can perform.
|
int |
hashCode() |
Boolean |
isEnabled()
Value that specifies whether the key is enabled.
|
void |
setArn(String arn)
Key ARN (Amazon Resource Name).
|
void |
setAWSAccountId(String aWSAccountId)
Account ID number.
|
void |
setCreationDate(Date creationDate)
Date the key was created.
|
void |
setDescription(String description)
The description of the key.
|
void |
setEnabled(Boolean enabled)
Value that specifies whether the key is enabled.
|
void |
setKeyId(String keyId)
Unique identifier for the key.
|
void |
setKeyUsage(KeyUsageType keyUsage)
A value that specifies what operation(s) the key can perform.
|
void |
setKeyUsage(String keyUsage)
A value that specifies what operation(s) the key can perform.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyMetadata |
withArn(String arn)
Key ARN (Amazon Resource Name).
|
KeyMetadata |
withAWSAccountId(String aWSAccountId)
Account ID number.
|
KeyMetadata |
withCreationDate(Date creationDate)
Date the key was created.
|
KeyMetadata |
withDescription(String description)
The description of the key.
|
KeyMetadata |
withEnabled(Boolean enabled)
Value that specifies whether the key is enabled.
|
KeyMetadata |
withKeyId(String keyId)
Unique identifier for the key.
|
KeyMetadata |
withKeyUsage(KeyUsageType keyUsage)
A value that specifies what operation(s) the key can perform.
|
KeyMetadata |
withKeyUsage(String keyUsage)
A value that specifies what operation(s) the key can perform.
|
public String getAWSAccountId()
public void setAWSAccountId(String aWSAccountId)
aWSAccountId
- Account ID number.public KeyMetadata withAWSAccountId(String aWSAccountId)
Returns a reference to this object so that method calls can be chained together.
aWSAccountId
- Account ID number.public String getKeyId()
Constraints:
Length: 1 - 256
public void setKeyId(String keyId)
Constraints:
Length: 1 - 256
keyId
- Unique identifier for the key.public KeyMetadata withKeyId(String keyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
keyId
- Unique identifier for the key.public String getArn()
Constraints:
Length: 20 - 2048
public void setArn(String arn)
Constraints:
Length: 20 - 2048
arn
- Key ARN (Amazon Resource Name).public KeyMetadata withArn(String arn)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
arn
- Key ARN (Amazon Resource Name).public Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate
- Date the key was created.public KeyMetadata withCreationDate(Date creationDate)
Returns a reference to this object so that method calls can be chained together.
creationDate
- Date the key was created.public Boolean isEnabled()
public void setEnabled(Boolean enabled)
enabled
- Value that specifies whether the key is enabled.public KeyMetadata withEnabled(Boolean enabled)
Returns a reference to this object so that method calls can be chained together.
enabled
- Value that specifies whether the key is enabled.public Boolean getEnabled()
public String getDescription()
Constraints:
Length: 0 - 8192
public void setDescription(String description)
Constraints:
Length: 0 - 8192
description
- The description of the key.public KeyMetadata withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 8192
description
- The description of the key.public String getKeyUsage()
Constraints:
Allowed Values: ENCRYPT_DECRYPT
KeyUsageType
public void setKeyUsage(String keyUsage)
Constraints:
Allowed Values: ENCRYPT_DECRYPT
keyUsage
- A value that specifies what operation(s) the key can perform.KeyUsageType
public KeyMetadata withKeyUsage(String keyUsage)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ENCRYPT_DECRYPT
keyUsage
- A value that specifies what operation(s) the key can perform.KeyUsageType
public void setKeyUsage(KeyUsageType keyUsage)
Constraints:
Allowed Values: ENCRYPT_DECRYPT
keyUsage
- A value that specifies what operation(s) the key can perform.KeyUsageType
public KeyMetadata withKeyUsage(KeyUsageType keyUsage)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ENCRYPT_DECRYPT
keyUsage
- A value that specifies what operation(s) the key can perform.KeyUsageType
public String toString()
toString
in class Object
Object.toString()
public KeyMetadata clone()
Copyright © 2015. All rights reserved.