com.amazonaws.services.finspacedata.model.ChangesetSummary Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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.finspacedata.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* A Changeset is unit of data in a Dataset.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ChangesetSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The unique identifier for a Changeset.
*
*/
private String changesetId;
/**
*
* The ARN identifier of the Changeset.
*
*/
private String changesetArn;
/**
*
* The unique identifier for the FinSpace Dataset in which the Changeset is created.
*
*/
private String datasetId;
/**
*
* Type that indicates how a Changeset is applied to a Dataset.
*
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
*
*/
private String changeType;
/**
*
* Options that define the location of the data being ingested.
*
*/
private java.util.Map sourceParams;
/**
*
* Options that define the structure of the source file(s).
*
*/
private java.util.Map formatParams;
/**
*
* The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in
* milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*/
private Long createTime;
/**
*
* Status of the Changeset ingestion.
*
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
*
*/
private String status;
/**
*
* The structure with error messages.
*
*/
private ChangesetErrorInfo errorInfo;
/**
*
* Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the
* value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*/
private Long activeUntilTimestamp;
/**
*
* Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For
* example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*/
private Long activeFromTimestamp;
/**
*
* The unique identifier of the Changeset that is updated.
*
*/
private String updatesChangesetId;
/**
*
* The unique identifier of the updated Changeset.
*
*/
private String updatedByChangesetId;
/**
*
* The unique identifier for a Changeset.
*
*
* @param changesetId
* The unique identifier for a Changeset.
*/
public void setChangesetId(String changesetId) {
this.changesetId = changesetId;
}
/**
*
* The unique identifier for a Changeset.
*
*
* @return The unique identifier for a Changeset.
*/
public String getChangesetId() {
return this.changesetId;
}
/**
*
* The unique identifier for a Changeset.
*
*
* @param changesetId
* The unique identifier for a Changeset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withChangesetId(String changesetId) {
setChangesetId(changesetId);
return this;
}
/**
*
* The ARN identifier of the Changeset.
*
*
* @param changesetArn
* The ARN identifier of the Changeset.
*/
public void setChangesetArn(String changesetArn) {
this.changesetArn = changesetArn;
}
/**
*
* The ARN identifier of the Changeset.
*
*
* @return The ARN identifier of the Changeset.
*/
public String getChangesetArn() {
return this.changesetArn;
}
/**
*
* The ARN identifier of the Changeset.
*
*
* @param changesetArn
* The ARN identifier of the Changeset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withChangesetArn(String changesetArn) {
setChangesetArn(changesetArn);
return this;
}
/**
*
* The unique identifier for the FinSpace Dataset in which the Changeset is created.
*
*
* @param datasetId
* The unique identifier for the FinSpace Dataset in which the Changeset is created.
*/
public void setDatasetId(String datasetId) {
this.datasetId = datasetId;
}
/**
*
* The unique identifier for the FinSpace Dataset in which the Changeset is created.
*
*
* @return The unique identifier for the FinSpace Dataset in which the Changeset is created.
*/
public String getDatasetId() {
return this.datasetId;
}
/**
*
* The unique identifier for the FinSpace Dataset in which the Changeset is created.
*
*
* @param datasetId
* The unique identifier for the FinSpace Dataset in which the Changeset is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withDatasetId(String datasetId) {
setDatasetId(datasetId);
return this;
}
/**
*
* Type that indicates how a Changeset is applied to a Dataset.
*
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
*
*
* @param changeType
* Type that indicates how a Changeset is applied to a Dataset.
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
* @see ChangeType
*/
public void setChangeType(String changeType) {
this.changeType = changeType;
}
/**
*
* Type that indicates how a Changeset is applied to a Dataset.
*
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
*
*
* @return Type that indicates how a Changeset is applied to a Dataset.
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
* @see ChangeType
*/
public String getChangeType() {
return this.changeType;
}
/**
*
* Type that indicates how a Changeset is applied to a Dataset.
*
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
*
*
* @param changeType
* Type that indicates how a Changeset is applied to a Dataset.
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ChangeType
*/
public ChangesetSummary withChangeType(String changeType) {
setChangeType(changeType);
return this;
}
/**
*
* Type that indicates how a Changeset is applied to a Dataset.
*
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
*
*
* @param changeType
* Type that indicates how a Changeset is applied to a Dataset.
*
* -
*
* REPLACE
– Changeset is considered as a replacement to all prior loaded Changesets.
*
*
* -
*
* APPEND
– Changeset is considered as an addition to the end of all prior loaded Changesets.
*
*
* -
*
* MODIFY
– Changeset is considered as a replacement to a specific prior ingested Changeset.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ChangeType
*/
public ChangesetSummary withChangeType(ChangeType changeType) {
this.changeType = changeType.toString();
return this;
}
/**
*
* Options that define the location of the data being ingested.
*
*
* @return Options that define the location of the data being ingested.
*/
public java.util.Map getSourceParams() {
return sourceParams;
}
/**
*
* Options that define the location of the data being ingested.
*
*
* @param sourceParams
* Options that define the location of the data being ingested.
*/
public void setSourceParams(java.util.Map sourceParams) {
this.sourceParams = sourceParams;
}
/**
*
* Options that define the location of the data being ingested.
*
*
* @param sourceParams
* Options that define the location of the data being ingested.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withSourceParams(java.util.Map sourceParams) {
setSourceParams(sourceParams);
return this;
}
/**
* Add a single SourceParams entry
*
* @see ChangesetSummary#withSourceParams
* @returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary addSourceParamsEntry(String key, String value) {
if (null == this.sourceParams) {
this.sourceParams = new java.util.HashMap();
}
if (this.sourceParams.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.sourceParams.put(key, value);
return this;
}
/**
* Removes all the entries added into SourceParams.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary clearSourceParamsEntries() {
this.sourceParams = null;
return this;
}
/**
*
* Options that define the structure of the source file(s).
*
*
* @return Options that define the structure of the source file(s).
*/
public java.util.Map getFormatParams() {
return formatParams;
}
/**
*
* Options that define the structure of the source file(s).
*
*
* @param formatParams
* Options that define the structure of the source file(s).
*/
public void setFormatParams(java.util.Map formatParams) {
this.formatParams = formatParams;
}
/**
*
* Options that define the structure of the source file(s).
*
*
* @param formatParams
* Options that define the structure of the source file(s).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withFormatParams(java.util.Map formatParams) {
setFormatParams(formatParams);
return this;
}
/**
* Add a single FormatParams entry
*
* @see ChangesetSummary#withFormatParams
* @returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary addFormatParamsEntry(String key, String value) {
if (null == this.formatParams) {
this.formatParams = new java.util.HashMap();
}
if (this.formatParams.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.formatParams.put(key, value);
return this;
}
/**
* Removes all the entries added into FormatParams.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary clearFormatParamsEntries() {
this.formatParams = null;
return this;
}
/**
*
* The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in
* milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @param createTime
* The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in
* milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as
* 1635768000000.
*/
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
/**
*
* The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in
* milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @return The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in
* milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as
* 1635768000000.
*/
public Long getCreateTime() {
return this.createTime;
}
/**
*
* The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in
* milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @param createTime
* The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in
* milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as
* 1635768000000.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withCreateTime(Long createTime) {
setCreateTime(createTime);
return this;
}
/**
*
* Status of the Changeset ingestion.
*
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
*
*
* @param status
* Status of the Changeset ingestion.
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
* @see IngestionStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Status of the Changeset ingestion.
*
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
*
*
* @return Status of the Changeset ingestion.
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
* @see IngestionStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* Status of the Changeset ingestion.
*
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
*
*
* @param status
* Status of the Changeset ingestion.
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see IngestionStatus
*/
public ChangesetSummary withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Status of the Changeset ingestion.
*
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
*
*
* @param status
* Status of the Changeset ingestion.
*
* -
*
* PENDING
– Changeset is pending creation.
*
*
* -
*
* FAILED
– Changeset creation has failed.
*
*
* -
*
* SUCCESS
– Changeset creation has succeeded.
*
*
* -
*
* RUNNING
– Changeset creation is running.
*
*
* -
*
* STOP_REQUESTED
– User requested Changeset creation to stop.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see IngestionStatus
*/
public ChangesetSummary withStatus(IngestionStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The structure with error messages.
*
*
* @param errorInfo
* The structure with error messages.
*/
public void setErrorInfo(ChangesetErrorInfo errorInfo) {
this.errorInfo = errorInfo;
}
/**
*
* The structure with error messages.
*
*
* @return The structure with error messages.
*/
public ChangesetErrorInfo getErrorInfo() {
return this.errorInfo;
}
/**
*
* The structure with error messages.
*
*
* @param errorInfo
* The structure with error messages.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withErrorInfo(ChangesetErrorInfo errorInfo) {
setErrorInfo(errorInfo);
return this;
}
/**
*
* Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the
* value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @param activeUntilTimestamp
* Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For
* example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public void setActiveUntilTimestamp(Long activeUntilTimestamp) {
this.activeUntilTimestamp = activeUntilTimestamp;
}
/**
*
* Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the
* value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @return Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For
* example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public Long getActiveUntilTimestamp() {
return this.activeUntilTimestamp;
}
/**
*
* Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the
* value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @param activeUntilTimestamp
* Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For
* example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withActiveUntilTimestamp(Long activeUntilTimestamp) {
setActiveUntilTimestamp(activeUntilTimestamp);
return this;
}
/**
*
* Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For
* example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @param activeFromTimestamp
* Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds.
* For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public void setActiveFromTimestamp(Long activeFromTimestamp) {
this.activeFromTimestamp = activeFromTimestamp;
}
/**
*
* Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For
* example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @return Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds.
* For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public Long getActiveFromTimestamp() {
return this.activeFromTimestamp;
}
/**
*
* Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For
* example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
*
* @param activeFromTimestamp
* Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds.
* For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withActiveFromTimestamp(Long activeFromTimestamp) {
setActiveFromTimestamp(activeFromTimestamp);
return this;
}
/**
*
* The unique identifier of the Changeset that is updated.
*
*
* @param updatesChangesetId
* The unique identifier of the Changeset that is updated.
*/
public void setUpdatesChangesetId(String updatesChangesetId) {
this.updatesChangesetId = updatesChangesetId;
}
/**
*
* The unique identifier of the Changeset that is updated.
*
*
* @return The unique identifier of the Changeset that is updated.
*/
public String getUpdatesChangesetId() {
return this.updatesChangesetId;
}
/**
*
* The unique identifier of the Changeset that is updated.
*
*
* @param updatesChangesetId
* The unique identifier of the Changeset that is updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withUpdatesChangesetId(String updatesChangesetId) {
setUpdatesChangesetId(updatesChangesetId);
return this;
}
/**
*
* The unique identifier of the updated Changeset.
*
*
* @param updatedByChangesetId
* The unique identifier of the updated Changeset.
*/
public void setUpdatedByChangesetId(String updatedByChangesetId) {
this.updatedByChangesetId = updatedByChangesetId;
}
/**
*
* The unique identifier of the updated Changeset.
*
*
* @return The unique identifier of the updated Changeset.
*/
public String getUpdatedByChangesetId() {
return this.updatedByChangesetId;
}
/**
*
* The unique identifier of the updated Changeset.
*
*
* @param updatedByChangesetId
* The unique identifier of the updated Changeset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChangesetSummary withUpdatedByChangesetId(String updatedByChangesetId) {
setUpdatedByChangesetId(updatedByChangesetId);
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 (getChangesetId() != null)
sb.append("ChangesetId: ").append(getChangesetId()).append(",");
if (getChangesetArn() != null)
sb.append("ChangesetArn: ").append(getChangesetArn()).append(",");
if (getDatasetId() != null)
sb.append("DatasetId: ").append(getDatasetId()).append(",");
if (getChangeType() != null)
sb.append("ChangeType: ").append(getChangeType()).append(",");
if (getSourceParams() != null)
sb.append("SourceParams: ").append(getSourceParams()).append(",");
if (getFormatParams() != null)
sb.append("FormatParams: ").append(getFormatParams()).append(",");
if (getCreateTime() != null)
sb.append("CreateTime: ").append(getCreateTime()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getErrorInfo() != null)
sb.append("ErrorInfo: ").append(getErrorInfo()).append(",");
if (getActiveUntilTimestamp() != null)
sb.append("ActiveUntilTimestamp: ").append(getActiveUntilTimestamp()).append(",");
if (getActiveFromTimestamp() != null)
sb.append("ActiveFromTimestamp: ").append(getActiveFromTimestamp()).append(",");
if (getUpdatesChangesetId() != null)
sb.append("UpdatesChangesetId: ").append(getUpdatesChangesetId()).append(",");
if (getUpdatedByChangesetId() != null)
sb.append("UpdatedByChangesetId: ").append(getUpdatedByChangesetId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ChangesetSummary == false)
return false;
ChangesetSummary other = (ChangesetSummary) obj;
if (other.getChangesetId() == null ^ this.getChangesetId() == null)
return false;
if (other.getChangesetId() != null && other.getChangesetId().equals(this.getChangesetId()) == false)
return false;
if (other.getChangesetArn() == null ^ this.getChangesetArn() == null)
return false;
if (other.getChangesetArn() != null && other.getChangesetArn().equals(this.getChangesetArn()) == false)
return false;
if (other.getDatasetId() == null ^ this.getDatasetId() == null)
return false;
if (other.getDatasetId() != null && other.getDatasetId().equals(this.getDatasetId()) == false)
return false;
if (other.getChangeType() == null ^ this.getChangeType() == null)
return false;
if (other.getChangeType() != null && other.getChangeType().equals(this.getChangeType()) == false)
return false;
if (other.getSourceParams() == null ^ this.getSourceParams() == null)
return false;
if (other.getSourceParams() != null && other.getSourceParams().equals(this.getSourceParams()) == false)
return false;
if (other.getFormatParams() == null ^ this.getFormatParams() == null)
return false;
if (other.getFormatParams() != null && other.getFormatParams().equals(this.getFormatParams()) == false)
return false;
if (other.getCreateTime() == null ^ this.getCreateTime() == null)
return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == 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.getErrorInfo() == null ^ this.getErrorInfo() == null)
return false;
if (other.getErrorInfo() != null && other.getErrorInfo().equals(this.getErrorInfo()) == false)
return false;
if (other.getActiveUntilTimestamp() == null ^ this.getActiveUntilTimestamp() == null)
return false;
if (other.getActiveUntilTimestamp() != null && other.getActiveUntilTimestamp().equals(this.getActiveUntilTimestamp()) == false)
return false;
if (other.getActiveFromTimestamp() == null ^ this.getActiveFromTimestamp() == null)
return false;
if (other.getActiveFromTimestamp() != null && other.getActiveFromTimestamp().equals(this.getActiveFromTimestamp()) == false)
return false;
if (other.getUpdatesChangesetId() == null ^ this.getUpdatesChangesetId() == null)
return false;
if (other.getUpdatesChangesetId() != null && other.getUpdatesChangesetId().equals(this.getUpdatesChangesetId()) == false)
return false;
if (other.getUpdatedByChangesetId() == null ^ this.getUpdatedByChangesetId() == null)
return false;
if (other.getUpdatedByChangesetId() != null && other.getUpdatedByChangesetId().equals(this.getUpdatedByChangesetId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getChangesetId() == null) ? 0 : getChangesetId().hashCode());
hashCode = prime * hashCode + ((getChangesetArn() == null) ? 0 : getChangesetArn().hashCode());
hashCode = prime * hashCode + ((getDatasetId() == null) ? 0 : getDatasetId().hashCode());
hashCode = prime * hashCode + ((getChangeType() == null) ? 0 : getChangeType().hashCode());
hashCode = prime * hashCode + ((getSourceParams() == null) ? 0 : getSourceParams().hashCode());
hashCode = prime * hashCode + ((getFormatParams() == null) ? 0 : getFormatParams().hashCode());
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getErrorInfo() == null) ? 0 : getErrorInfo().hashCode());
hashCode = prime * hashCode + ((getActiveUntilTimestamp() == null) ? 0 : getActiveUntilTimestamp().hashCode());
hashCode = prime * hashCode + ((getActiveFromTimestamp() == null) ? 0 : getActiveFromTimestamp().hashCode());
hashCode = prime * hashCode + ((getUpdatesChangesetId() == null) ? 0 : getUpdatesChangesetId().hashCode());
hashCode = prime * hashCode + ((getUpdatedByChangesetId() == null) ? 0 : getUpdatedByChangesetId().hashCode());
return hashCode;
}
@Override
public ChangesetSummary clone() {
try {
return (ChangesetSummary) 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.finspacedata.model.transform.ChangesetSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}