Class CfnDataset.EncryptionConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.forecast.CfnDataset.EncryptionConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataset.EncryptionConfigProperty>
- Enclosing interface:
CfnDataset.EncryptionConfigProperty
@Stability(Stable)
public static final class CfnDataset.EncryptionConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataset.EncryptionConfigProperty>
A builder for
CfnDataset.EncryptionConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDataset.EncryptionConfigProperty.getKmsKeyArn()Sets the value ofCfnDataset.EncryptionConfigProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyArn
Sets the value ofCfnDataset.EncryptionConfigProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the KMS key.- Returns:
this
-
roleArn
Sets the value ofCfnDataset.EncryptionConfigProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that Amazon Forecast can assume to access the AWS key. Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get anInvalidInputExceptionerror.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataset.EncryptionConfigProperty>- Returns:
- a new instance of
CfnDataset.EncryptionConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-