/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ResilienceHub { namespace Model { /** *

Defines an application summary.

See Also:

AWS * API Reference

*/ class AppSummary { public: AWS_RESILIENCEHUB_API AppSummary(); AWS_RESILIENCEHUB_API AppSummary(Aws::Utils::Json::JsonView jsonValue); AWS_RESILIENCEHUB_API AppSummary& 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 AppSummary& 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 AppSummary& 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 AppSummary& WithAppArn(const char* value) { SetAppArn(value); return *this;} /** *

Assessment execution schedule with 'Daily' or 'Disabled' values.

*/ inline const AppAssessmentScheduleType& GetAssessmentSchedule() const{ return m_assessmentSchedule; } /** *

Assessment execution schedule with 'Daily' or 'Disabled' values.

*/ inline bool AssessmentScheduleHasBeenSet() const { return m_assessmentScheduleHasBeenSet; } /** *

Assessment execution schedule with 'Daily' or 'Disabled' values.

*/ inline void SetAssessmentSchedule(const AppAssessmentScheduleType& value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = value; } /** *

Assessment execution schedule with 'Daily' or 'Disabled' values.

*/ inline void SetAssessmentSchedule(AppAssessmentScheduleType&& value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = std::move(value); } /** *

Assessment execution schedule with 'Daily' or 'Disabled' values.

*/ inline AppSummary& WithAssessmentSchedule(const AppAssessmentScheduleType& value) { SetAssessmentSchedule(value); return *this;} /** *

Assessment execution schedule with 'Daily' or 'Disabled' values.

*/ inline AppSummary& WithAssessmentSchedule(AppAssessmentScheduleType&& value) { SetAssessmentSchedule(std::move(value)); return *this;} /** *

The current status of compliance for the resiliency policy.

*/ inline const AppComplianceStatusType& 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 AppComplianceStatusType& value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = value; } /** *

The current status of compliance for the resiliency policy.

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

The current status of compliance for the resiliency policy.

*/ inline AppSummary& WithComplianceStatus(const AppComplianceStatusType& value) { SetComplianceStatus(value); return *this;} /** *

The current status of compliance for the resiliency policy.

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

The timestamp for when the app was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The timestamp for when the app was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The timestamp for when the app was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The timestamp for when the app was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The timestamp for when the app was created.

*/ inline AppSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The timestamp for when the app was created.

*/ inline AppSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The optional description for an app.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The optional description for an app.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The optional description for an app.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The optional description for an app.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The optional description for an app.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The optional description for an app.

*/ inline AppSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The optional description for an app.

*/ inline AppSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The optional description for an app.

*/ inline AppSummary& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the application.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the application.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the application.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the application.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the application.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the application.

*/ inline AppSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the application.

*/ inline AppSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the application.

*/ inline AppSummary& WithName(const char* value) { SetName(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 AppSummary& WithResiliencyScore(double value) { SetResiliencyScore(value); return *this;} /** *

The status of the application.

*/ inline const AppStatusType& GetStatus() const{ return m_status; } /** *

The status of the application.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the application.

*/ inline void SetStatus(const AppStatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the application.

*/ inline void SetStatus(AppStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the application.

*/ inline AppSummary& WithStatus(const AppStatusType& value) { SetStatus(value); return *this;} /** *

The status of the application.

*/ inline AppSummary& WithStatus(AppStatusType&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_appArn; bool m_appArnHasBeenSet = false; AppAssessmentScheduleType m_assessmentSchedule; bool m_assessmentScheduleHasBeenSet = false; AppComplianceStatusType m_complianceStatus; bool m_complianceStatusHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; double m_resiliencyScore; bool m_resiliencyScoreHasBeenSet = false; AppStatusType m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws