AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationResourceSummary.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:
38 AWS_TRUSTEDADVISOR_API RecommendationResourceSummary();
41 AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline RecommendationResourceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline RecommendationResourceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline RecommendationResourceSummary& WithArn(const char* value) { SetArn(value); return *this;}
57
59
62 inline const Aws::String& GetAwsResourceId() const{ return m_awsResourceId; }
63 inline bool AwsResourceIdHasBeenSet() const { return m_awsResourceIdHasBeenSet; }
64 inline void SetAwsResourceId(const Aws::String& value) { m_awsResourceIdHasBeenSet = true; m_awsResourceId = value; }
65 inline void SetAwsResourceId(Aws::String&& value) { m_awsResourceIdHasBeenSet = true; m_awsResourceId = std::move(value); }
66 inline void SetAwsResourceId(const char* value) { m_awsResourceIdHasBeenSet = true; m_awsResourceId.assign(value); }
67 inline RecommendationResourceSummary& WithAwsResourceId(const Aws::String& value) { SetAwsResourceId(value); return *this;}
68 inline RecommendationResourceSummary& WithAwsResourceId(Aws::String&& value) { SetAwsResourceId(std::move(value)); return *this;}
69 inline RecommendationResourceSummary& WithAwsResourceId(const char* value) { SetAwsResourceId(value); return *this;}
71
73
76 inline const ExclusionStatus& GetExclusionStatus() const{ return m_exclusionStatus; }
77 inline bool ExclusionStatusHasBeenSet() const { return m_exclusionStatusHasBeenSet; }
78 inline void SetExclusionStatus(const ExclusionStatus& value) { m_exclusionStatusHasBeenSet = true; m_exclusionStatus = value; }
79 inline void SetExclusionStatus(ExclusionStatus&& value) { m_exclusionStatusHasBeenSet = true; m_exclusionStatus = std::move(value); }
81 inline RecommendationResourceSummary& WithExclusionStatus(ExclusionStatus&& value) { SetExclusionStatus(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetId() const{ return m_id; }
89 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
90 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
91 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
92 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
93 inline RecommendationResourceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
94 inline RecommendationResourceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
95 inline RecommendationResourceSummary& WithId(const char* value) { SetId(value); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
103 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
104 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
105 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
115 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
116 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
117 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
120 inline RecommendationResourceSummary& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
121 inline RecommendationResourceSummary& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
122 inline RecommendationResourceSummary& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
123 inline RecommendationResourceSummary& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
124 inline RecommendationResourceSummary& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
125 inline RecommendationResourceSummary& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
126 inline RecommendationResourceSummary& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
128
130
133 inline const Aws::String& GetRecommendationArn() const{ return m_recommendationArn; }
134 inline bool RecommendationArnHasBeenSet() const { return m_recommendationArnHasBeenSet; }
135 inline void SetRecommendationArn(const Aws::String& value) { m_recommendationArnHasBeenSet = true; m_recommendationArn = value; }
136 inline void SetRecommendationArn(Aws::String&& value) { m_recommendationArnHasBeenSet = true; m_recommendationArn = std::move(value); }
137 inline void SetRecommendationArn(const char* value) { m_recommendationArnHasBeenSet = true; m_recommendationArn.assign(value); }
139 inline RecommendationResourceSummary& WithRecommendationArn(Aws::String&& value) { SetRecommendationArn(std::move(value)); return *this;}
140 inline RecommendationResourceSummary& WithRecommendationArn(const char* value) { SetRecommendationArn(value); return *this;}
142
144
147 inline const Aws::String& GetRegionCode() const{ return m_regionCode; }
148 inline bool RegionCodeHasBeenSet() const { return m_regionCodeHasBeenSet; }
149 inline void SetRegionCode(const Aws::String& value) { m_regionCodeHasBeenSet = true; m_regionCode = value; }
150 inline void SetRegionCode(Aws::String&& value) { m_regionCodeHasBeenSet = true; m_regionCode = std::move(value); }
151 inline void SetRegionCode(const char* value) { m_regionCodeHasBeenSet = true; m_regionCode.assign(value); }
152 inline RecommendationResourceSummary& WithRegionCode(const Aws::String& value) { SetRegionCode(value); return *this;}
153 inline RecommendationResourceSummary& WithRegionCode(Aws::String&& value) { SetRegionCode(std::move(value)); return *this;}
154 inline RecommendationResourceSummary& WithRegionCode(const char* value) { SetRegionCode(value); return *this;}
156
158
161 inline const ResourceStatus& GetStatus() const{ return m_status; }
162 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
163 inline void SetStatus(const ResourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
164 inline void SetStatus(ResourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
165 inline RecommendationResourceSummary& WithStatus(const ResourceStatus& value) { SetStatus(value); return *this;}
166 inline RecommendationResourceSummary& WithStatus(ResourceStatus&& value) { SetStatus(std::move(value)); return *this;}
168 private:
169
170 Aws::String m_arn;
171 bool m_arnHasBeenSet = false;
172
173 Aws::String m_awsResourceId;
174 bool m_awsResourceIdHasBeenSet = false;
175
176 ExclusionStatus m_exclusionStatus;
177 bool m_exclusionStatusHasBeenSet = false;
178
179 Aws::String m_id;
180 bool m_idHasBeenSet = false;
181
182 Aws::Utils::DateTime m_lastUpdatedAt;
183 bool m_lastUpdatedAtHasBeenSet = false;
184
186 bool m_metadataHasBeenSet = false;
187
188 Aws::String m_recommendationArn;
189 bool m_recommendationArnHasBeenSet = false;
190
191 Aws::String m_regionCode;
192 bool m_regionCodeHasBeenSet = false;
193
194 ResourceStatus m_status;
195 bool m_statusHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace TrustedAdvisor
200} // namespace Aws
RecommendationResourceSummary & WithAwsResourceId(Aws::String &&value)
RecommendationResourceSummary & WithAwsResourceId(const Aws::String &value)
RecommendationResourceSummary & WithId(Aws::String &&value)
RecommendationResourceSummary & WithExclusionStatus(const ExclusionStatus &value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
RecommendationResourceSummary & WithArn(const Aws::String &value)
RecommendationResourceSummary & WithRegionCode(Aws::String &&value)
RecommendationResourceSummary & AddMetadata(const Aws::String &key, const Aws::String &value)
AWS_TRUSTEDADVISOR_API RecommendationResourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
RecommendationResourceSummary & WithRecommendationArn(const Aws::String &value)
RecommendationResourceSummary & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
RecommendationResourceSummary & AddMetadata(const Aws::String &key, Aws::String &&value)
RecommendationResourceSummary & AddMetadata(Aws::String &&key, const char *value)
RecommendationResourceSummary & WithExclusionStatus(ExclusionStatus &&value)
RecommendationResourceSummary & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
RecommendationResourceSummary & WithId(const char *value)
RecommendationResourceSummary & AddMetadata(Aws::String &&key, Aws::String &&value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
RecommendationResourceSummary & WithRegionCode(const char *value)
RecommendationResourceSummary & WithAwsResourceId(const char *value)
RecommendationResourceSummary & WithArn(const char *value)
RecommendationResourceSummary & WithStatus(const ResourceStatus &value)
RecommendationResourceSummary & AddMetadata(const char *key, const char *value)
RecommendationResourceSummary & WithArn(Aws::String &&value)
RecommendationResourceSummary & WithRecommendationArn(const char *value)
AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRUSTEDADVISOR_API RecommendationResourceSummary(Aws::Utils::Json::JsonView jsonValue)
RecommendationResourceSummary & WithRegionCode(const Aws::String &value)
RecommendationResourceSummary & WithId(const Aws::String &value)
RecommendationResourceSummary & WithRecommendationArn(Aws::String &&value)
RecommendationResourceSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
RecommendationResourceSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
RecommendationResourceSummary & AddMetadata(const char *key, Aws::String &&value)
RecommendationResourceSummary & WithStatus(ResourceStatus &&value)
RecommendationResourceSummary & AddMetadata(Aws::String &&key, const Aws::String &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