com.amazonaws.services.resiliencehub.model.DescribeDraftAppVersionResourcesImportStatusResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-resiliencehub 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.resiliencehub.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeDraftAppVersionResourcesImportStatusResult extends com.amazonaws.AmazonWebServiceResult implements
Serializable, Cloneable {
/**
*
* 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 Amazon Web Services General Reference guide.
*
*/
private String appArn;
/**
*
* The version of the application.
*
*/
private String appVersion;
/**
*
* The returned error message for the request.
*
*/
private String errorMessage;
/**
*
* Status of the action.
*
*/
private String status;
/**
*
* The time when the status last changed.
*
*/
private java.util.Date statusChangeTime;
/**
*
* 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 Amazon Web Services General Reference guide.
*
*
* @param appArn
* 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 Amazon Web Services General Reference guide.
*/
public void setAppArn(String appArn) {
this.appArn = appArn;
}
/**
*
* 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 Amazon Web Services General Reference guide.
*
*
* @return 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 Amazon Web Services General Reference guide.
*/
public String getAppArn() {
return this.appArn;
}
/**
*
* 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 Amazon Web Services General Reference guide.
*
*
* @param appArn
* 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 Amazon Web Services 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;
}
/**
*
* Status of the action.
*
*
* @param status
* Status of the action.
* @see ResourceImportStatusType
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Status of the action.
*
*
* @return Status of the action.
* @see ResourceImportStatusType
*/
public String getStatus() {
return this.status;
}
/**
*
* Status of the action.
*
*
* @param status
* 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;
}
/**
*
* Status of the action.
*
*
* @param status
* 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 time when the status last changed.
*
*
* @param statusChangeTime
* The time when the status last changed.
*/
public void setStatusChangeTime(java.util.Date statusChangeTime) {
this.statusChangeTime = statusChangeTime;
}
/**
*
* The time when the status last changed.
*
*
* @return The time when the status last changed.
*/
public java.util.Date getStatusChangeTime() {
return this.statusChangeTime;
}
/**
*
* The time when the status last changed.
*
*
* @param statusChangeTime
* The time 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);
}
}
}