(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 GetBulkDeploymentStatusResult 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 GetBulkDeploymentStatusResult 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 GetBulkDeploymentStatusResult withErrorMessage(String errorMessage) {
setErrorMessage(errorMessage);
return this;
}
/**
* Tag(s) attached to the resource arn.
*
* @return Tag(s) attached to the resource arn.
*/
public java.util.Map getTags() {
return tags;
}
/**
* Tag(s) attached to the resource arn.
*
* @param tags
* Tag(s) attached to the resource arn.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
* Tag(s) attached to the resource arn.
*
* @param tags
* Tag(s) attached to the resource arn.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetBulkDeploymentStatusResult withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see GetBulkDeploymentStatusResult#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public GetBulkDeploymentStatusResult addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetBulkDeploymentStatusResult clearTagsEntries() {
this.tags = null;
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 (getBulkDeploymentMetrics() != null)
sb.append("BulkDeploymentMetrics: ").append(getBulkDeploymentMetrics()).append(",");
if (getBulkDeploymentStatus() != null)
sb.append("BulkDeploymentStatus: ").append(getBulkDeploymentStatus()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getErrorDetails() != null)
sb.append("ErrorDetails: ").append(getErrorDetails()).append(",");
if (getErrorMessage() != null)
sb.append("ErrorMessage: ").append(getErrorMessage()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetBulkDeploymentStatusResult == false)
return false;
GetBulkDeploymentStatusResult other = (GetBulkDeploymentStatusResult) obj;
if (other.getBulkDeploymentMetrics() == null ^ this.getBulkDeploymentMetrics() == null)
return false;
if (other.getBulkDeploymentMetrics() != null && other.getBulkDeploymentMetrics().equals(this.getBulkDeploymentMetrics()) == false)
return false;
if (other.getBulkDeploymentStatus() == null ^ this.getBulkDeploymentStatus() == null)
return false;
if (other.getBulkDeploymentStatus() != null && other.getBulkDeploymentStatus().equals(this.getBulkDeploymentStatus()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == 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.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBulkDeploymentMetrics() == null) ? 0 : getBulkDeploymentMetrics().hashCode());
hashCode = prime * hashCode + ((getBulkDeploymentStatus() == null) ? 0 : getBulkDeploymentStatus().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getErrorDetails() == null) ? 0 : getErrorDetails().hashCode());
hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
}
@Override
public GetBulkDeploymentStatusResult clone() {
try {
return (GetBulkDeploymentStatusResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}