AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Distribution.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cloudfront/model/ActiveTrustedSigners.h>
11#include <aws/cloudfront/model/ActiveTrustedKeyGroups.h>
12#include <aws/cloudfront/model/DistributionConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/cloudfront/model/AliasICPRecordal.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace CloudFront
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_CLOUDFRONT_API Distribution();
42 AWS_CLOUDFRONT_API Distribution(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_CLOUDFRONT_API Distribution& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46
47
49
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline Distribution& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline Distribution& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline Distribution& WithId(const char* value) { SetId(value); return *this;}
61
63
66 inline const Aws::String& GetARN() const{ return m_aRN; }
67 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
68 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
69 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
70 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
71 inline Distribution& WithARN(const Aws::String& value) { SetARN(value); return *this;}
72 inline Distribution& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
73 inline Distribution& WithARN(const char* value) { SetARN(value); return *this;}
75
77
82 inline const Aws::String& GetStatus() const{ return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
85 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
86 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
87 inline Distribution& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
88 inline Distribution& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
89 inline Distribution& WithStatus(const char* value) { SetStatus(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
97 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
98 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
99 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
100 inline Distribution& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
101 inline Distribution& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
103
105
108 inline int GetInProgressInvalidationBatches() const{ return m_inProgressInvalidationBatches; }
109 inline bool InProgressInvalidationBatchesHasBeenSet() const { return m_inProgressInvalidationBatchesHasBeenSet; }
110 inline void SetInProgressInvalidationBatches(int value) { m_inProgressInvalidationBatchesHasBeenSet = true; m_inProgressInvalidationBatches = value; }
113
115
119 inline const Aws::String& GetDomainName() const{ return m_domainName; }
120 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
121 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
122 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
123 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
124 inline Distribution& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
125 inline Distribution& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
126 inline Distribution& WithDomainName(const char* value) { SetDomainName(value); return *this;}
128
130
137 inline const ActiveTrustedSigners& GetActiveTrustedSigners() const{ return m_activeTrustedSigners; }
138 inline bool ActiveTrustedSignersHasBeenSet() const { return m_activeTrustedSignersHasBeenSet; }
139 inline void SetActiveTrustedSigners(const ActiveTrustedSigners& value) { m_activeTrustedSignersHasBeenSet = true; m_activeTrustedSigners = value; }
140 inline void SetActiveTrustedSigners(ActiveTrustedSigners&& value) { m_activeTrustedSignersHasBeenSet = true; m_activeTrustedSigners = std::move(value); }
142 inline Distribution& WithActiveTrustedSigners(ActiveTrustedSigners&& value) { SetActiveTrustedSigners(std::move(value)); return *this;}
144
146
151 inline const ActiveTrustedKeyGroups& GetActiveTrustedKeyGroups() const{ return m_activeTrustedKeyGroups; }
152 inline bool ActiveTrustedKeyGroupsHasBeenSet() const { return m_activeTrustedKeyGroupsHasBeenSet; }
153 inline void SetActiveTrustedKeyGroups(const ActiveTrustedKeyGroups& value) { m_activeTrustedKeyGroupsHasBeenSet = true; m_activeTrustedKeyGroups = value; }
154 inline void SetActiveTrustedKeyGroups(ActiveTrustedKeyGroups&& value) { m_activeTrustedKeyGroupsHasBeenSet = true; m_activeTrustedKeyGroups = std::move(value); }
158
160
163 inline const DistributionConfig& GetDistributionConfig() const{ return m_distributionConfig; }
164 inline bool DistributionConfigHasBeenSet() const { return m_distributionConfigHasBeenSet; }
165 inline void SetDistributionConfig(const DistributionConfig& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = value; }
166 inline void SetDistributionConfig(DistributionConfig&& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = std::move(value); }
168 inline Distribution& WithDistributionConfig(DistributionConfig&& value) { SetDistributionConfig(std::move(value)); return *this;}
170
172
182 inline const Aws::Vector<AliasICPRecordal>& GetAliasICPRecordals() const{ return m_aliasICPRecordals; }
183 inline bool AliasICPRecordalsHasBeenSet() const { return m_aliasICPRecordalsHasBeenSet; }
184 inline void SetAliasICPRecordals(const Aws::Vector<AliasICPRecordal>& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = value; }
185 inline void SetAliasICPRecordals(Aws::Vector<AliasICPRecordal>&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = std::move(value); }
188 inline Distribution& AddAliasICPRecordals(const AliasICPRecordal& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.push_back(value); return *this; }
189 inline Distribution& AddAliasICPRecordals(AliasICPRecordal&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.push_back(std::move(value)); return *this; }
191 private:
192
193 Aws::String m_id;
194 bool m_idHasBeenSet = false;
195
196 Aws::String m_aRN;
197 bool m_aRNHasBeenSet = false;
198
199 Aws::String m_status;
200 bool m_statusHasBeenSet = false;
201
202 Aws::Utils::DateTime m_lastModifiedTime;
203 bool m_lastModifiedTimeHasBeenSet = false;
204
205 int m_inProgressInvalidationBatches;
206 bool m_inProgressInvalidationBatchesHasBeenSet = false;
207
208 Aws::String m_domainName;
209 bool m_domainNameHasBeenSet = false;
210
211 ActiveTrustedSigners m_activeTrustedSigners;
212 bool m_activeTrustedSignersHasBeenSet = false;
213
214 ActiveTrustedKeyGroups m_activeTrustedKeyGroups;
215 bool m_activeTrustedKeyGroupsHasBeenSet = false;
216
217 DistributionConfig m_distributionConfig;
218 bool m_distributionConfigHasBeenSet = false;
219
220 Aws::Vector<AliasICPRecordal> m_aliasICPRecordals;
221 bool m_aliasICPRecordalsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace CloudFront
226} // namespace Aws
void SetDomainName(const Aws::String &value)
void SetActiveTrustedKeyGroups(ActiveTrustedKeyGroups &&value)
void SetId(const char *value)
Distribution & WithActiveTrustedKeyGroups(const ActiveTrustedKeyGroups &value)
Distribution & WithDomainName(const Aws::String &value)
Distribution & WithStatus(Aws::String &&value)
const Aws::Vector< AliasICPRecordal > & GetAliasICPRecordals() const
Distribution & WithDistributionConfig(DistributionConfig &&value)
Distribution & WithAliasICPRecordals(Aws::Vector< AliasICPRecordal > &&value)
Distribution & WithDomainName(Aws::String &&value)
void SetARN(const char *value)
Distribution & WithInProgressInvalidationBatches(int value)
void SetStatus(const Aws::String &value)
const ActiveTrustedKeyGroups & GetActiveTrustedKeyGroups() const
Distribution & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Distribution & WithId(const Aws::String &value)
void SetARN(Aws::String &&value)
const Aws::String & GetId() const
const DistributionConfig & GetDistributionConfig() const
void SetAliasICPRecordals(Aws::Vector< AliasICPRecordal > &&value)
AWS_CLOUDFRONT_API Distribution & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDomainName(Aws::String &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Distribution & WithActiveTrustedSigners(const ActiveTrustedSigners &value)
Distribution & WithId(Aws::String &&value)
void SetStatus(Aws::String &&value)
Distribution & AddAliasICPRecordals(const AliasICPRecordal &value)
Distribution & WithAliasICPRecordals(const Aws::Vector< AliasICPRecordal > &value)
Distribution & WithStatus(const char *value)
Distribution & WithARN(Aws::String &&value)
Distribution & WithDistributionConfig(const DistributionConfig &value)
void SetDomainName(const char *value)
Distribution & AddAliasICPRecordals(AliasICPRecordal &&value)
Distribution & WithActiveTrustedSigners(ActiveTrustedSigners &&value)
const Aws::String & GetDomainName() const
const Aws::String & GetARN() const
void SetARN(const Aws::String &value)
Distribution & WithId(const char *value)
Distribution & WithActiveTrustedKeyGroups(ActiveTrustedKeyGroups &&value)
Distribution & WithDomainName(const char *value)
void SetDistributionConfig(DistributionConfig &&value)
const ActiveTrustedSigners & GetActiveTrustedSigners() const
AWS_CLOUDFRONT_API Distribution(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAliasICPRecordals(const Aws::Vector< AliasICPRecordal > &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
void SetActiveTrustedSigners(ActiveTrustedSigners &&value)
void SetActiveTrustedKeyGroups(const ActiveTrustedKeyGroups &value)
void SetId(const Aws::String &value)
void SetStatus(const char *value)
Distribution & WithARN(const char *value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetInProgressInvalidationBatches(int value)
Distribution & WithStatus(const Aws::String &value)
void SetId(Aws::String &&value)
void SetActiveTrustedSigners(const ActiveTrustedSigners &value)
Distribution & WithARN(const Aws::String &value)
const Aws::String & GetStatus() const
Distribution & WithLastModifiedTime(Aws::Utils::DateTime &&value)
void SetDistributionConfig(const DistributionConfig &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector