/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A summary of a Trusted Advisor check result, including the alert status, last
* refresh, and number of resources examined.See Also:
AWS
* API Reference
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 TrustedAdvisorCheckSummary& WithCheckId(const Aws::String& value) { SetCheckId(value); return *this;} /** *The unique identifier for the Trusted Advisor check.
*/ inline TrustedAdvisorCheckSummary& WithCheckId(Aws::String&& value) { SetCheckId(std::move(value)); return *this;} /** *The unique identifier for the Trusted Advisor check.
*/ inline TrustedAdvisorCheckSummary& 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 TrustedAdvisorCheckSummary& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;} /** *The time of the last refresh of the check.
*/ inline TrustedAdvisorCheckSummary& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;} /** *The time of the last refresh of the check.
*/ inline TrustedAdvisorCheckSummary& 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 TrustedAdvisorCheckSummary& 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 TrustedAdvisorCheckSummary& 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 TrustedAdvisorCheckSummary& WithStatus(const char* value) { SetStatus(value); return *this;} /** *Specifies whether the Trusted Advisor check has flagged resources.
*/ inline bool GetHasFlaggedResources() const{ return m_hasFlaggedResources; } /** *Specifies whether the Trusted Advisor check has flagged resources.
*/ inline bool HasFlaggedResourcesHasBeenSet() const { return m_hasFlaggedResourcesHasBeenSet; } /** *Specifies whether the Trusted Advisor check has flagged resources.
*/ inline void SetHasFlaggedResources(bool value) { m_hasFlaggedResourcesHasBeenSet = true; m_hasFlaggedResources = value; } /** *Specifies whether the Trusted Advisor check has flagged resources.
*/ inline TrustedAdvisorCheckSummary& WithHasFlaggedResources(bool value) { SetHasFlaggedResources(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 TrustedAdvisorCheckSummary& WithResourcesSummary(const TrustedAdvisorResourcesSummary& value) { SetResourcesSummary(value); return *this;} inline TrustedAdvisorCheckSummary& 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 TrustedAdvisorCheckSummary& 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 TrustedAdvisorCheckSummary& WithCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary&& value) { SetCategorySpecificSummary(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; bool m_hasFlaggedResources; bool m_hasFlaggedResourcesHasBeenSet = false; TrustedAdvisorResourcesSummary m_resourcesSummary; bool m_resourcesSummaryHasBeenSet = false; TrustedAdvisorCategorySpecificSummary m_categorySpecificSummary; bool m_categorySpecificSummaryHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws