@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EncryptionConfig extends Object implements Serializable, Cloneable, StructuredPojo
An AWS Key Management Service (KMS) key and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key. This object is optionally submitted in the CreateDataset and CreatePredictor requests.
Constructor and Description |
---|
EncryptionConfig() |
Modifier and Type | Method and Description |
---|---|
EncryptionConfig |
clone() |
boolean |
equals(Object obj) |
String |
getKMSKeyArn()
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
|
String |
getRoleArn()
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the AWS
KMS key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
|
void |
setRoleArn(String roleArn)
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the AWS
KMS key.
|
String |
toString()
Returns a string representation of this object.
|
EncryptionConfig |
withKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
|
EncryptionConfig |
withRoleArn(String roleArn)
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the AWS
KMS key.
|
public void setRoleArn(String roleArn)
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the AWS KMS key.
Cross-account pass role is not allowed. If you pass a role that doesn't belong to your account, an
InvalidInputException
is thrown.
roleArn
- The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the
AWS KMS key.
Cross-account pass role is not allowed. If you pass a role that doesn't belong to your account, an
InvalidInputException
is thrown.
public String getRoleArn()
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the AWS KMS key.
Cross-account pass role is not allowed. If you pass a role that doesn't belong to your account, an
InvalidInputException
is thrown.
Cross-account pass role is not allowed. If you pass a role that doesn't belong to your account, an
InvalidInputException
is thrown.
public EncryptionConfig withRoleArn(String roleArn)
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the AWS KMS key.
Cross-account pass role is not allowed. If you pass a role that doesn't belong to your account, an
InvalidInputException
is thrown.
roleArn
- The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the
AWS KMS key.
Cross-account pass role is not allowed. If you pass a role that doesn't belong to your account, an
InvalidInputException
is thrown.
public void setKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
kMSKeyArn
- The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.public String getKMSKeyArn()
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
public EncryptionConfig withKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
kMSKeyArn
- The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.public String toString()
toString
in class Object
Object.toString()
public EncryptionConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.