Class CfnDatasetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.personalize.CfnDatasetGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetGroupProps>
- Enclosing interface:
- CfnDatasetGroupProps
@Stability(Stable)
public static final class CfnDatasetGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetGroupProps>
A builder for
CfnDatasetGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDatasetGroupProps.getDomain()Sets the value ofCfnDatasetGroupProps.getKmsKeyArn()Sets the value ofCfnDatasetGroupProps.getName()Sets the value ofCfnDatasetGroupProps.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDatasetGroupProps.getName()- Parameters:
name- The name of the dataset group. This parameter is required.- Returns:
this
-
domain
Sets the value ofCfnDatasetGroupProps.getDomain()- Parameters:
domain- The domain of a Domain dataset group.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnDatasetGroupProps.getKmsKeyArn()- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key used to encrypt the datasets.- Returns:
this
-
roleArn
Sets the value ofCfnDatasetGroupProps.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that has permissions to create the dataset group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatasetGroupProps>- Returns:
- a new instance of
CfnDatasetGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-