/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iotanalytics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateDatasetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the dataset. *
*/ private String datasetName; /** ** A list of actions that create the dataset contents. *
*/ private java.util.List
* A list of triggers. A trigger causes dataset contents to be populated at a specified time interval or when
* another dataset's contents are created. The list of triggers can be empty or contain up to five
* DataSetTrigger
objects.
*
* When dataset contents are created, they are delivered to destinations specified here. *
*/ private java.util.List
* Optional. How long, in days, versions of dataset contents are kept for the dataset. If not specified or set to
* null
, versions of dataset contents are retained for at most 90 days. The number of versions of
* dataset contents retained is determined by the versioningConfiguration
parameter. For more
* information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*
* Optional. How many versions of dataset contents are kept. If not specified or set to null, only the latest
* version plus the latest succeeded version (if they are different) are kept for the time period specified by the
* retentionPeriod
parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*
* Metadata which can be used to manage the dataset. *
*/ private java.util.List
* A list of data rules that send notifications to CloudWatch, when data arrives late. To specify
* lateDataRules
, the dataset must use a DeltaTimer filter.
*
* The name of the dataset. *
* * @param datasetName * The name of the dataset. */ public void setDatasetName(String datasetName) { this.datasetName = datasetName; } /** ** The name of the dataset. *
* * @return The name of the dataset. */ public String getDatasetName() { return this.datasetName; } /** ** The name of the dataset. *
* * @param datasetName * The name of the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withDatasetName(String datasetName) { setDatasetName(datasetName); return this; } /** ** A list of actions that create the dataset contents. *
* * @return A list of actions that create the dataset contents. */ public java.util.List* A list of actions that create the dataset contents. *
* * @param actions * A list of actions that create the dataset contents. */ public void setActions(java.util.Collection* A list of actions that create the dataset contents. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. *
* * @param actions * A list of actions that create the dataset contents. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withActions(DatasetAction... actions) { if (this.actions == null) { setActions(new java.util.ArrayList* A list of actions that create the dataset contents. *
* * @param actions * A list of actions that create the dataset contents. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withActions(java.util.Collection
* A list of triggers. A trigger causes dataset contents to be populated at a specified time interval or when
* another dataset's contents are created. The list of triggers can be empty or contain up to five
* DataSetTrigger
objects.
*
DataSetTrigger
objects.
*/
public java.util.List
* A list of triggers. A trigger causes dataset contents to be populated at a specified time interval or when
* another dataset's contents are created. The list of triggers can be empty or contain up to five
* DataSetTrigger
objects.
*
DataSetTrigger
objects.
*/
public void setTriggers(java.util.Collection
* A list of triggers. A trigger causes dataset contents to be populated at a specified time interval or when
* another dataset's contents are created. The list of triggers can be empty or contain up to five
* DataSetTrigger
objects.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTriggers(java.util.Collection)} or {@link #withTriggers(java.util.Collection)} if you want to override * the existing values. *
* * @param triggers * A list of triggers. A trigger causes dataset contents to be populated at a specified time interval or when * another dataset's contents are created. The list of triggers can be empty or contain up to five *DataSetTrigger
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDatasetRequest withTriggers(DatasetTrigger... triggers) {
if (this.triggers == null) {
setTriggers(new java.util.ArrayList
* A list of triggers. A trigger causes dataset contents to be populated at a specified time interval or when
* another dataset's contents are created. The list of triggers can be empty or contain up to five
* DataSetTrigger
objects.
*
DataSetTrigger
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDatasetRequest withTriggers(java.util.Collection* When dataset contents are created, they are delivered to destinations specified here. *
* * @return When dataset contents are created, they are delivered to destinations specified here. */ public java.util.List* When dataset contents are created, they are delivered to destinations specified here. *
* * @param contentDeliveryRules * When dataset contents are created, they are delivered to destinations specified here. */ public void setContentDeliveryRules(java.util.Collection* When dataset contents are created, they are delivered to destinations specified here. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContentDeliveryRules(java.util.Collection)} or {@link #withContentDeliveryRules(java.util.Collection)} * if you want to override the existing values. *
* * @param contentDeliveryRules * When dataset contents are created, they are delivered to destinations specified here. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withContentDeliveryRules(DatasetContentDeliveryRule... contentDeliveryRules) { if (this.contentDeliveryRules == null) { setContentDeliveryRules(new java.util.ArrayList* When dataset contents are created, they are delivered to destinations specified here. *
* * @param contentDeliveryRules * When dataset contents are created, they are delivered to destinations specified here. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withContentDeliveryRules(java.util.Collection
* Optional. How long, in days, versions of dataset contents are kept for the dataset. If not specified or set to
* null
, versions of dataset contents are retained for at most 90 days. The number of versions of
* dataset contents retained is determined by the versioningConfiguration
parameter. For more
* information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*
null
, versions of dataset contents are retained for at most 90 days. The number of
* versions of dataset contents retained is determined by the versioningConfiguration
parameter.
* For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*/
public void setRetentionPeriod(RetentionPeriod retentionPeriod) {
this.retentionPeriod = retentionPeriod;
}
/**
*
* Optional. How long, in days, versions of dataset contents are kept for the dataset. If not specified or set to
* null
, versions of dataset contents are retained for at most 90 days. The number of versions of
* dataset contents retained is determined by the versioningConfiguration
parameter. For more
* information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*
null
, versions of dataset contents are retained for at most 90 days. The number of
* versions of dataset contents retained is determined by the versioningConfiguration
* parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*/
public RetentionPeriod getRetentionPeriod() {
return this.retentionPeriod;
}
/**
*
* Optional. How long, in days, versions of dataset contents are kept for the dataset. If not specified or set to
* null
, versions of dataset contents are retained for at most 90 days. The number of versions of
* dataset contents retained is determined by the versioningConfiguration
parameter. For more
* information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*
null
, versions of dataset contents are retained for at most 90 days. The number of
* versions of dataset contents retained is determined by the versioningConfiguration
parameter.
* For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDatasetRequest withRetentionPeriod(RetentionPeriod retentionPeriod) {
setRetentionPeriod(retentionPeriod);
return this;
}
/**
*
* Optional. How many versions of dataset contents are kept. If not specified or set to null, only the latest
* version plus the latest succeeded version (if they are different) are kept for the time period specified by the
* retentionPeriod
parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*
retentionPeriod
parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*/
public void setVersioningConfiguration(VersioningConfiguration versioningConfiguration) {
this.versioningConfiguration = versioningConfiguration;
}
/**
*
* Optional. How many versions of dataset contents are kept. If not specified or set to null, only the latest
* version plus the latest succeeded version (if they are different) are kept for the time period specified by the
* retentionPeriod
parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*
retentionPeriod
parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*/
public VersioningConfiguration getVersioningConfiguration() {
return this.versioningConfiguration;
}
/**
*
* Optional. How many versions of dataset contents are kept. If not specified or set to null, only the latest
* version plus the latest succeeded version (if they are different) are kept for the time period specified by the
* retentionPeriod
parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
*
retentionPeriod
parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDatasetRequest withVersioningConfiguration(VersioningConfiguration versioningConfiguration) {
setVersioningConfiguration(versioningConfiguration);
return this;
}
/**
* * Metadata which can be used to manage the dataset. *
* * @return Metadata which can be used to manage the dataset. */ public java.util.List* Metadata which can be used to manage the dataset. *
* * @param tags * Metadata which can be used to manage the dataset. */ public void setTags(java.util.Collection* Metadata which can be used to manage the dataset. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Metadata which can be used to manage the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Metadata which can be used to manage the dataset. *
* * @param tags * Metadata which can be used to manage the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetRequest withTags(java.util.Collection
* A list of data rules that send notifications to CloudWatch, when data arrives late. To specify
* lateDataRules
, the dataset must use a DeltaTimer filter.
*
lateDataRules
, the dataset must use a DeltaTimer
* filter.
*/
public java.util.List
* A list of data rules that send notifications to CloudWatch, when data arrives late. To specify
* lateDataRules
, the dataset must use a DeltaTimer filter.
*
lateDataRules
, the dataset must use a DeltaTimer
* filter.
*/
public void setLateDataRules(java.util.Collection
* A list of data rules that send notifications to CloudWatch, when data arrives late. To specify
* lateDataRules
, the dataset must use a DeltaTimer filter.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLateDataRules(java.util.Collection)} or {@link #withLateDataRules(java.util.Collection)} if you want * to override the existing values. *
* * @param lateDataRules * A list of data rules that send notifications to CloudWatch, when data arrives late. To specify *lateDataRules
, the dataset must use a DeltaTimer
* filter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDatasetRequest withLateDataRules(LateDataRule... lateDataRules) {
if (this.lateDataRules == null) {
setLateDataRules(new java.util.ArrayList
* A list of data rules that send notifications to CloudWatch, when data arrives late. To specify
* lateDataRules
, the dataset must use a DeltaTimer filter.
*
lateDataRules
, the dataset must use a DeltaTimer
* filter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDatasetRequest withLateDataRules(java.util.Collection