com.amazonaws.services.resiliencehub.model.AppAssessment 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Defines an application assessment.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AppAssessment implements Serializable, Cloneable, StructuredPojo {
/**
*
* 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;
/**
*
* Version of an application.
*
*/
private String appVersion;
/**
*
* Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more information
* about ARNs, see Amazon
* Resource Names (ARNs) in the Amazon Web Services General Reference guide.
*
*/
private String assessmentArn;
/**
*
* Name of the assessment.
*
*/
private String assessmentName;
/**
*
* Current status of the assessment for the resiliency policy.
*
*/
private String assessmentStatus;
/**
*
* Application compliance against the resiliency policy.
*
*/
private java.util.Map compliance;
/**
*
* Current status of the compliance for the resiliency policy.
*
*/
private String complianceStatus;
/**
*
* Cost for the application.
*
*/
private Cost cost;
/**
*
* Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
*
*/
private String driftStatus;
/**
*
* End time for the action.
*
*/
private java.util.Date endTime;
/**
*
* The entity that invoked the assessment.
*
*/
private String invoker;
/**
*
* Error or warning message from the assessment execution
*
*/
private String message;
/**
*
* Resiliency policy of an application.
*
*/
private ResiliencyPolicy policy;
/**
*
* Current resiliency score for an application.
*
*/
private ResiliencyScore resiliencyScore;
/**
*
* A resource error object containing a list of errors retrieving an application's resources.
*
*/
private ResourceErrorsDetails resourceErrorsDetails;
/**
*
* Starting time for the action.
*
*/
private java.util.Date startTime;
/**
*
* Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag
* consists of a key/value pair.
*
*/
private java.util.Map tags;
/**
*
* Version name of the published application.
*
*/
private String versionName;
/**
*
* 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 AppAssessment withAppArn(String appArn) {
setAppArn(appArn);
return this;
}
/**
*
* Version of an application.
*
*
* @param appVersion
* Version of an application.
*/
public void setAppVersion(String appVersion) {
this.appVersion = appVersion;
}
/**
*
* Version of an application.
*
*
* @return Version of an application.
*/
public String getAppVersion() {
return this.appVersion;
}
/**
*
* Version of an application.
*
*
* @param appVersion
* Version of an application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withAppVersion(String appVersion) {
setAppVersion(appVersion);
return this;
}
/**
*
* Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more information
* about ARNs, see Amazon
* Resource Names (ARNs) in the Amazon Web Services General Reference guide.
*
*
* @param assessmentArn
* Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more
* information about ARNs, see Amazon Resource Names
* (ARNs) in the Amazon Web Services General Reference guide.
*/
public void setAssessmentArn(String assessmentArn) {
this.assessmentArn = assessmentArn;
}
/**
*
* Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/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 assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more
* information about ARNs, see Amazon Resource Names
* (ARNs) in the Amazon Web Services General Reference guide.
*/
public String getAssessmentArn() {
return this.assessmentArn;
}
/**
*
* Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more information
* about ARNs, see Amazon
* Resource Names (ARNs) in the Amazon Web Services General Reference guide.
*
*
* @param assessmentArn
* Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
* :resiliencehub:region
:account
:app-assessment/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 AppAssessment withAssessmentArn(String assessmentArn) {
setAssessmentArn(assessmentArn);
return this;
}
/**
*
* Name of the assessment.
*
*
* @param assessmentName
* Name of the assessment.
*/
public void setAssessmentName(String assessmentName) {
this.assessmentName = assessmentName;
}
/**
*
* Name of the assessment.
*
*
* @return Name of the assessment.
*/
public String getAssessmentName() {
return this.assessmentName;
}
/**
*
* Name of the assessment.
*
*
* @param assessmentName
* Name of the assessment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withAssessmentName(String assessmentName) {
setAssessmentName(assessmentName);
return this;
}
/**
*
* Current status of the assessment for the resiliency policy.
*
*
* @param assessmentStatus
* Current status of the assessment for the resiliency policy.
* @see AssessmentStatus
*/
public void setAssessmentStatus(String assessmentStatus) {
this.assessmentStatus = assessmentStatus;
}
/**
*
* Current status of the assessment for the resiliency policy.
*
*
* @return Current status of the assessment for the resiliency policy.
* @see AssessmentStatus
*/
public String getAssessmentStatus() {
return this.assessmentStatus;
}
/**
*
* Current status of the assessment for the resiliency policy.
*
*
* @param assessmentStatus
* Current status of the assessment for the resiliency policy.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AssessmentStatus
*/
public AppAssessment withAssessmentStatus(String assessmentStatus) {
setAssessmentStatus(assessmentStatus);
return this;
}
/**
*
* Current status of the assessment for the resiliency policy.
*
*
* @param assessmentStatus
* Current status of the assessment for the resiliency policy.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AssessmentStatus
*/
public AppAssessment withAssessmentStatus(AssessmentStatus assessmentStatus) {
this.assessmentStatus = assessmentStatus.toString();
return this;
}
/**
*
* Application compliance against the resiliency policy.
*
*
* @return Application compliance against the resiliency policy.
*/
public java.util.Map getCompliance() {
return compliance;
}
/**
*
* Application compliance against the resiliency policy.
*
*
* @param compliance
* Application compliance against the resiliency policy.
*/
public void setCompliance(java.util.Map compliance) {
this.compliance = compliance;
}
/**
*
* Application compliance against the resiliency policy.
*
*
* @param compliance
* Application compliance against the resiliency policy.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withCompliance(java.util.Map compliance) {
setCompliance(compliance);
return this;
}
/**
* Add a single Compliance entry
*
* @see AppAssessment#withCompliance
* @returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment addComplianceEntry(String key, DisruptionCompliance value) {
if (null == this.compliance) {
this.compliance = new java.util.HashMap();
}
if (this.compliance.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.compliance.put(key, value);
return this;
}
/**
* Removes all the entries added into Compliance.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment clearComplianceEntries() {
this.compliance = null;
return this;
}
/**
*
* Current status of the compliance for the resiliency policy.
*
*
* @param complianceStatus
* Current status of the compliance for the resiliency policy.
* @see ComplianceStatus
*/
public void setComplianceStatus(String complianceStatus) {
this.complianceStatus = complianceStatus;
}
/**
*
* Current status of the compliance for the resiliency policy.
*
*
* @return Current status of the compliance for the resiliency policy.
* @see ComplianceStatus
*/
public String getComplianceStatus() {
return this.complianceStatus;
}
/**
*
* Current status of the compliance for the resiliency policy.
*
*
* @param complianceStatus
* Current status of the compliance for the resiliency policy.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ComplianceStatus
*/
public AppAssessment withComplianceStatus(String complianceStatus) {
setComplianceStatus(complianceStatus);
return this;
}
/**
*
* Current status of the compliance for the resiliency policy.
*
*
* @param complianceStatus
* Current status of the compliance for the resiliency policy.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ComplianceStatus
*/
public AppAssessment withComplianceStatus(ComplianceStatus complianceStatus) {
this.complianceStatus = complianceStatus.toString();
return this;
}
/**
*
* Cost for the application.
*
*
* @param cost
* Cost for the application.
*/
public void setCost(Cost cost) {
this.cost = cost;
}
/**
*
* Cost for the application.
*
*
* @return Cost for the application.
*/
public Cost getCost() {
return this.cost;
}
/**
*
* Cost for the application.
*
*
* @param cost
* Cost for the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withCost(Cost cost) {
setCost(cost);
return this;
}
/**
*
* Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
*
*
* @param driftStatus
* Indicates if compliance drifts (deviations) were detected while running an assessment for your
* application.
* @see DriftStatus
*/
public void setDriftStatus(String driftStatus) {
this.driftStatus = driftStatus;
}
/**
*
* Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
*
*
* @return Indicates if compliance drifts (deviations) were detected while running an assessment for your
* application.
* @see DriftStatus
*/
public String getDriftStatus() {
return this.driftStatus;
}
/**
*
* Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
*
*
* @param driftStatus
* Indicates if compliance drifts (deviations) were detected while running an assessment for your
* application.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DriftStatus
*/
public AppAssessment withDriftStatus(String driftStatus) {
setDriftStatus(driftStatus);
return this;
}
/**
*
* Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
*
*
* @param driftStatus
* Indicates if compliance drifts (deviations) were detected while running an assessment for your
* application.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DriftStatus
*/
public AppAssessment withDriftStatus(DriftStatus driftStatus) {
this.driftStatus = driftStatus.toString();
return this;
}
/**
*
* End time for the action.
*
*
* @param endTime
* End time for the action.
*/
public void setEndTime(java.util.Date endTime) {
this.endTime = endTime;
}
/**
*
* End time for the action.
*
*
* @return End time for the action.
*/
public java.util.Date getEndTime() {
return this.endTime;
}
/**
*
* End time for the action.
*
*
* @param endTime
* End time for the action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withEndTime(java.util.Date endTime) {
setEndTime(endTime);
return this;
}
/**
*
* The entity that invoked the assessment.
*
*
* @param invoker
* The entity that invoked the assessment.
* @see AssessmentInvoker
*/
public void setInvoker(String invoker) {
this.invoker = invoker;
}
/**
*
* The entity that invoked the assessment.
*
*
* @return The entity that invoked the assessment.
* @see AssessmentInvoker
*/
public String getInvoker() {
return this.invoker;
}
/**
*
* The entity that invoked the assessment.
*
*
* @param invoker
* The entity that invoked the assessment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AssessmentInvoker
*/
public AppAssessment withInvoker(String invoker) {
setInvoker(invoker);
return this;
}
/**
*
* The entity that invoked the assessment.
*
*
* @param invoker
* The entity that invoked the assessment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AssessmentInvoker
*/
public AppAssessment withInvoker(AssessmentInvoker invoker) {
this.invoker = invoker.toString();
return this;
}
/**
*
* Error or warning message from the assessment execution
*
*
* @param message
* Error or warning message from the assessment execution
*/
public void setMessage(String message) {
this.message = message;
}
/**
*
* Error or warning message from the assessment execution
*
*
* @return Error or warning message from the assessment execution
*/
public String getMessage() {
return this.message;
}
/**
*
* Error or warning message from the assessment execution
*
*
* @param message
* Error or warning message from the assessment execution
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withMessage(String message) {
setMessage(message);
return this;
}
/**
*
* Resiliency policy of an application.
*
*
* @param policy
* Resiliency policy of an application.
*/
public void setPolicy(ResiliencyPolicy policy) {
this.policy = policy;
}
/**
*
* Resiliency policy of an application.
*
*
* @return Resiliency policy of an application.
*/
public ResiliencyPolicy getPolicy() {
return this.policy;
}
/**
*
* Resiliency policy of an application.
*
*
* @param policy
* Resiliency policy of an application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withPolicy(ResiliencyPolicy policy) {
setPolicy(policy);
return this;
}
/**
*
* Current resiliency score for an application.
*
*
* @param resiliencyScore
* Current resiliency score for an application.
*/
public void setResiliencyScore(ResiliencyScore resiliencyScore) {
this.resiliencyScore = resiliencyScore;
}
/**
*
* Current resiliency score for an application.
*
*
* @return Current resiliency score for an application.
*/
public ResiliencyScore getResiliencyScore() {
return this.resiliencyScore;
}
/**
*
* Current resiliency score for an application.
*
*
* @param resiliencyScore
* Current resiliency score for an application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withResiliencyScore(ResiliencyScore resiliencyScore) {
setResiliencyScore(resiliencyScore);
return this;
}
/**
*
* A resource error object containing a list of errors retrieving an application's resources.
*
*
* @param resourceErrorsDetails
* A resource error object containing a list of errors retrieving an application's resources.
*/
public void setResourceErrorsDetails(ResourceErrorsDetails resourceErrorsDetails) {
this.resourceErrorsDetails = resourceErrorsDetails;
}
/**
*
* A resource error object containing a list of errors retrieving an application's resources.
*
*
* @return A resource error object containing a list of errors retrieving an application's resources.
*/
public ResourceErrorsDetails getResourceErrorsDetails() {
return this.resourceErrorsDetails;
}
/**
*
* A resource error object containing a list of errors retrieving an application's resources.
*
*
* @param resourceErrorsDetails
* A resource error object containing a list of errors retrieving an application's resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withResourceErrorsDetails(ResourceErrorsDetails resourceErrorsDetails) {
setResourceErrorsDetails(resourceErrorsDetails);
return this;
}
/**
*
* Starting time for the action.
*
*
* @param startTime
* Starting time for the action.
*/
public void setStartTime(java.util.Date startTime) {
this.startTime = startTime;
}
/**
*
* Starting time for the action.
*
*
* @return Starting time for the action.
*/
public java.util.Date getStartTime() {
return this.startTime;
}
/**
*
* Starting time for the action.
*
*
* @param startTime
* Starting time for the action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withStartTime(java.util.Date startTime) {
setStartTime(startTime);
return this;
}
/**
*
* Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag
* consists of a key/value pair.
*
*
* @return Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each
* tag consists of a key/value pair.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag
* consists of a key/value pair.
*
*
* @param tags
* Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each
* tag consists of a key/value pair.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag
* consists of a key/value pair.
*
*
* @param tags
* Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each
* tag consists of a key/value pair.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see AppAssessment#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment 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 AppAssessment clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* Version name of the published application.
*
*
* @param versionName
* Version name of the published application.
*/
public void setVersionName(String versionName) {
this.versionName = versionName;
}
/**
*
* Version name of the published application.
*
*
* @return Version name of the published application.
*/
public String getVersionName() {
return this.versionName;
}
/**
*
* Version name of the published application.
*
*
* @param versionName
* Version name of the published application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AppAssessment withVersionName(String versionName) {
setVersionName(versionName);
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 (getAssessmentArn() != null)
sb.append("AssessmentArn: ").append(getAssessmentArn()).append(",");
if (getAssessmentName() != null)
sb.append("AssessmentName: ").append(getAssessmentName()).append(",");
if (getAssessmentStatus() != null)
sb.append("AssessmentStatus: ").append(getAssessmentStatus()).append(",");
if (getCompliance() != null)
sb.append("Compliance: ").append(getCompliance()).append(",");
if (getComplianceStatus() != null)
sb.append("ComplianceStatus: ").append(getComplianceStatus()).append(",");
if (getCost() != null)
sb.append("Cost: ").append(getCost()).append(",");
if (getDriftStatus() != null)
sb.append("DriftStatus: ").append(getDriftStatus()).append(",");
if (getEndTime() != null)
sb.append("EndTime: ").append(getEndTime()).append(",");
if (getInvoker() != null)
sb.append("Invoker: ").append(getInvoker()).append(",");
if (getMessage() != null)
sb.append("Message: ").append(getMessage()).append(",");
if (getPolicy() != null)
sb.append("Policy: ").append(getPolicy()).append(",");
if (getResiliencyScore() != null)
sb.append("ResiliencyScore: ").append(getResiliencyScore()).append(",");
if (getResourceErrorsDetails() != null)
sb.append("ResourceErrorsDetails: ").append(getResourceErrorsDetails()).append(",");
if (getStartTime() != null)
sb.append("StartTime: ").append(getStartTime()).append(",");
if (getTags() != null)
sb.append("Tags: ").append("***Sensitive Data Redacted***").append(",");
if (getVersionName() != null)
sb.append("VersionName: ").append(getVersionName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AppAssessment == false)
return false;
AppAssessment other = (AppAssessment) 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.getAssessmentArn() == null ^ this.getAssessmentArn() == null)
return false;
if (other.getAssessmentArn() != null && other.getAssessmentArn().equals(this.getAssessmentArn()) == false)
return false;
if (other.getAssessmentName() == null ^ this.getAssessmentName() == null)
return false;
if (other.getAssessmentName() != null && other.getAssessmentName().equals(this.getAssessmentName()) == false)
return false;
if (other.getAssessmentStatus() == null ^ this.getAssessmentStatus() == null)
return false;
if (other.getAssessmentStatus() != null && other.getAssessmentStatus().equals(this.getAssessmentStatus()) == false)
return false;
if (other.getCompliance() == null ^ this.getCompliance() == null)
return false;
if (other.getCompliance() != null && other.getCompliance().equals(this.getCompliance()) == false)
return false;
if (other.getComplianceStatus() == null ^ this.getComplianceStatus() == null)
return false;
if (other.getComplianceStatus() != null && other.getComplianceStatus().equals(this.getComplianceStatus()) == false)
return false;
if (other.getCost() == null ^ this.getCost() == null)
return false;
if (other.getCost() != null && other.getCost().equals(this.getCost()) == false)
return false;
if (other.getDriftStatus() == null ^ this.getDriftStatus() == null)
return false;
if (other.getDriftStatus() != null && other.getDriftStatus().equals(this.getDriftStatus()) == false)
return false;
if (other.getEndTime() == null ^ this.getEndTime() == null)
return false;
if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false)
return false;
if (other.getInvoker() == null ^ this.getInvoker() == null)
return false;
if (other.getInvoker() != null && other.getInvoker().equals(this.getInvoker()) == false)
return false;
if (other.getMessage() == null ^ this.getMessage() == null)
return false;
if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false)
return false;
if (other.getPolicy() == null ^ this.getPolicy() == null)
return false;
if (other.getPolicy() != null && other.getPolicy().equals(this.getPolicy()) == false)
return false;
if (other.getResiliencyScore() == null ^ this.getResiliencyScore() == null)
return false;
if (other.getResiliencyScore() != null && other.getResiliencyScore().equals(this.getResiliencyScore()) == false)
return false;
if (other.getResourceErrorsDetails() == null ^ this.getResourceErrorsDetails() == null)
return false;
if (other.getResourceErrorsDetails() != null && other.getResourceErrorsDetails().equals(this.getResourceErrorsDetails()) == false)
return false;
if (other.getStartTime() == null ^ this.getStartTime() == null)
return false;
if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getVersionName() == null ^ this.getVersionName() == null)
return false;
if (other.getVersionName() != null && other.getVersionName().equals(this.getVersionName()) == 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 + ((getAssessmentArn() == null) ? 0 : getAssessmentArn().hashCode());
hashCode = prime * hashCode + ((getAssessmentName() == null) ? 0 : getAssessmentName().hashCode());
hashCode = prime * hashCode + ((getAssessmentStatus() == null) ? 0 : getAssessmentStatus().hashCode());
hashCode = prime * hashCode + ((getCompliance() == null) ? 0 : getCompliance().hashCode());
hashCode = prime * hashCode + ((getComplianceStatus() == null) ? 0 : getComplianceStatus().hashCode());
hashCode = prime * hashCode + ((getCost() == null) ? 0 : getCost().hashCode());
hashCode = prime * hashCode + ((getDriftStatus() == null) ? 0 : getDriftStatus().hashCode());
hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
hashCode = prime * hashCode + ((getInvoker() == null) ? 0 : getInvoker().hashCode());
hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode());
hashCode = prime * hashCode + ((getPolicy() == null) ? 0 : getPolicy().hashCode());
hashCode = prime * hashCode + ((getResiliencyScore() == null) ? 0 : getResiliencyScore().hashCode());
hashCode = prime * hashCode + ((getResourceErrorsDetails() == null) ? 0 : getResourceErrorsDetails().hashCode());
hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getVersionName() == null) ? 0 : getVersionName().hashCode());
return hashCode;
}
@Override
public AppAssessment clone() {
try {
return (AppAssessment) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.resiliencehub.model.transform.AppAssessmentMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}