AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DistributionConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/imagebuilder/model/Distribution.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IMAGEBUILDER_API DistributionConfiguration();
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline DistributionConfiguration& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline DistributionConfiguration& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline DistributionConfiguration& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline DistributionConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline DistributionConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline DistributionConfiguration& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline DistributionConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline DistributionConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline DistributionConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
90 inline const Aws::Vector<Distribution>& GetDistributions() const{ return m_distributions; }
91 inline bool DistributionsHasBeenSet() const { return m_distributionsHasBeenSet; }
92 inline void SetDistributions(const Aws::Vector<Distribution>& value) { m_distributionsHasBeenSet = true; m_distributions = value; }
93 inline void SetDistributions(Aws::Vector<Distribution>&& value) { m_distributionsHasBeenSet = true; m_distributions = std::move(value); }
96 inline DistributionConfiguration& AddDistributions(const Distribution& value) { m_distributionsHasBeenSet = true; m_distributions.push_back(value); return *this; }
97 inline DistributionConfiguration& AddDistributions(Distribution&& value) { m_distributionsHasBeenSet = true; m_distributions.push_back(std::move(value)); return *this; }
99
101
104 inline int GetTimeoutMinutes() const{ return m_timeoutMinutes; }
105 inline bool TimeoutMinutesHasBeenSet() const { return m_timeoutMinutesHasBeenSet; }
106 inline void SetTimeoutMinutes(int value) { m_timeoutMinutesHasBeenSet = true; m_timeoutMinutes = value; }
107 inline DistributionConfiguration& WithTimeoutMinutes(int value) { SetTimeoutMinutes(value); return *this;}
109
111
114 inline const Aws::String& GetDateCreated() const{ return m_dateCreated; }
115 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
116 inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
117 inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
118 inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); }
119 inline DistributionConfiguration& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;}
120 inline DistributionConfiguration& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;}
121 inline DistributionConfiguration& WithDateCreated(const char* value) { SetDateCreated(value); return *this;}
123
125
128 inline const Aws::String& GetDateUpdated() const{ return m_dateUpdated; }
129 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
130 inline void SetDateUpdated(const Aws::String& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = value; }
131 inline void SetDateUpdated(Aws::String&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::move(value); }
132 inline void SetDateUpdated(const char* value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated.assign(value); }
133 inline DistributionConfiguration& WithDateUpdated(const Aws::String& value) { SetDateUpdated(value); return *this;}
134 inline DistributionConfiguration& WithDateUpdated(Aws::String&& value) { SetDateUpdated(std::move(value)); return *this;}
135 inline DistributionConfiguration& WithDateUpdated(const char* value) { SetDateUpdated(value); return *this;}
137
139
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
145 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
147 inline DistributionConfiguration& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
148 inline DistributionConfiguration& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
149 inline DistributionConfiguration& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
150 inline DistributionConfiguration& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
151 inline DistributionConfiguration& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
152 inline DistributionConfiguration& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
153 inline DistributionConfiguration& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
154 inline DistributionConfiguration& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
156 private:
157
158 Aws::String m_arn;
159 bool m_arnHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 Aws::Vector<Distribution> m_distributions;
168 bool m_distributionsHasBeenSet = false;
169
170 int m_timeoutMinutes;
171 bool m_timeoutMinutesHasBeenSet = false;
172
173 Aws::String m_dateCreated;
174 bool m_dateCreatedHasBeenSet = false;
175
176 Aws::String m_dateUpdated;
177 bool m_dateUpdatedHasBeenSet = false;
178
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace imagebuilder
185} // namespace Aws
DistributionConfiguration & WithDateCreated(const char *value)
void SetDistributions(const Aws::Vector< Distribution > &value)
DistributionConfiguration & AddDistributions(const Distribution &value)
DistributionConfiguration & WithName(const char *value)
DistributionConfiguration & WithArn(Aws::String &&value)
DistributionConfiguration & AddTags(Aws::String &&key, const char *value)
DistributionConfiguration & WithName(const Aws::String &value)
DistributionConfiguration & WithDescription(Aws::String &&value)
DistributionConfiguration & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DistributionConfiguration & WithArn(const Aws::String &value)
DistributionConfiguration & AddTags(const Aws::String &key, const Aws::String &value)
DistributionConfiguration & WithTimeoutMinutes(int value)
DistributionConfiguration & WithDateUpdated(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DistributionConfiguration & WithArn(const char *value)
AWS_IMAGEBUILDER_API DistributionConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetDistributions(Aws::Vector< Distribution > &&value)
DistributionConfiguration & WithDateCreated(const Aws::String &value)
DistributionConfiguration & WithDescription(const Aws::String &value)
DistributionConfiguration & WithDescription(const char *value)
const Aws::Vector< Distribution > & GetDistributions() const
DistributionConfiguration & AddTags(Aws::String &&key, const Aws::String &value)
DistributionConfiguration & WithDateUpdated(const char *value)
DistributionConfiguration & AddTags(Aws::String &&key, Aws::String &&value)
DistributionConfiguration & WithDateUpdated(const Aws::String &value)
DistributionConfiguration & WithDistributions(Aws::Vector< Distribution > &&value)
DistributionConfiguration & WithDistributions(const Aws::Vector< Distribution > &value)
DistributionConfiguration & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API DistributionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DistributionConfiguration & AddTags(const Aws::String &key, Aws::String &&value)
DistributionConfiguration & WithName(Aws::String &&value)
DistributionConfiguration & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
DistributionConfiguration & WithDateCreated(Aws::String &&value)
DistributionConfiguration & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
DistributionConfiguration & AddDistributions(Distribution &&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