AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DistributionConfigurationSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder {
22namespace Model {
23
31 public:
32 AWS_IMAGEBUILDER_API DistributionConfigurationSummary() = default;
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
96 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
97 template <typename DateCreatedT = Aws::String>
98 void SetDateCreated(DateCreatedT&& value) {
99 m_dateCreatedHasBeenSet = true;
100 m_dateCreated = std::forward<DateCreatedT>(value);
101 }
102 template <typename DateCreatedT = Aws::String>
104 SetDateCreated(std::forward<DateCreatedT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDateUpdated() const { return m_dateUpdated; }
114 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
115 template <typename DateUpdatedT = Aws::String>
116 void SetDateUpdated(DateUpdatedT&& value) {
117 m_dateUpdatedHasBeenSet = true;
118 m_dateUpdated = std::forward<DateUpdatedT>(value);
119 }
120 template <typename DateUpdatedT = Aws::String>
122 SetDateUpdated(std::forward<DateUpdatedT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 DistributionConfigurationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
156 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
157 template <typename RegionsT = Aws::Vector<Aws::String>>
158 void SetRegions(RegionsT&& value) {
159 m_regionsHasBeenSet = true;
160 m_regions = std::forward<RegionsT>(value);
161 }
162 template <typename RegionsT = Aws::Vector<Aws::String>>
164 SetRegions(std::forward<RegionsT>(value));
165 return *this;
166 }
167 template <typename RegionsT = Aws::String>
169 m_regionsHasBeenSet = true;
170 m_regions.emplace_back(std::forward<RegionsT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_arn;
176
177 Aws::String m_name;
178
179 Aws::String m_description;
180
181 Aws::String m_dateCreated;
182
183 Aws::String m_dateUpdated;
184
186
187 Aws::Vector<Aws::String> m_regions;
188 bool m_arnHasBeenSet = false;
189 bool m_nameHasBeenSet = false;
190 bool m_descriptionHasBeenSet = false;
191 bool m_dateCreatedHasBeenSet = false;
192 bool m_dateUpdatedHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194 bool m_regionsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace imagebuilder
199} // namespace Aws
DistributionConfigurationSummary & WithDateCreated(DateCreatedT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IMAGEBUILDER_API DistributionConfigurationSummary()=default
DistributionConfigurationSummary & WithDateUpdated(DateUpdatedT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API DistributionConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
DistributionConfigurationSummary & WithRegions(RegionsT &&value)
DistributionConfigurationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IMAGEBUILDER_API DistributionConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DistributionConfigurationSummary & AddRegions(RegionsT &&value)
DistributionConfigurationSummary & WithDescription(DescriptionT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue