/* * 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.mainframemodernization.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* A subset of the possible data set attributes. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DataSetSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The timestamp when the data set was created. *

*/ private java.util.Date creationTime; /** *

* The name of the data set. *

*/ private String dataSetName; /** *

* The type of data set. The only supported value is VSAM. *

*/ private String dataSetOrg; /** *

* The format of the data set. *

*/ private String format; /** *

* The last time the data set was referenced. *

*/ private java.util.Date lastReferencedTime; /** *

* The last time the data set was updated. *

*/ private java.util.Date lastUpdatedTime; /** *

* The timestamp when the data set was created. *

* * @param creationTime * The timestamp when the data set was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The timestamp when the data set was created. *

* * @return The timestamp when the data set was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The timestamp when the data set was created. *

* * @param creationTime * The timestamp when the data set 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 name of the data set. *

* * @param dataSetName * The name of the data set. */ public void setDataSetName(String dataSetName) { this.dataSetName = dataSetName; } /** *

* The name of the data set. *

* * @return The name of the data set. */ public String getDataSetName() { return this.dataSetName; } /** *

* The name of the data set. *

* * @param dataSetName * The name of the data set. * @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 type of data set. The only supported value is VSAM. *

* * @param dataSetOrg * The type of data set. The only supported value is VSAM. */ public void setDataSetOrg(String dataSetOrg) { this.dataSetOrg = dataSetOrg; } /** *

* The type of data set. The only supported value is VSAM. *

* * @return The type of data set. The only supported value is VSAM. */ public String getDataSetOrg() { return this.dataSetOrg; } /** *

* The type of data set. The only supported value is VSAM. *

* * @param dataSetOrg * The type of data set. The only supported value is VSAM. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSetSummary withDataSetOrg(String dataSetOrg) { setDataSetOrg(dataSetOrg); return this; } /** *

* The format of the data set. *

* * @param format * The format of the data set. */ public void setFormat(String format) { this.format = format; } /** *

* The format of the data set. *

* * @return The format of the data set. */ public String getFormat() { return this.format; } /** *

* The format of the data set. *

* * @param format * The format of the data set. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSetSummary withFormat(String format) { setFormat(format); return this; } /** *

* The last time the data set was referenced. *

* * @param lastReferencedTime * The last time the data set was referenced. */ public void setLastReferencedTime(java.util.Date lastReferencedTime) { this.lastReferencedTime = lastReferencedTime; } /** *

* The last time the data set was referenced. *

* * @return The last time the data set was referenced. */ public java.util.Date getLastReferencedTime() { return this.lastReferencedTime; } /** *

* The last time the data set was referenced. *

* * @param lastReferencedTime * The last time the data set was referenced. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSetSummary withLastReferencedTime(java.util.Date lastReferencedTime) { setLastReferencedTime(lastReferencedTime); return this; } /** *

* The last time the data set was updated. *

* * @param lastUpdatedTime * The last time the data set was updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* The last time the data set was updated. *

* * @return The last time the data set was updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* The last time the data set was updated. *

* * @param lastUpdatedTime * The last time the data set was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSetSummary withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); 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 (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getDataSetName() != null) sb.append("DataSetName: ").append(getDataSetName()).append(","); if (getDataSetOrg() != null) sb.append("DataSetOrg: ").append(getDataSetOrg()).append(","); if (getFormat() != null) sb.append("Format: ").append(getFormat()).append(","); if (getLastReferencedTime() != null) sb.append("LastReferencedTime: ").append(getLastReferencedTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()); 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.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getDataSetName() == null ^ this.getDataSetName() == null) return false; if (other.getDataSetName() != null && other.getDataSetName().equals(this.getDataSetName()) == false) return false; if (other.getDataSetOrg() == null ^ this.getDataSetOrg() == null) return false; if (other.getDataSetOrg() != null && other.getDataSetOrg().equals(this.getDataSetOrg()) == false) return false; if (other.getFormat() == null ^ this.getFormat() == null) return false; if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false) return false; if (other.getLastReferencedTime() == null ^ this.getLastReferencedTime() == null) return false; if (other.getLastReferencedTime() != null && other.getLastReferencedTime().equals(this.getLastReferencedTime()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getDataSetName() == null) ? 0 : getDataSetName().hashCode()); hashCode = prime * hashCode + ((getDataSetOrg() == null) ? 0 : getDataSetOrg().hashCode()); hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode()); hashCode = prime * hashCode + ((getLastReferencedTime() == null) ? 0 : getLastReferencedTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().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.mainframemodernization.model.transform.DataSetSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }