(errorDetails);
}
/**
* Error details
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setErrorDetails(java.util.Collection)} or {@link #withErrorDetails(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param errorDetails
* Error details
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDeploymentStatusResult withErrorDetails(ErrorDetail... errorDetails) {
if (this.errorDetails == null) {
setErrorDetails(new java.util.ArrayList(errorDetails.length));
}
for (ErrorDetail ele : errorDetails) {
this.errorDetails.add(ele);
}
return this;
}
/**
* Error details
*
* @param errorDetails
* Error details
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDeploymentStatusResult withErrorDetails(java.util.Collection errorDetails) {
setErrorDetails(errorDetails);
return this;
}
/**
* Error message
*
* @param errorMessage
* Error message
*/
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
/**
* Error message
*
* @return Error message
*/
public String getErrorMessage() {
return this.errorMessage;
}
/**
* Error message
*
* @param errorMessage
* Error message
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDeploymentStatusResult withErrorMessage(String errorMessage) {
setErrorMessage(errorMessage);
return this;
}
/**
* The time, in milliseconds since the epoch, when the deployment status was updated.
*
* @param updatedAt
* The time, in milliseconds since the epoch, when the deployment status was updated.
*/
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
/**
* The time, in milliseconds since the epoch, when the deployment status was updated.
*
* @return The time, in milliseconds since the epoch, when the deployment status was updated.
*/
public String getUpdatedAt() {
return this.updatedAt;
}
/**
* The time, in milliseconds since the epoch, when the deployment status was updated.
*
* @param updatedAt
* The time, in milliseconds since the epoch, when the deployment status was updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDeploymentStatusResult withUpdatedAt(String updatedAt) {
setUpdatedAt(updatedAt);
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 (getDeploymentStatus() != null)
sb.append("DeploymentStatus: ").append(getDeploymentStatus()).append(",");
if (getDeploymentType() != null)
sb.append("DeploymentType: ").append(getDeploymentType()).append(",");
if (getErrorDetails() != null)
sb.append("ErrorDetails: ").append(getErrorDetails()).append(",");
if (getErrorMessage() != null)
sb.append("ErrorMessage: ").append(getErrorMessage()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetDeploymentStatusResult == false)
return false;
GetDeploymentStatusResult other = (GetDeploymentStatusResult) obj;
if (other.getDeploymentStatus() == null ^ this.getDeploymentStatus() == null)
return false;
if (other.getDeploymentStatus() != null && other.getDeploymentStatus().equals(this.getDeploymentStatus()) == false)
return false;
if (other.getDeploymentType() == null ^ this.getDeploymentType() == null)
return false;
if (other.getDeploymentType() != null && other.getDeploymentType().equals(this.getDeploymentType()) == false)
return false;
if (other.getErrorDetails() == null ^ this.getErrorDetails() == null)
return false;
if (other.getErrorDetails() != null && other.getErrorDetails().equals(this.getErrorDetails()) == false)
return false;
if (other.getErrorMessage() == null ^ this.getErrorMessage() == null)
return false;
if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false)
return false;
if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null)
return false;
if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDeploymentStatus() == null) ? 0 : getDeploymentStatus().hashCode());
hashCode = prime * hashCode + ((getDeploymentType() == null) ? 0 : getDeploymentType().hashCode());
hashCode = prime * hashCode + ((getErrorDetails() == null) ? 0 : getErrorDetails().hashCode());
hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
return hashCode;
}
@Override
public GetDeploymentStatusResult clone() {
try {
return (GetDeploymentStatusResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}