@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. You can specify this optional object 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 the KMS key.
|
String |
getRoleArn()
The ARN of the 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 the KMS key.
|
void |
setRoleArn(String roleArn)
The ARN of the 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 the KMS key.
|
EncryptionConfig |
withRoleArn(String roleArn)
The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
|
public void setRoleArn(String roleArn)
The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputException
error.
roleArn
- The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get
an InvalidInputException
error.
public String getRoleArn()
The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputException
error.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get
an InvalidInputException
error.
public EncryptionConfig withRoleArn(String roleArn)
The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputException
error.
roleArn
- The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get
an InvalidInputException
error.
public void setKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of the KMS key.
kMSKeyArn
- The Amazon Resource Name (ARN) of the KMS key.public String getKMSKeyArn()
The Amazon Resource Name (ARN) of the KMS key.
public EncryptionConfig withKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of the KMS key.
kMSKeyArn
- The Amazon Resource Name (ARN) of the 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.