com.amazonaws.services.iottwinmaker.model.CancelMetadataTransferJobResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-iottwinmaker Show documentation
/*
* 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.iottwinmaker.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CancelMetadataTransferJobResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The metadata transfer job Id.
*
*/
private String metadataTransferJobId;
/**
*
* The metadata transfer job ARN.
*
*/
private String arn;
/**
*
* Used to update the DateTime property.
*
*/
private java.util.Date updateDateTime;
/**
*
* The metadata transfer job's status.
*
*/
private MetadataTransferJobStatus status;
/**
*
* The metadata transfer job's progress.
*
*/
private MetadataTransferJobProgress progress;
/**
*
* The metadata transfer job Id.
*
*
* @param metadataTransferJobId
* The metadata transfer job Id.
*/
public void setMetadataTransferJobId(String metadataTransferJobId) {
this.metadataTransferJobId = metadataTransferJobId;
}
/**
*
* The metadata transfer job Id.
*
*
* @return The metadata transfer job Id.
*/
public String getMetadataTransferJobId() {
return this.metadataTransferJobId;
}
/**
*
* The metadata transfer job Id.
*
*
* @param metadataTransferJobId
* The metadata transfer job Id.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CancelMetadataTransferJobResult withMetadataTransferJobId(String metadataTransferJobId) {
setMetadataTransferJobId(metadataTransferJobId);
return this;
}
/**
*
* The metadata transfer job ARN.
*
*
* @param arn
* The metadata transfer job ARN.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The metadata transfer job ARN.
*
*
* @return The metadata transfer job ARN.
*/
public String getArn() {
return this.arn;
}
/**
*
* The metadata transfer job ARN.
*
*
* @param arn
* The metadata transfer job ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CancelMetadataTransferJobResult withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* Used to update the DateTime property.
*
*
* @param updateDateTime
* Used to update the DateTime property.
*/
public void setUpdateDateTime(java.util.Date updateDateTime) {
this.updateDateTime = updateDateTime;
}
/**
*
* Used to update the DateTime property.
*
*
* @return Used to update the DateTime property.
*/
public java.util.Date getUpdateDateTime() {
return this.updateDateTime;
}
/**
*
* Used to update the DateTime property.
*
*
* @param updateDateTime
* Used to update the DateTime property.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CancelMetadataTransferJobResult withUpdateDateTime(java.util.Date updateDateTime) {
setUpdateDateTime(updateDateTime);
return this;
}
/**
*
* The metadata transfer job's status.
*
*
* @param status
* The metadata transfer job's status.
*/
public void setStatus(MetadataTransferJobStatus status) {
this.status = status;
}
/**
*
* The metadata transfer job's status.
*
*
* @return The metadata transfer job's status.
*/
public MetadataTransferJobStatus getStatus() {
return this.status;
}
/**
*
* The metadata transfer job's status.
*
*
* @param status
* The metadata transfer job's status.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CancelMetadataTransferJobResult withStatus(MetadataTransferJobStatus status) {
setStatus(status);
return this;
}
/**
*
* The metadata transfer job's progress.
*
*
* @param progress
* The metadata transfer job's progress.
*/
public void setProgress(MetadataTransferJobProgress progress) {
this.progress = progress;
}
/**
*
* The metadata transfer job's progress.
*
*
* @return The metadata transfer job's progress.
*/
public MetadataTransferJobProgress getProgress() {
return this.progress;
}
/**
*
* The metadata transfer job's progress.
*
*
* @param progress
* The metadata transfer job's progress.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CancelMetadataTransferJobResult withProgress(MetadataTransferJobProgress progress) {
setProgress(progress);
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 (getMetadataTransferJobId() != null)
sb.append("MetadataTransferJobId: ").append(getMetadataTransferJobId()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getUpdateDateTime() != null)
sb.append("UpdateDateTime: ").append(getUpdateDateTime()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getProgress() != null)
sb.append("Progress: ").append(getProgress());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CancelMetadataTransferJobResult == false)
return false;
CancelMetadataTransferJobResult other = (CancelMetadataTransferJobResult) obj;
if (other.getMetadataTransferJobId() == null ^ this.getMetadataTransferJobId() == null)
return false;
if (other.getMetadataTransferJobId() != null && other.getMetadataTransferJobId().equals(this.getMetadataTransferJobId()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getUpdateDateTime() == null ^ this.getUpdateDateTime() == null)
return false;
if (other.getUpdateDateTime() != null && other.getUpdateDateTime().equals(this.getUpdateDateTime()) == 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.getProgress() == null ^ this.getProgress() == null)
return false;
if (other.getProgress() != null && other.getProgress().equals(this.getProgress()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMetadataTransferJobId() == null) ? 0 : getMetadataTransferJobId().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getUpdateDateTime() == null) ? 0 : getUpdateDateTime().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getProgress() == null) ? 0 : getProgress().hashCode());
return hashCode;
}
@Override
public CancelMetadataTransferJobResult clone() {
try {
return (CancelMetadataTransferJobResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}