Class CfnDatasetPropsMixin.EncryptionConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.forecast.CfnDatasetPropsMixin.EncryptionConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetPropsMixin.EncryptionConfigProperty>
- Enclosing interface:
CfnDatasetPropsMixin.EncryptionConfigProperty
@Stability(Stable)
public static final class CfnDatasetPropsMixin.EncryptionConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetPropsMixin.EncryptionConfigProperty>
A builder for
CfnDatasetPropsMixin.EncryptionConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDatasetPropsMixin.EncryptionConfigProperty.getKmsKeyArn()Sets the value ofCfnDatasetPropsMixin.EncryptionConfigProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyArn
@Stability(Stable) public CfnDatasetPropsMixin.EncryptionConfigProperty.Builder kmsKeyArn(String kmsKeyArn) Sets the value ofCfnDatasetPropsMixin.EncryptionConfigProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the KMS key.- Returns:
this
-
roleArn
@Stability(Stable) public CfnDatasetPropsMixin.EncryptionConfigProperty.Builder roleArn(String roleArn) Sets the value ofCfnDatasetPropsMixin.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<CfnDatasetPropsMixin.EncryptionConfigProperty>- Returns:
- a new instance of
CfnDatasetPropsMixin.EncryptionConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-