/* * Copyright 2018-2023 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 { /** *
* 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 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 AWS General Reference guide.
*
* The name of the assessment. *
*/ private String assessmentName; /** ** The current status of the assessment for the resiliency policy. *
*/ private String assessmentStatus; /** ** The application compliance against the resiliency policy. *
*/ private java.util.Map* The current status of the compliance for the resiliency policy. *
*/ private String complianceStatus; /** ** The cost for the application. *
*/ private Cost cost; /** ** The 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; /** ** The resiliency policy. *
*/ private ResiliencyPolicy policy; /** ** The current resiliency score for the application. *
*/ private ResiliencyScore resiliencyScore; /** ** A resource error object containing a list of errors retrieving an application's resources. *
*/ private ResourceErrorsDetails resourceErrorsDetails; /** ** The starting time for the action. *
*/ private java.util.Date startTime; /** ** The 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
* 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 AppAssessment 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 AppAssessment withAppVersion(String appVersion) { setAppVersion(appVersion); return this; } /** *
* The 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 AWS General Reference guide.
*
partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more
* information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public void setAssessmentArn(String assessmentArn) {
this.assessmentArn = assessmentArn;
}
/**
*
* The 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 AWS General Reference guide.
*
partition
* :resiliencehub:region
:account
:app-assessment/app-id
. For more
* information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public String getAssessmentArn() {
return this.assessmentArn;
}
/**
*
* The 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 AWS General Reference guide.
*
partition
* :resiliencehub:region
:account
:app-assessment/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 AppAssessment withAssessmentArn(String assessmentArn) {
setAssessmentArn(assessmentArn);
return this;
}
/**
* * The name of the assessment. *
* * @param assessmentName * The name of the assessment. */ public void setAssessmentName(String assessmentName) { this.assessmentName = assessmentName; } /** ** The name of the assessment. *
* * @return The name of the assessment. */ public String getAssessmentName() { return this.assessmentName; } /** ** The name of the assessment. *
* * @param assessmentName * The 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; } /** ** The current status of the assessment for the resiliency policy. *
* * @param assessmentStatus * The current status of the assessment for the resiliency policy. * @see AssessmentStatus */ public void setAssessmentStatus(String assessmentStatus) { this.assessmentStatus = assessmentStatus; } /** ** The current status of the assessment for the resiliency policy. *
* * @return The current status of the assessment for the resiliency policy. * @see AssessmentStatus */ public String getAssessmentStatus() { return this.assessmentStatus; } /** ** The current status of the assessment for the resiliency policy. *
* * @param assessmentStatus * The 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; } /** ** The current status of the assessment for the resiliency policy. *
* * @param assessmentStatus * The 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; } /** ** The application compliance against the resiliency policy. *
* * @return The application compliance against the resiliency policy. */ public java.util.Map* The application compliance against the resiliency policy. *
* * @param compliance * The application compliance against the resiliency policy. */ public void setCompliance(java.util.Map* The application compliance against the resiliency policy. *
* * @param compliance * The 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* The current status of the compliance for the resiliency policy. *
* * @param complianceStatus * The current status of the compliance for the resiliency policy. * @see ComplianceStatus */ public void setComplianceStatus(String complianceStatus) { this.complianceStatus = complianceStatus; } /** ** The current status of the compliance for the resiliency policy. *
* * @return The current status of the compliance for the resiliency policy. * @see ComplianceStatus */ public String getComplianceStatus() { return this.complianceStatus; } /** ** The current status of the compliance for the resiliency policy. *
* * @param complianceStatus * The 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; } /** ** The current status of the compliance for the resiliency policy. *
* * @param complianceStatus * The 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; } /** ** The cost for the application. *
* * @param cost * The cost for the application. */ public void setCost(Cost cost) { this.cost = cost; } /** ** The cost for the application. *
* * @return The cost for the application. */ public Cost getCost() { return this.cost; } /** ** The cost for the application. *
* * @param cost * The 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; } /** ** The end time for the action. *
* * @param endTime * The end time for the action. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** The end time for the action. *
* * @return The end time for the action. */ public java.util.Date getEndTime() { return this.endTime; } /** ** The end time for the action. *
* * @param endTime * The 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; } /** ** The resiliency policy. *
* * @param policy * The resiliency policy. */ public void setPolicy(ResiliencyPolicy policy) { this.policy = policy; } /** ** The resiliency policy. *
* * @return The resiliency policy. */ public ResiliencyPolicy getPolicy() { return this.policy; } /** ** The resiliency policy. *
* * @param policy * The resiliency policy. * @return Returns a reference to this object so that method calls can be chained together. */ public AppAssessment withPolicy(ResiliencyPolicy policy) { setPolicy(policy); return this; } /** ** The current resiliency score for the application. *
* * @param resiliencyScore * The current resiliency score for the application. */ public void setResiliencyScore(ResiliencyScore resiliencyScore) { this.resiliencyScore = resiliencyScore; } /** ** The current resiliency score for the application. *
* * @return The current resiliency score for the application. */ public ResiliencyScore getResiliencyScore() { return this.resiliencyScore; } /** ** The current resiliency score for the application. *
* * @param resiliencyScore * The current resiliency score for the 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; } /** ** The starting time for the action. *
* * @param startTime * The starting time for the action. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The starting time for the action. *
* * @return The starting time for the action. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The starting time for the action. *
* * @param startTime * The 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; } /** ** The 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 The 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* The 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 * The 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* The 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 * The 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