Class CfnDatastore.CustomerManagedS3Property.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnDatastore.CustomerManagedS3Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatastore.CustomerManagedS3Property>
- Enclosing interface:
- CfnDatastore.CustomerManagedS3Property
@Stability(Stable)
public static final class CfnDatastore.CustomerManagedS3Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatastore.CustomerManagedS3Property>
A builder for
CfnDatastore.CustomerManagedS3Property-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDatastore.CustomerManagedS3Property.getBucket()build()Builds the configured instance.Sets the value ofCfnDatastore.CustomerManagedS3Property.getKeyPrefix()Sets the value ofCfnDatastore.CustomerManagedS3Property.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnDatastore.CustomerManagedS3Property.getBucket()- Parameters:
bucket- The name of the Amazon S3 bucket where your data is stored. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnDatastore.CustomerManagedS3Property.getRoleArn()- Parameters:
roleArn- The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon S3 resources. This parameter is required.- Returns:
this
-
keyPrefix
@Stability(Stable) public CfnDatastore.CustomerManagedS3Property.Builder keyPrefix(String keyPrefix) Sets the value ofCfnDatastore.CustomerManagedS3Property.getKeyPrefix()- Parameters:
keyPrefix- (Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatastore.CustomerManagedS3Property>- Returns:
- a new instance of
CfnDatastore.CustomerManagedS3Property - Throws:
NullPointerException- if any required attribute was not provided
-