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

Returns the number of open reactive insights, the number of open proactive * insights, and the number of metrics analyzed in your Amazon Web Services * account. Use these numbers to gauge the health of operations in your Amazon Web * Services account.

See Also:

AWS * API Reference

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

The ID of the Amazon Web Services account.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The ID of the Amazon Web Services account.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The ID of the Amazon Web Services account.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The ID of the Amazon Web Services account.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The ID of the Amazon Web Services account.

*/ inline AccountHealth& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The ID of the Amazon Web Services account.

*/ inline AccountHealth& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account.

*/ inline AccountHealth& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

Information about the health of the Amazon Web Services resources in your * account, including the number of open proactive, open reactive insights, and the * Mean Time to Recover (MTTR) of closed insights.

*/ inline const AccountInsightHealth& GetInsight() const{ return m_insight; } /** *

Information about the health of the Amazon Web Services resources in your * account, including the number of open proactive, open reactive insights, and the * Mean Time to Recover (MTTR) of closed insights.

*/ inline bool InsightHasBeenSet() const { return m_insightHasBeenSet; } /** *

Information about the health of the Amazon Web Services resources in your * account, including the number of open proactive, open reactive insights, and the * Mean Time to Recover (MTTR) of closed insights.

*/ inline void SetInsight(const AccountInsightHealth& value) { m_insightHasBeenSet = true; m_insight = value; } /** *

Information about the health of the Amazon Web Services resources in your * account, including the number of open proactive, open reactive insights, and the * Mean Time to Recover (MTTR) of closed insights.

*/ inline void SetInsight(AccountInsightHealth&& value) { m_insightHasBeenSet = true; m_insight = std::move(value); } /** *

Information about the health of the Amazon Web Services resources in your * account, including the number of open proactive, open reactive insights, and the * Mean Time to Recover (MTTR) of closed insights.

*/ inline AccountHealth& WithInsight(const AccountInsightHealth& value) { SetInsight(value); return *this;} /** *

Information about the health of the Amazon Web Services resources in your * account, including the number of open proactive, open reactive insights, and the * Mean Time to Recover (MTTR) of closed insights.

*/ inline AccountHealth& WithInsight(AccountInsightHealth&& value) { SetInsight(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; AccountInsightHealth m_insight; bool m_insightHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws