/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ResilienceHub { namespace Model { /** *

Defines an application assessment summary.

See Also:

AWS * API Reference

*/ class AppAssessmentSummary { public: AWS_RESILIENCEHUB_API AppAssessmentSummary(); AWS_RESILIENCEHUB_API AppAssessmentSummary(Aws::Utils::Json::JsonView jsonValue); AWS_RESILIENCEHUB_API AppAssessmentSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::String& GetAppArn() const{ return m_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.

*/ inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; } /** *

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.

*/ inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; } /** *

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.

*/ inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); } /** *

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.

*/ inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); } /** *

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.

*/ inline AppAssessmentSummary& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;} /** *

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.

*/ inline AppAssessmentSummary& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;} /** *

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.

*/ inline AppAssessmentSummary& WithAppArn(const char* value) { SetAppArn(value); return *this;} /** *

The version of the application.

*/ inline const Aws::String& GetAppVersion() const{ return m_appVersion; } /** *

The version of the application.

*/ inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; } /** *

The version of the application.

*/ inline void SetAppVersion(const Aws::String& value) { m_appVersionHasBeenSet = true; m_appVersion = value; } /** *

The version of the application.

*/ inline void SetAppVersion(Aws::String&& value) { m_appVersionHasBeenSet = true; m_appVersion = std::move(value); } /** *

The version of the application.

*/ inline void SetAppVersion(const char* value) { m_appVersionHasBeenSet = true; m_appVersion.assign(value); } /** *

The version of the application.

*/ inline AppAssessmentSummary& WithAppVersion(const Aws::String& value) { SetAppVersion(value); return *this;} /** *

The version of the application.

*/ inline AppAssessmentSummary& WithAppVersion(Aws::String&& value) { SetAppVersion(std::move(value)); return *this;} /** *

The version of the application.

*/ inline AppAssessmentSummary& WithAppVersion(const char* value) { SetAppVersion(value); 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.

*/ inline const Aws::String& GetAssessmentArn() const{ return m_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.

*/ inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; } /** *

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.

*/ inline void SetAssessmentArn(const Aws::String& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = value; } /** *

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.

*/ inline void SetAssessmentArn(Aws::String&& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = std::move(value); } /** *

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.

*/ inline void SetAssessmentArn(const char* value) { m_assessmentArnHasBeenSet = true; m_assessmentArn.assign(value); } /** *

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.

*/ inline AppAssessmentSummary& WithAssessmentArn(const Aws::String& value) { SetAssessmentArn(value); 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.

*/ inline AppAssessmentSummary& WithAssessmentArn(Aws::String&& value) { SetAssessmentArn(std::move(value)); 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.

*/ inline AppAssessmentSummary& WithAssessmentArn(const char* value) { SetAssessmentArn(value); return *this;} /** *

The name of the assessment.

*/ inline const Aws::String& GetAssessmentName() const{ return m_assessmentName; } /** *

The name of the assessment.

*/ inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; } /** *

The name of the assessment.

*/ inline void SetAssessmentName(const Aws::String& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = value; } /** *

The name of the assessment.

*/ inline void SetAssessmentName(Aws::String&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::move(value); } /** *

The name of the assessment.

*/ inline void SetAssessmentName(const char* value) { m_assessmentNameHasBeenSet = true; m_assessmentName.assign(value); } /** *

The name of the assessment.

*/ inline AppAssessmentSummary& WithAssessmentName(const Aws::String& value) { SetAssessmentName(value); return *this;} /** *

The name of the assessment.

*/ inline AppAssessmentSummary& WithAssessmentName(Aws::String&& value) { SetAssessmentName(std::move(value)); return *this;} /** *

The name of the assessment.

*/ inline AppAssessmentSummary& WithAssessmentName(const char* value) { SetAssessmentName(value); return *this;} /** *

The current status of the assessment for the resiliency policy.

*/ inline const AssessmentStatus& GetAssessmentStatus() const{ return m_assessmentStatus; } /** *

The current status of the assessment for the resiliency policy.

*/ inline bool AssessmentStatusHasBeenSet() const { return m_assessmentStatusHasBeenSet; } /** *

The current status of the assessment for the resiliency policy.

*/ inline void SetAssessmentStatus(const AssessmentStatus& value) { m_assessmentStatusHasBeenSet = true; m_assessmentStatus = value; } /** *

The current status of the assessment for the resiliency policy.

*/ inline void SetAssessmentStatus(AssessmentStatus&& value) { m_assessmentStatusHasBeenSet = true; m_assessmentStatus = std::move(value); } /** *

The current status of the assessment for the resiliency policy.

*/ inline AppAssessmentSummary& WithAssessmentStatus(const AssessmentStatus& value) { SetAssessmentStatus(value); return *this;} /** *

The current status of the assessment for the resiliency policy.

*/ inline AppAssessmentSummary& WithAssessmentStatus(AssessmentStatus&& value) { SetAssessmentStatus(std::move(value)); return *this;} /** *

The current status of compliance for the resiliency policy.

*/ inline const ComplianceStatus& GetComplianceStatus() const{ return m_complianceStatus; } /** *

The current status of compliance for the resiliency policy.

*/ inline bool ComplianceStatusHasBeenSet() const { return m_complianceStatusHasBeenSet; } /** *

The current status of compliance for the resiliency policy.

*/ inline void SetComplianceStatus(const ComplianceStatus& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = value; } /** *

The current status of compliance for the resiliency policy.

*/ inline void SetComplianceStatus(ComplianceStatus&& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = std::move(value); } /** *

The current status of compliance for the resiliency policy.

*/ inline AppAssessmentSummary& WithComplianceStatus(const ComplianceStatus& value) { SetComplianceStatus(value); return *this;} /** *

The current status of compliance for the resiliency policy.

*/ inline AppAssessmentSummary& WithComplianceStatus(ComplianceStatus&& value) { SetComplianceStatus(std::move(value)); return *this;} /** *

The cost for the application.

*/ inline const Cost& GetCost() const{ return m_cost; } /** *

The cost for the application.

*/ inline bool CostHasBeenSet() const { return m_costHasBeenSet; } /** *

The cost for the application.

*/ inline void SetCost(const Cost& value) { m_costHasBeenSet = true; m_cost = value; } /** *

The cost for the application.

*/ inline void SetCost(Cost&& value) { m_costHasBeenSet = true; m_cost = std::move(value); } /** *

The cost for the application.

*/ inline AppAssessmentSummary& WithCost(const Cost& value) { SetCost(value); return *this;} /** *

The cost for the application.

*/ inline AppAssessmentSummary& WithCost(Cost&& value) { SetCost(std::move(value)); return *this;} /** *

The end time for the action.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end time for the action.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time for the action.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end time for the action.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end time for the action.

*/ inline AppAssessmentSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end time for the action.

*/ inline AppAssessmentSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The entity that invoked the assessment.

*/ inline const AssessmentInvoker& GetInvoker() const{ return m_invoker; } /** *

The entity that invoked the assessment.

*/ inline bool InvokerHasBeenSet() const { return m_invokerHasBeenSet; } /** *

The entity that invoked the assessment.

*/ inline void SetInvoker(const AssessmentInvoker& value) { m_invokerHasBeenSet = true; m_invoker = value; } /** *

The entity that invoked the assessment.

*/ inline void SetInvoker(AssessmentInvoker&& value) { m_invokerHasBeenSet = true; m_invoker = std::move(value); } /** *

The entity that invoked the assessment.

*/ inline AppAssessmentSummary& WithInvoker(const AssessmentInvoker& value) { SetInvoker(value); return *this;} /** *

The entity that invoked the assessment.

*/ inline AppAssessmentSummary& WithInvoker(AssessmentInvoker&& value) { SetInvoker(std::move(value)); return *this;} /** *

The message from the assessment run.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The message from the assessment run.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The message from the assessment run.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The message from the assessment run.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The message from the assessment run.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The message from the assessment run.

*/ inline AppAssessmentSummary& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The message from the assessment run.

*/ inline AppAssessmentSummary& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The message from the assessment run.

*/ inline AppAssessmentSummary& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The current resiliency score for the application.

*/ inline double GetResiliencyScore() const{ return m_resiliencyScore; } /** *

The current resiliency score for the application.

*/ inline bool ResiliencyScoreHasBeenSet() const { return m_resiliencyScoreHasBeenSet; } /** *

The current resiliency score for the application.

*/ inline void SetResiliencyScore(double value) { m_resiliencyScoreHasBeenSet = true; m_resiliencyScore = value; } /** *

The current resiliency score for the application.

*/ inline AppAssessmentSummary& WithResiliencyScore(double value) { SetResiliencyScore(value); return *this;} /** *

The starting time for the action.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The starting time for the action.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The starting time for the action.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The starting time for the action.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The starting time for the action.

*/ inline AppAssessmentSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The starting time for the action.

*/ inline AppAssessmentSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} private: Aws::String m_appArn; bool m_appArnHasBeenSet = false; Aws::String m_appVersion; bool m_appVersionHasBeenSet = false; Aws::String m_assessmentArn; bool m_assessmentArnHasBeenSet = false; Aws::String m_assessmentName; bool m_assessmentNameHasBeenSet = false; AssessmentStatus m_assessmentStatus; bool m_assessmentStatusHasBeenSet = false; ComplianceStatus m_complianceStatus; bool m_complianceStatusHasBeenSet = false; Cost m_cost; bool m_costHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; AssessmentInvoker m_invoker; bool m_invokerHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; double m_resiliencyScore; bool m_resiliencyScoreHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws