public class EncryptionKey
extends java.lang.Object
implements java.io.Serializable
The encryption key used to encrypt this object.
Constructor and Description |
---|
EncryptionKey() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
The Amazon Resource Name (ARN) of the encryption key being used to
encrypt the custom terminology.
|
java.lang.String |
getType()
The type of encryption key used by Amazon Translate to encrypt custom
terminologies.
|
int |
hashCode() |
void |
setId(java.lang.String id)
The Amazon Resource Name (ARN) of the encryption key being used to
encrypt the custom terminology.
|
void |
setType(EncryptionKeyType type)
The type of encryption key used by Amazon Translate to encrypt custom
terminologies.
|
void |
setType(java.lang.String type)
The type of encryption key used by Amazon Translate to encrypt custom
terminologies.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EncryptionKey |
withId(java.lang.String id)
The Amazon Resource Name (ARN) of the encryption key being used to
encrypt the custom terminology.
|
EncryptionKey |
withType(EncryptionKeyType type)
The type of encryption key used by Amazon Translate to encrypt custom
terminologies.
|
EncryptionKey |
withType(java.lang.String type)
The type of encryption key used by Amazon Translate to encrypt custom
terminologies.
|
public java.lang.String getType()
The type of encryption key used by Amazon Translate to encrypt custom terminologies.
Constraints:
Allowed Values: KMS
The type of encryption key used by Amazon Translate to encrypt custom terminologies.
EncryptionKeyType
public void setType(java.lang.String type)
The type of encryption key used by Amazon Translate to encrypt custom terminologies.
Constraints:
Allowed Values: KMS
type
- The type of encryption key used by Amazon Translate to encrypt custom terminologies.
EncryptionKeyType
public EncryptionKey withType(java.lang.String type)
The type of encryption key used by Amazon Translate to encrypt custom terminologies.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: KMS
type
- The type of encryption key used by Amazon Translate to encrypt custom terminologies.
EncryptionKeyType
public void setType(EncryptionKeyType type)
The type of encryption key used by Amazon Translate to encrypt custom terminologies.
Constraints:
Allowed Values: KMS
type
- The type of encryption key used by Amazon Translate to encrypt custom terminologies.
EncryptionKeyType
public EncryptionKey withType(EncryptionKeyType type)
The type of encryption key used by Amazon Translate to encrypt custom terminologies.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: KMS
type
- The type of encryption key used by Amazon Translate to encrypt custom terminologies.
EncryptionKeyType
public java.lang.String getId()
The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.
Constraints:
Length: 1 - 400
Pattern:
(arn:aws((-us-gov)|(-iso)|(-iso-b)|(-cn))?:kms:)?([a-z]{2}
-[a-z]+(-[a-
z]+)?-\d:)?(\d{12}:)?(((key/)?[a-zA-Z0-9-_]+)|(alias/[a-zA-Z0-9:/_-]+))
The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.
public void setId(java.lang.String id)
The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.
Constraints:
Length: 1 - 400
Pattern:
(arn:aws((-us-gov)|(-iso)|(-iso-b)|(-cn))?:kms:)?([a-z]{2}
-[a-z]+(-[a-
z]+)?-\d:)?(\d{12}:)?(((key/)?[a-zA-Z0-9-_]+)|(alias/[a-zA-Z0-9:/_-]+))
id
- The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.
public EncryptionKey withId(java.lang.String id)
The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 400
Pattern:
(arn:aws((-us-gov)|(-iso)|(-iso-b)|(-cn))?:kms:)?([a-z]{2}
-[a-z]+(-[a-
z]+)?-\d:)?(\d{12}:)?(((key/)?[a-zA-Z0-9-_]+)|(alias/[a-zA-Z0-9:/_-]+))
id
- The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.