com.amazonaws.services.iotanalytics.model.DatasetContentSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-iotanalytics Show documentation
/*
* Copyright 2017-2022 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;
/**
*
* Summary information about dataset contents.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DatasetContentSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The version of the dataset contents.
*
*/
private String version;
/**
*
* The status of the dataset contents.
*
*/
private DatasetContentStatus status;
/**
*
* The actual time the creation of the dataset contents was started.
*
*/
private java.util.Date creationTime;
/**
*
* The time the creation of the dataset contents was scheduled to start.
*
*/
private java.util.Date scheduleTime;
/**
*
* The time the dataset content status was updated to SUCCEEDED or FAILED.
*
*/
private java.util.Date completionTime;
/**
*
* The version of the dataset contents.
*
*
* @param version
* The version of the dataset contents.
*/
public void setVersion(String version) {
this.version = version;
}
/**
*
* The version of the dataset contents.
*
*
* @return The version of the dataset contents.
*/
public String getVersion() {
return this.version;
}
/**
*
* The version of the dataset contents.
*
*
* @param version
* The version of the dataset contents.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetContentSummary withVersion(String version) {
setVersion(version);
return this;
}
/**
*
* The status of the dataset contents.
*
*
* @param status
* The status of the dataset contents.
*/
public void setStatus(DatasetContentStatus status) {
this.status = status;
}
/**
*
* The status of the dataset contents.
*
*
* @return The status of the dataset contents.
*/
public DatasetContentStatus getStatus() {
return this.status;
}
/**
*
* The status of the dataset contents.
*
*
* @param status
* The status of the dataset contents.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetContentSummary withStatus(DatasetContentStatus status) {
setStatus(status);
return this;
}
/**
*
* The actual time the creation of the dataset contents was started.
*
*
* @param creationTime
* The actual time the creation of the dataset contents was started.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The actual time the creation of the dataset contents was started.
*
*
* @return The actual time the creation of the dataset contents was started.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The actual time the creation of the dataset contents was started.
*
*
* @param creationTime
* The actual time the creation of the dataset contents was started.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetContentSummary withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The time the creation of the dataset contents was scheduled to start.
*
*
* @param scheduleTime
* The time the creation of the dataset contents was scheduled to start.
*/
public void setScheduleTime(java.util.Date scheduleTime) {
this.scheduleTime = scheduleTime;
}
/**
*
* The time the creation of the dataset contents was scheduled to start.
*
*
* @return The time the creation of the dataset contents was scheduled to start.
*/
public java.util.Date getScheduleTime() {
return this.scheduleTime;
}
/**
*
* The time the creation of the dataset contents was scheduled to start.
*
*
* @param scheduleTime
* The time the creation of the dataset contents was scheduled to start.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetContentSummary withScheduleTime(java.util.Date scheduleTime) {
setScheduleTime(scheduleTime);
return this;
}
/**
*
* The time the dataset content status was updated to SUCCEEDED or FAILED.
*
*
* @param completionTime
* The time the dataset content status was updated to SUCCEEDED or FAILED.
*/
public void setCompletionTime(java.util.Date completionTime) {
this.completionTime = completionTime;
}
/**
*
* The time the dataset content status was updated to SUCCEEDED or FAILED.
*
*
* @return The time the dataset content status was updated to SUCCEEDED or FAILED.
*/
public java.util.Date getCompletionTime() {
return this.completionTime;
}
/**
*
* The time the dataset content status was updated to SUCCEEDED or FAILED.
*
*
* @param completionTime
* The time the dataset content status was updated to SUCCEEDED or FAILED.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DatasetContentSummary withCompletionTime(java.util.Date completionTime) {
setCompletionTime(completionTime);
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 (getVersion() != null)
sb.append("Version: ").append(getVersion()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getScheduleTime() != null)
sb.append("ScheduleTime: ").append(getScheduleTime()).append(",");
if (getCompletionTime() != null)
sb.append("CompletionTime: ").append(getCompletionTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DatasetContentSummary == false)
return false;
DatasetContentSummary other = (DatasetContentSummary) obj;
if (other.getVersion() == null ^ this.getVersion() == null)
return false;
if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == 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.getScheduleTime() == null ^ this.getScheduleTime() == null)
return false;
if (other.getScheduleTime() != null && other.getScheduleTime().equals(this.getScheduleTime()) == false)
return false;
if (other.getCompletionTime() == null ^ this.getCompletionTime() == null)
return false;
if (other.getCompletionTime() != null && other.getCompletionTime().equals(this.getCompletionTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getScheduleTime() == null) ? 0 : getScheduleTime().hashCode());
hashCode = prime * hashCode + ((getCompletionTime() == null) ? 0 : getCompletionTime().hashCode());
return hashCode;
}
@Override
public DatasetContentSummary clone() {
try {
return (DatasetContentSummary) 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.DatasetContentSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}