AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TrustedAdvisorResourceDetail.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Support
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SUPPORT_API TrustedAdvisorResourceDetail() = default;
39 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetStatus() const { return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 template<typename StatusT = Aws::String>
49 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
50 template<typename StatusT = Aws::String>
51 TrustedAdvisorResourceDetail& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
53
55
59 inline const Aws::String& GetRegion() const { return m_region; }
60 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
61 template<typename RegionT = Aws::String>
62 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
63 template<typename RegionT = Aws::String>
64 TrustedAdvisorResourceDetail& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetResourceId() const { return m_resourceId; }
72 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
73 template<typename ResourceIdT = Aws::String>
74 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
75 template<typename ResourceIdT = Aws::String>
76 TrustedAdvisorResourceDetail& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
78
80
84 inline bool GetIsSuppressed() const { return m_isSuppressed; }
85 inline bool IsSuppressedHasBeenSet() const { return m_isSuppressedHasBeenSet; }
86 inline void SetIsSuppressed(bool value) { m_isSuppressedHasBeenSet = true; m_isSuppressed = value; }
87 inline TrustedAdvisorResourceDetail& WithIsSuppressed(bool value) { SetIsSuppressed(value); return *this;}
89
91
99 inline const Aws::Vector<Aws::String>& GetMetadata() const { return m_metadata; }
100 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
101 template<typename MetadataT = Aws::Vector<Aws::String>>
102 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
103 template<typename MetadataT = Aws::Vector<Aws::String>>
104 TrustedAdvisorResourceDetail& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
105 template<typename MetadataT = Aws::String>
106 TrustedAdvisorResourceDetail& AddMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata.emplace_back(std::forward<MetadataT>(value)); return *this; }
108 private:
109
110 Aws::String m_status;
111 bool m_statusHasBeenSet = false;
112
113 Aws::String m_region;
114 bool m_regionHasBeenSet = false;
115
116 Aws::String m_resourceId;
117 bool m_resourceIdHasBeenSet = false;
118
119 bool m_isSuppressed{false};
120 bool m_isSuppressedHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_metadata;
123 bool m_metadataHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Support
128} // namespace Aws
AWS_SUPPORT_API TrustedAdvisorResourceDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetMetadata() const
TrustedAdvisorResourceDetail & WithMetadata(MetadataT &&value)
TrustedAdvisorResourceDetail & WithStatus(StatusT &&value)
TrustedAdvisorResourceDetail & WithResourceId(ResourceIdT &&value)
TrustedAdvisorResourceDetail & AddMetadata(MetadataT &&value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORT_API TrustedAdvisorResourceDetail()=default
AWS_SUPPORT_API TrustedAdvisorResourceDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
TrustedAdvisorResourceDetail & WithRegion(RegionT &&value)
TrustedAdvisorResourceDetail & WithIsSuppressed(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue