Interface CreateDatasetResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateDatasetResponse.Builder,,CreateDatasetResponse> IoTAnalyticsResponse.Builder,SdkBuilder<CreateDatasetResponse.Builder,,CreateDatasetResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateDatasetResponse
public static interface CreateDatasetResponse.Builder
extends IoTAnalyticsResponse.Builder, SdkPojo, CopyableBuilder<CreateDatasetResponse.Builder,CreateDatasetResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondatasetArn(String datasetArn) The ARN of the dataset.datasetName(String datasetName) The name of the dataset.default CreateDatasetResponse.BuilderretentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod) How long, in days, dataset contents are kept for the dataset.retentionPeriod(RetentionPeriod retentionPeriod) How long, in days, dataset contents are kept for the dataset.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iotanalytics.model.IoTAnalyticsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
datasetName
The name of the dataset.
- Parameters:
datasetName- The name of the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetArn
The ARN of the dataset.
- Parameters:
datasetArn- The ARN of the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
How long, in days, dataset contents are kept for the dataset.
- Parameters:
retentionPeriod- How long, in days, dataset contents are kept for the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
default CreateDatasetResponse.Builder retentionPeriod(Consumer<RetentionPeriod.Builder> retentionPeriod) How long, in days, dataset contents are kept for the dataset.
This is a convenience method that creates an instance of theRetentionPeriod.Builderavoiding the need to create one manually viaRetentionPeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretentionPeriod(RetentionPeriod).- Parameters:
retentionPeriod- a consumer that will call methods onRetentionPeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-