AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrganizationRecommendationResourceSummary.h
1
6#pragma once
7#include <aws/trustedadvisor/TrustedAdvisor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/trustedadvisor/model/ExclusionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/trustedadvisor/model/ResourceStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace TrustedAdvisor
26{
27namespace Model
28{
29
36 {
37 public:
41 AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
54 inline OrganizationRecommendationResourceSummary& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline OrganizationRecommendationResourceSummary& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
62 inline const Aws::String& GetArn() const{ return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
65 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
66 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 inline OrganizationRecommendationResourceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline OrganizationRecommendationResourceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline OrganizationRecommendationResourceSummary& WithArn(const char* value) { SetArn(value); return *this;}
71
73
76 inline const Aws::String& GetAwsResourceId() const{ return m_awsResourceId; }
77 inline bool AwsResourceIdHasBeenSet() const { return m_awsResourceIdHasBeenSet; }
78 inline void SetAwsResourceId(const Aws::String& value) { m_awsResourceIdHasBeenSet = true; m_awsResourceId = value; }
79 inline void SetAwsResourceId(Aws::String&& value) { m_awsResourceIdHasBeenSet = true; m_awsResourceId = std::move(value); }
80 inline void SetAwsResourceId(const char* value) { m_awsResourceIdHasBeenSet = true; m_awsResourceId.assign(value); }
83 inline OrganizationRecommendationResourceSummary& WithAwsResourceId(const char* value) { SetAwsResourceId(value); return *this;}
85
87
90 inline const ExclusionStatus& GetExclusionStatus() const{ return m_exclusionStatus; }
91 inline bool ExclusionStatusHasBeenSet() const { return m_exclusionStatusHasBeenSet; }
92 inline void SetExclusionStatus(const ExclusionStatus& value) { m_exclusionStatusHasBeenSet = true; m_exclusionStatus = value; }
93 inline void SetExclusionStatus(ExclusionStatus&& value) { m_exclusionStatusHasBeenSet = true; m_exclusionStatus = std::move(value); }
97
99
102 inline const Aws::String& GetId() const{ return m_id; }
103 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
104 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
105 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
106 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
107 inline OrganizationRecommendationResourceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
108 inline OrganizationRecommendationResourceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
109 inline OrganizationRecommendationResourceSummary& WithId(const char* value) { SetId(value); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
117 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
118 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
119 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
129 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
130 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
131 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
134 inline OrganizationRecommendationResourceSummary& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
135 inline OrganizationRecommendationResourceSummary& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
136 inline OrganizationRecommendationResourceSummary& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
137 inline OrganizationRecommendationResourceSummary& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
138 inline OrganizationRecommendationResourceSummary& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
139 inline OrganizationRecommendationResourceSummary& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
140 inline OrganizationRecommendationResourceSummary& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
142
144
147 inline const Aws::String& GetRecommendationArn() const{ return m_recommendationArn; }
148 inline bool RecommendationArnHasBeenSet() const { return m_recommendationArnHasBeenSet; }
149 inline void SetRecommendationArn(const Aws::String& value) { m_recommendationArnHasBeenSet = true; m_recommendationArn = value; }
150 inline void SetRecommendationArn(Aws::String&& value) { m_recommendationArnHasBeenSet = true; m_recommendationArn = std::move(value); }
151 inline void SetRecommendationArn(const char* value) { m_recommendationArnHasBeenSet = true; m_recommendationArn.assign(value); }
156
158
161 inline const Aws::String& GetRegionCode() const{ return m_regionCode; }
162 inline bool RegionCodeHasBeenSet() const { return m_regionCodeHasBeenSet; }
163 inline void SetRegionCode(const Aws::String& value) { m_regionCodeHasBeenSet = true; m_regionCode = value; }
164 inline void SetRegionCode(Aws::String&& value) { m_regionCodeHasBeenSet = true; m_regionCode = std::move(value); }
165 inline void SetRegionCode(const char* value) { m_regionCodeHasBeenSet = true; m_regionCode.assign(value); }
167 inline OrganizationRecommendationResourceSummary& WithRegionCode(Aws::String&& value) { SetRegionCode(std::move(value)); return *this;}
168 inline OrganizationRecommendationResourceSummary& WithRegionCode(const char* value) { SetRegionCode(value); return *this;}
170
172
175 inline const ResourceStatus& GetStatus() const{ return m_status; }
176 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
177 inline void SetStatus(const ResourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
178 inline void SetStatus(ResourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
180 inline OrganizationRecommendationResourceSummary& WithStatus(ResourceStatus&& value) { SetStatus(std::move(value)); return *this;}
182 private:
183
184 Aws::String m_accountId;
185 bool m_accountIdHasBeenSet = false;
186
187 Aws::String m_arn;
188 bool m_arnHasBeenSet = false;
189
190 Aws::String m_awsResourceId;
191 bool m_awsResourceIdHasBeenSet = false;
192
193 ExclusionStatus m_exclusionStatus;
194 bool m_exclusionStatusHasBeenSet = false;
195
196 Aws::String m_id;
197 bool m_idHasBeenSet = false;
198
199 Aws::Utils::DateTime m_lastUpdatedAt;
200 bool m_lastUpdatedAtHasBeenSet = false;
201
203 bool m_metadataHasBeenSet = false;
204
205 Aws::String m_recommendationArn;
206 bool m_recommendationArnHasBeenSet = false;
207
208 Aws::String m_regionCode;
209 bool m_regionCodeHasBeenSet = false;
210
211 ResourceStatus m_status;
212 bool m_statusHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace TrustedAdvisor
217} // namespace Aws
OrganizationRecommendationResourceSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
OrganizationRecommendationResourceSummary & WithRecommendationArn(Aws::String &&value)
OrganizationRecommendationResourceSummary & WithStatus(ResourceStatus &&value)
OrganizationRecommendationResourceSummary & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
OrganizationRecommendationResourceSummary & AddMetadata(Aws::String &&key, const char *value)
OrganizationRecommendationResourceSummary & WithRecommendationArn(const Aws::String &value)
OrganizationRecommendationResourceSummary & AddMetadata(const Aws::String &key, Aws::String &&value)
OrganizationRecommendationResourceSummary & WithAwsResourceId(const Aws::String &value)
OrganizationRecommendationResourceSummary & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationRecommendationResourceSummary & WithAwsResourceId(Aws::String &&value)
OrganizationRecommendationResourceSummary & WithExclusionStatus(const ExclusionStatus &value)
OrganizationRecommendationResourceSummary & AddMetadata(const char *key, Aws::String &&value)
OrganizationRecommendationResourceSummary & WithRegionCode(Aws::String &&value)
OrganizationRecommendationResourceSummary & WithRegionCode(const Aws::String &value)
OrganizationRecommendationResourceSummary & WithAccountId(const Aws::String &value)
OrganizationRecommendationResourceSummary & AddMetadata(const Aws::String &key, const Aws::String &value)
OrganizationRecommendationResourceSummary & WithAwsResourceId(const char *value)
OrganizationRecommendationResourceSummary & WithRegionCode(const char *value)
OrganizationRecommendationResourceSummary & WithArn(Aws::String &&value)
OrganizationRecommendationResourceSummary & WithArn(const Aws::String &value)
OrganizationRecommendationResourceSummary & WithAccountId(Aws::String &&value)
AWS_TRUSTEDADVISOR_API OrganizationRecommendationResourceSummary(Aws::Utils::Json::JsonView jsonValue)
OrganizationRecommendationResourceSummary & AddMetadata(Aws::String &&key, Aws::String &&value)
OrganizationRecommendationResourceSummary & WithId(const Aws::String &value)
OrganizationRecommendationResourceSummary & WithStatus(const ResourceStatus &value)
OrganizationRecommendationResourceSummary & AddMetadata(const char *key, const char *value)
OrganizationRecommendationResourceSummary & AddMetadata(Aws::String &&key, const Aws::String &value)
OrganizationRecommendationResourceSummary & WithAccountId(const char *value)
OrganizationRecommendationResourceSummary & WithExclusionStatus(ExclusionStatus &&value)
OrganizationRecommendationResourceSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
AWS_TRUSTEDADVISOR_API OrganizationRecommendationResourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationRecommendationResourceSummary & WithRecommendationArn(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue