/** * 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 Support { namespace Model { /** *

The results of a Trusted Advisor check returned by * DescribeTrustedAdvisorCheckResult.

See Also:

AWS * API Reference

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

The unique identifier for the Trusted Advisor check.

*/ inline const Aws::String& GetCheckId() const{ return m_checkId; } /** *

The unique identifier for the Trusted Advisor check.

*/ inline bool CheckIdHasBeenSet() const { return m_checkIdHasBeenSet; } /** *

The unique identifier for the Trusted Advisor check.

*/ inline void SetCheckId(const Aws::String& value) { m_checkIdHasBeenSet = true; m_checkId = value; } /** *

The unique identifier for the Trusted Advisor check.

*/ inline void SetCheckId(Aws::String&& value) { m_checkIdHasBeenSet = true; m_checkId = std::move(value); } /** *

The unique identifier for the Trusted Advisor check.

*/ inline void SetCheckId(const char* value) { m_checkIdHasBeenSet = true; m_checkId.assign(value); } /** *

The unique identifier for the Trusted Advisor check.

*/ inline TrustedAdvisorCheckResult& WithCheckId(const Aws::String& value) { SetCheckId(value); return *this;} /** *

The unique identifier for the Trusted Advisor check.

*/ inline TrustedAdvisorCheckResult& WithCheckId(Aws::String&& value) { SetCheckId(std::move(value)); return *this;} /** *

The unique identifier for the Trusted Advisor check.

*/ inline TrustedAdvisorCheckResult& WithCheckId(const char* value) { SetCheckId(value); return *this;} /** *

The time of the last refresh of the check.

*/ inline const Aws::String& GetTimestamp() const{ return m_timestamp; } /** *

The time of the last refresh of the check.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time of the last refresh of the check.

*/ inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time of the last refresh of the check.

*/ inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The time of the last refresh of the check.

*/ inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); } /** *

The time of the last refresh of the check.

*/ inline TrustedAdvisorCheckResult& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;} /** *

The time of the last refresh of the check.

*/ inline TrustedAdvisorCheckResult& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The time of the last refresh of the check.

*/ inline TrustedAdvisorCheckResult& WithTimestamp(const char* value) { SetTimestamp(value); return *this;} /** *

The alert status of the check: "ok" (green), "warning" (yellow), "error" * (red), or "not_available".

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The alert status of the check: "ok" (green), "warning" (yellow), "error" * (red), or "not_available".

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

The alert status of the check: "ok" (green), "warning" (yellow), "error" * (red), or "not_available".

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

The alert status of the check: "ok" (green), "warning" (yellow), "error" * (red), or "not_available".

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

The alert status of the check: "ok" (green), "warning" (yellow), "error" * (red), or "not_available".

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The alert status of the check: "ok" (green), "warning" (yellow), "error" * (red), or "not_available".

*/ inline TrustedAdvisorCheckResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The alert status of the check: "ok" (green), "warning" (yellow), "error" * (red), or "not_available".

*/ inline TrustedAdvisorCheckResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The alert status of the check: "ok" (green), "warning" (yellow), "error" * (red), or "not_available".

*/ inline TrustedAdvisorCheckResult& WithStatus(const char* value) { SetStatus(value); return *this;} inline const TrustedAdvisorResourcesSummary& GetResourcesSummary() const{ return m_resourcesSummary; } inline bool ResourcesSummaryHasBeenSet() const { return m_resourcesSummaryHasBeenSet; } inline void SetResourcesSummary(const TrustedAdvisorResourcesSummary& value) { m_resourcesSummaryHasBeenSet = true; m_resourcesSummary = value; } inline void SetResourcesSummary(TrustedAdvisorResourcesSummary&& value) { m_resourcesSummaryHasBeenSet = true; m_resourcesSummary = std::move(value); } inline TrustedAdvisorCheckResult& WithResourcesSummary(const TrustedAdvisorResourcesSummary& value) { SetResourcesSummary(value); return *this;} inline TrustedAdvisorCheckResult& WithResourcesSummary(TrustedAdvisorResourcesSummary&& value) { SetResourcesSummary(std::move(value)); return *this;} /** *

Summary information that relates to the category of the check. Cost * Optimizing is the only category that is currently supported.

*/ inline const TrustedAdvisorCategorySpecificSummary& GetCategorySpecificSummary() const{ return m_categorySpecificSummary; } /** *

Summary information that relates to the category of the check. Cost * Optimizing is the only category that is currently supported.

*/ inline bool CategorySpecificSummaryHasBeenSet() const { return m_categorySpecificSummaryHasBeenSet; } /** *

Summary information that relates to the category of the check. Cost * Optimizing is the only category that is currently supported.

*/ inline void SetCategorySpecificSummary(const TrustedAdvisorCategorySpecificSummary& value) { m_categorySpecificSummaryHasBeenSet = true; m_categorySpecificSummary = value; } /** *

Summary information that relates to the category of the check. Cost * Optimizing is the only category that is currently supported.

*/ inline void SetCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary&& value) { m_categorySpecificSummaryHasBeenSet = true; m_categorySpecificSummary = std::move(value); } /** *

Summary information that relates to the category of the check. Cost * Optimizing is the only category that is currently supported.

*/ inline TrustedAdvisorCheckResult& WithCategorySpecificSummary(const TrustedAdvisorCategorySpecificSummary& value) { SetCategorySpecificSummary(value); return *this;} /** *

Summary information that relates to the category of the check. Cost * Optimizing is the only category that is currently supported.

*/ inline TrustedAdvisorCheckResult& WithCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary&& value) { SetCategorySpecificSummary(std::move(value)); return *this;} /** *

The details about each resource listed in the check result.

*/ inline const Aws::Vector& GetFlaggedResources() const{ return m_flaggedResources; } /** *

The details about each resource listed in the check result.

*/ inline bool FlaggedResourcesHasBeenSet() const { return m_flaggedResourcesHasBeenSet; } /** *

The details about each resource listed in the check result.

*/ inline void SetFlaggedResources(const Aws::Vector& value) { m_flaggedResourcesHasBeenSet = true; m_flaggedResources = value; } /** *

The details about each resource listed in the check result.

*/ inline void SetFlaggedResources(Aws::Vector&& value) { m_flaggedResourcesHasBeenSet = true; m_flaggedResources = std::move(value); } /** *

The details about each resource listed in the check result.

*/ inline TrustedAdvisorCheckResult& WithFlaggedResources(const Aws::Vector& value) { SetFlaggedResources(value); return *this;} /** *

The details about each resource listed in the check result.

*/ inline TrustedAdvisorCheckResult& WithFlaggedResources(Aws::Vector&& value) { SetFlaggedResources(std::move(value)); return *this;} /** *

The details about each resource listed in the check result.

*/ inline TrustedAdvisorCheckResult& AddFlaggedResources(const TrustedAdvisorResourceDetail& value) { m_flaggedResourcesHasBeenSet = true; m_flaggedResources.push_back(value); return *this; } /** *

The details about each resource listed in the check result.

*/ inline TrustedAdvisorCheckResult& AddFlaggedResources(TrustedAdvisorResourceDetail&& value) { m_flaggedResourcesHasBeenSet = true; m_flaggedResources.push_back(std::move(value)); return *this; } private: Aws::String m_checkId; bool m_checkIdHasBeenSet = false; Aws::String m_timestamp; bool m_timestampHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; TrustedAdvisorResourcesSummary m_resourcesSummary; bool m_resourcesSummaryHasBeenSet = false; TrustedAdvisorCategorySpecificSummary m_categorySpecificSummary; bool m_categorySpecificSummaryHasBeenSet = false; Aws::Vector m_flaggedResources; bool m_flaggedResourcesHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws