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

Contains information about a resource identified by a Trusted Advisor * check.

See Also:

AWS * API Reference

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

The status code for the resource identified in the Trusted Advisor check.

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

The status code for the resource identified in the Trusted Advisor check.

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

The status code for the resource identified in the Trusted Advisor check.

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

The status code for the resource identified in the Trusted Advisor check.

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

The status code for the resource identified in the Trusted Advisor check.

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

The status code for the resource identified in the Trusted Advisor check.

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

The status code for the resource identified in the Trusted Advisor check.

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

The status code for the resource identified in the Trusted Advisor check.

*/ inline TrustedAdvisorResourceDetail& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The Amazon Web Services Region in which the identified resource is * located.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The Amazon Web Services Region in which the identified resource is * located.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The Amazon Web Services Region in which the identified resource is * located.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The Amazon Web Services Region in which the identified resource is * located.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The Amazon Web Services Region in which the identified resource is * located.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The Amazon Web Services Region in which the identified resource is * located.

*/ inline TrustedAdvisorResourceDetail& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The Amazon Web Services Region in which the identified resource is * located.

*/ inline TrustedAdvisorResourceDetail& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region in which the identified resource is * located.

*/ inline TrustedAdvisorResourceDetail& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

The unique identifier for the identified resource.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The unique identifier for the identified resource.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The unique identifier for the identified resource.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The unique identifier for the identified resource.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The unique identifier for the identified resource.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The unique identifier for the identified resource.

*/ inline TrustedAdvisorResourceDetail& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The unique identifier for the identified resource.

*/ inline TrustedAdvisorResourceDetail& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The unique identifier for the identified resource.

*/ inline TrustedAdvisorResourceDetail& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

Specifies whether the Amazon Web Services resource was ignored by Trusted * Advisor because it was marked as suppressed by the user.

*/ inline bool GetIsSuppressed() const{ return m_isSuppressed; } /** *

Specifies whether the Amazon Web Services resource was ignored by Trusted * Advisor because it was marked as suppressed by the user.

*/ inline bool IsSuppressedHasBeenSet() const { return m_isSuppressedHasBeenSet; } /** *

Specifies whether the Amazon Web Services resource was ignored by Trusted * Advisor because it was marked as suppressed by the user.

*/ inline void SetIsSuppressed(bool value) { m_isSuppressedHasBeenSet = true; m_isSuppressed = value; } /** *

Specifies whether the Amazon Web Services resource was ignored by Trusted * Advisor because it was marked as suppressed by the user.

*/ inline TrustedAdvisorResourceDetail& WithIsSuppressed(bool value) { SetIsSuppressed(value); return *this;} /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline const Aws::Vector& GetMetadata() const{ return m_metadata; } /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline void SetMetadata(const Aws::Vector& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline void SetMetadata(Aws::Vector&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline TrustedAdvisorResourceDetail& WithMetadata(const Aws::Vector& value) { SetMetadata(value); return *this;} /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline TrustedAdvisorResourceDetail& WithMetadata(Aws::Vector&& value) { SetMetadata(std::move(value)); return *this;} /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline TrustedAdvisorResourceDetail& AddMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; } /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline TrustedAdvisorResourceDetail& AddMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(value)); return *this; } /** *

Additional information about the identified resource. The exact metadata and * its order can be obtained by inspecting the * TrustedAdvisorCheckDescription object returned by the call to * DescribeTrustedAdvisorChecks. Metadata contains all the data that * is shown in the Excel download, even in those cases where the UI shows just * summary data.

*/ inline TrustedAdvisorResourceDetail& AddMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; } private: Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; bool m_isSuppressed; bool m_isSuppressedHasBeenSet = false; Aws::Vector m_metadata; bool m_metadataHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws