/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A summary of information about a dataset. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DatasetSummary implements Serializable, Cloneable, StructuredPojo { /** ** The name of the dataset. *
*/ private String datasetName; /** ** The status of the dataset. *
*/ private String status; /** ** The time the dataset was created. *
*/ private java.util.Date creationTime; /** ** The last time the dataset was updated. *
*/ private java.util.Date lastUpdateTime; /** *
* A list of triggers. A trigger causes dataset content to be populated at a specified time interval or when another
* dataset is populated. The list of triggers can be empty or contain up to five DataSetTrigger
objects
*
* A list of DataActionSummary
objects.
*
* 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 DatasetSummary withDatasetName(String datasetName) { setDatasetName(datasetName); return this; } /** ** The status of the dataset. *
* * @param status * The status of the dataset. * @see DatasetStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the dataset. *
* * @return The status of the dataset. * @see DatasetStatus */ public String getStatus() { return this.status; } /** ** The status of the dataset. *
* * @param status * The status of the dataset. * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetStatus */ public DatasetSummary withStatus(String status) { setStatus(status); return this; } /** ** The status of the dataset. *
* * @param status * The status of the dataset. * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetStatus */ public DatasetSummary withStatus(DatasetStatus status) { this.status = status.toString(); return this; } /** ** The time the dataset was created. *
* * @param creationTime * The time the dataset was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time the dataset was created. *
* * @return The time the dataset was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time the dataset was created. *
* * @param creationTime * The time the dataset was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The last time the dataset was updated. *
* * @param lastUpdateTime * The last time the dataset was updated. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** ** The last time the dataset was updated. *
* * @return The last time the dataset was updated. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** ** The last time the dataset was updated. *
* * @param lastUpdateTime * The last time the dataset was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetSummary withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** *
* A list of triggers. A trigger causes dataset content to be populated at a specified time interval or when another
* dataset is populated. 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 content to be populated at a specified time interval or when another
* dataset is populated. 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 content to be populated at a specified time interval or when another
* dataset is populated. 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 content to be populated at a specified time interval or when * another dataset is populated. 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 DatasetSummary withTriggers(DatasetTrigger... triggers) {
if (this.triggers == null) {
setTriggers(new java.util.ArrayList
* A list of triggers. A trigger causes dataset content to be populated at a specified time interval or when another
* dataset is populated. 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 DatasetSummary withTriggers(java.util.Collection
* A list of DataActionSummary
objects.
*
DataActionSummary
objects.
*/
public java.util.List
* A list of DataActionSummary
objects.
*
DataActionSummary
objects.
*/
public void setActions(java.util.Collection
* A list of DataActionSummary
objects.
*
* 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 ofDataActionSummary
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetSummary withActions(DatasetActionSummary... actions) {
if (this.actions == null) {
setActions(new java.util.ArrayList
* A list of DataActionSummary
objects.
*
DataActionSummary
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetSummary withActions(java.util.Collection