* The Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the AWS General Reference guide.
*
* The version of the application. *
*/ private String appVersion; /** ** The returned error message for the request. *
*/ private String errorMessage; /** ** The status of the action. *
*/ private String status; /** ** The timestamp for when the status last changed. *
*/ private java.util.Date statusChangeTime; /** *
* The Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the AWS General Reference guide.
*
partition
:resiliencehub:region
:account
:app/app-id
. For
* more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public void setAppArn(String appArn) {
this.appArn = appArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the AWS General Reference guide.
*
partition
:resiliencehub:region
:account
:app/app-id
.
* For more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public String getAppArn() {
return this.appArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the AWS General Reference guide.
*
partition
:resiliencehub:region
:account
:app/app-id
. For
* more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDraftAppVersionResourcesImportStatusResult withAppArn(String appArn) {
setAppArn(appArn);
return this;
}
/**
* * The version of the application. *
* * @param appVersion * The version of the application. */ public void setAppVersion(String appVersion) { this.appVersion = appVersion; } /** ** The version of the application. *
* * @return The version of the application. */ public String getAppVersion() { return this.appVersion; } /** ** The version of the application. *
* * @param appVersion * The version of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDraftAppVersionResourcesImportStatusResult withAppVersion(String appVersion) { setAppVersion(appVersion); return this; } /** ** The returned error message for the request. *
* * @param errorMessage * The returned error message for the request. */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** ** The returned error message for the request. *
* * @return The returned error message for the request. */ public String getErrorMessage() { return this.errorMessage; } /** ** The returned error message for the request. *
* * @param errorMessage * The returned error message for the request. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDraftAppVersionResourcesImportStatusResult withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** ** The status of the action. *
* * @param status * The status of the action. * @see ResourceImportStatusType */ public void setStatus(String status) { this.status = status; } /** ** The status of the action. *
* * @return The status of the action. * @see ResourceImportStatusType */ public String getStatus() { return this.status; } /** ** The status of the action. *
* * @param status * The status of the action. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceImportStatusType */ public DescribeDraftAppVersionResourcesImportStatusResult withStatus(String status) { setStatus(status); return this; } /** ** The status of the action. *
* * @param status * The status of the action. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceImportStatusType */ public DescribeDraftAppVersionResourcesImportStatusResult withStatus(ResourceImportStatusType status) { this.status = status.toString(); return this; } /** ** The timestamp for when the status last changed. *
* * @param statusChangeTime * The timestamp for when the status last changed. */ public void setStatusChangeTime(java.util.Date statusChangeTime) { this.statusChangeTime = statusChangeTime; } /** ** The timestamp for when the status last changed. *
* * @return The timestamp for when the status last changed. */ public java.util.Date getStatusChangeTime() { return this.statusChangeTime; } /** ** The timestamp for when the status last changed. *
* * @param statusChangeTime * The timestamp for when the status last changed. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDraftAppVersionResourcesImportStatusResult withStatusChangeTime(java.util.Date statusChangeTime) { setStatusChangeTime(statusChangeTime); 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 (getAppArn() != null) sb.append("AppArn: ").append(getAppArn()).append(","); if (getAppVersion() != null) sb.append("AppVersion: ").append(getAppVersion()).append(","); if (getErrorMessage() != null) sb.append("ErrorMessage: ").append(getErrorMessage()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusChangeTime() != null) sb.append("StatusChangeTime: ").append(getStatusChangeTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDraftAppVersionResourcesImportStatusResult == false) return false; DescribeDraftAppVersionResourcesImportStatusResult other = (DescribeDraftAppVersionResourcesImportStatusResult) obj; if (other.getAppArn() == null ^ this.getAppArn() == null) return false; if (other.getAppArn() != null && other.getAppArn().equals(this.getAppArn()) == false) return false; if (other.getAppVersion() == null ^ this.getAppVersion() == null) return false; if (other.getAppVersion() != null && other.getAppVersion().equals(this.getAppVersion()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusChangeTime() == null ^ this.getStatusChangeTime() == null) return false; if (other.getStatusChangeTime() != null && other.getStatusChangeTime().equals(this.getStatusChangeTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppArn() == null) ? 0 : getAppArn().hashCode()); hashCode = prime * hashCode + ((getAppVersion() == null) ? 0 : getAppVersion().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusChangeTime() == null) ? 0 : getStatusChangeTime().hashCode()); return hashCode; } @Override public DescribeDraftAppVersionResourcesImportStatusResult clone() { try { return (DescribeDraftAppVersionResourcesImportStatusResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }