All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.iotanalytics.model.DatasetSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Analytics module holds the client classes that are used for communicating with AWS IoT Analytics Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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 *

*/ private java.util.List triggers; /** *

* A list of DataActionSummary objects. *

*/ private java.util.List actions; /** *

* 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 *

* * @return 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 */ public java.util.List getTriggers() { return 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 *

* * @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 */ public void setTriggers(java.util.Collection triggers) { if (triggers == null) { this.triggers = null; return; } this.triggers = new java.util.ArrayList(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 *

*

* 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(triggers.length)); } for (DatasetTrigger ele : triggers) { this.triggers.add(ele); } 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 *

* * @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(java.util.Collection triggers) { setTriggers(triggers); return this; } /** *

* A list of DataActionSummary objects. *

* * @return A list of DataActionSummary objects. */ public java.util.List getActions() { return actions; } /** *

* A list of DataActionSummary objects. *

* * @param actions * A list of DataActionSummary objects. */ public void setActions(java.util.Collection actions) { if (actions == null) { this.actions = null; return; } this.actions = new java.util.ArrayList(actions); } /** *

* 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 of DataActionSummary 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(actions.length)); } for (DatasetActionSummary ele : actions) { this.actions.add(ele); } return this; } /** *

* A list of DataActionSummary objects. *

* * @param actions * A list of DataActionSummary objects. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetSummary withActions(java.util.Collection actions) { setActions(actions); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDatasetName() != null) sb.append("DatasetName: ").append(getDatasetName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: ").append(getLastUpdateTime()).append(","); if (getTriggers() != null) sb.append("Triggers: ").append(getTriggers()).append(","); if (getActions() != null) sb.append("Actions: ").append(getActions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DatasetSummary == false) return false; DatasetSummary other = (DatasetSummary) obj; if (other.getDatasetName() == null ^ this.getDatasetName() == null) return false; if (other.getDatasetName() != null && other.getDatasetName().equals(this.getDatasetName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastUpdateTime() == null ^ this.getLastUpdateTime() == null) return false; if (other.getLastUpdateTime() != null && other.getLastUpdateTime().equals(this.getLastUpdateTime()) == false) return false; if (other.getTriggers() == null ^ this.getTriggers() == null) return false; if (other.getTriggers() != null && other.getTriggers().equals(this.getTriggers()) == false) return false; if (other.getActions() == null ^ this.getActions() == null) return false; if (other.getActions() != null && other.getActions().equals(this.getActions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDatasetName() == null) ? 0 : getDatasetName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); hashCode = prime * hashCode + ((getTriggers() == null) ? 0 : getTriggers().hashCode()); hashCode = prime * hashCode + ((getActions() == null) ? 0 : getActions().hashCode()); return hashCode; } @Override public DatasetSummary clone() { try { return (DatasetSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.iotanalytics.model.transform.DatasetSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy