AWS SDK for C++  1.9.20
AWS SDK for C++
Distribution.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace CloudFront
27 {
28 namespace Model
29 {
30 
39  {
40  public:
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
47 
52  inline const Aws::String& GetId() const{ return m_id; }
53 
58  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 
64  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
65 
70  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
71 
76  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
77 
82  inline Distribution& WithId(const Aws::String& value) { SetId(value); return *this;}
83 
88  inline Distribution& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
89 
94  inline Distribution& WithId(const char* value) { SetId(value); return *this;}
95 
96 
102  inline const Aws::String& GetARN() const{ return m_aRN; }
103 
109  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
110 
116  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
117 
123  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
124 
130  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
131 
137  inline Distribution& WithARN(const Aws::String& value) { SetARN(value); return *this;}
138 
144  inline Distribution& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
145 
151  inline Distribution& WithARN(const char* value) { SetARN(value); return *this;}
152 
153 
159  inline const Aws::String& GetStatus() const{ return m_status; }
160 
166  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
167 
173  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
174 
180  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
181 
187  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
188 
194  inline Distribution& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
195 
201  inline Distribution& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
202 
208  inline Distribution& WithStatus(const char* value) { SetStatus(value); return *this;}
209 
210 
214  inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
215 
219  inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
220 
224  inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
225 
229  inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
230 
234  inline Distribution& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
235 
239  inline Distribution& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
240 
241 
245  inline int GetInProgressInvalidationBatches() const{ return m_inProgressInvalidationBatches; }
246 
250  inline bool InProgressInvalidationBatchesHasBeenSet() const { return m_inProgressInvalidationBatchesHasBeenSet; }
251 
255  inline void SetInProgressInvalidationBatches(int value) { m_inProgressInvalidationBatchesHasBeenSet = true; m_inProgressInvalidationBatches = value; }
256 
260  inline Distribution& WithInProgressInvalidationBatches(int value) { SetInProgressInvalidationBatches(value); return *this;}
261 
262 
267  inline const Aws::String& GetDomainName() const{ return m_domainName; }
268 
273  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
274 
279  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
280 
285  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
286 
291  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
292 
297  inline Distribution& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
298 
303  inline Distribution& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
304 
309  inline Distribution& WithDomainName(const char* value) { SetDomainName(value); return *this;}
310 
311 
321  inline const ActiveTrustedSigners& GetActiveTrustedSigners() const{ return m_activeTrustedSigners; }
322 
332  inline bool ActiveTrustedSignersHasBeenSet() const { return m_activeTrustedSignersHasBeenSet; }
333 
343  inline void SetActiveTrustedSigners(const ActiveTrustedSigners& value) { m_activeTrustedSignersHasBeenSet = true; m_activeTrustedSigners = value; }
344 
354  inline void SetActiveTrustedSigners(ActiveTrustedSigners&& value) { m_activeTrustedSignersHasBeenSet = true; m_activeTrustedSigners = std::move(value); }
355 
365  inline Distribution& WithActiveTrustedSigners(const ActiveTrustedSigners& value) { SetActiveTrustedSigners(value); return *this;}
366 
376  inline Distribution& WithActiveTrustedSigners(ActiveTrustedSigners&& value) { SetActiveTrustedSigners(std::move(value)); return *this;}
377 
378 
386  inline const ActiveTrustedKeyGroups& GetActiveTrustedKeyGroups() const{ return m_activeTrustedKeyGroups; }
387 
395  inline bool ActiveTrustedKeyGroupsHasBeenSet() const { return m_activeTrustedKeyGroupsHasBeenSet; }
396 
404  inline void SetActiveTrustedKeyGroups(const ActiveTrustedKeyGroups& value) { m_activeTrustedKeyGroupsHasBeenSet = true; m_activeTrustedKeyGroups = value; }
405 
413  inline void SetActiveTrustedKeyGroups(ActiveTrustedKeyGroups&& value) { m_activeTrustedKeyGroupsHasBeenSet = true; m_activeTrustedKeyGroups = std::move(value); }
414 
422  inline Distribution& WithActiveTrustedKeyGroups(const ActiveTrustedKeyGroups& value) { SetActiveTrustedKeyGroups(value); return *this;}
423 
431  inline Distribution& WithActiveTrustedKeyGroups(ActiveTrustedKeyGroups&& value) { SetActiveTrustedKeyGroups(std::move(value)); return *this;}
432 
433 
439  inline const DistributionConfig& GetDistributionConfig() const{ return m_distributionConfig; }
440 
446  inline bool DistributionConfigHasBeenSet() const { return m_distributionConfigHasBeenSet; }
447 
453  inline void SetDistributionConfig(const DistributionConfig& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = value; }
454 
460  inline void SetDistributionConfig(DistributionConfig&& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = std::move(value); }
461 
467  inline Distribution& WithDistributionConfig(const DistributionConfig& value) { SetDistributionConfig(value); return *this;}
468 
474  inline Distribution& WithDistributionConfig(DistributionConfig&& value) { SetDistributionConfig(std::move(value)); return *this;}
475 
476 
487  inline const Aws::Vector<AliasICPRecordal>& GetAliasICPRecordals() const{ return m_aliasICPRecordals; }
488 
499  inline bool AliasICPRecordalsHasBeenSet() const { return m_aliasICPRecordalsHasBeenSet; }
500 
511  inline void SetAliasICPRecordals(const Aws::Vector<AliasICPRecordal>& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = value; }
512 
523  inline void SetAliasICPRecordals(Aws::Vector<AliasICPRecordal>&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = std::move(value); }
524 
535  inline Distribution& WithAliasICPRecordals(const Aws::Vector<AliasICPRecordal>& value) { SetAliasICPRecordals(value); return *this;}
536 
547  inline Distribution& WithAliasICPRecordals(Aws::Vector<AliasICPRecordal>&& value) { SetAliasICPRecordals(std::move(value)); return *this;}
548 
559  inline Distribution& AddAliasICPRecordals(const AliasICPRecordal& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.push_back(value); return *this; }
560 
571  inline Distribution& AddAliasICPRecordals(AliasICPRecordal&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.push_back(std::move(value)); return *this; }
572 
573  private:
574 
575  Aws::String m_id;
576  bool m_idHasBeenSet;
577 
578  Aws::String m_aRN;
579  bool m_aRNHasBeenSet;
580 
581  Aws::String m_status;
582  bool m_statusHasBeenSet;
583 
584  Aws::Utils::DateTime m_lastModifiedTime;
585  bool m_lastModifiedTimeHasBeenSet;
586 
587  int m_inProgressInvalidationBatches;
588  bool m_inProgressInvalidationBatchesHasBeenSet;
589 
590  Aws::String m_domainName;
591  bool m_domainNameHasBeenSet;
592 
593  ActiveTrustedSigners m_activeTrustedSigners;
594  bool m_activeTrustedSignersHasBeenSet;
595 
596  ActiveTrustedKeyGroups m_activeTrustedKeyGroups;
597  bool m_activeTrustedKeyGroupsHasBeenSet;
598 
599  DistributionConfig m_distributionConfig;
600  bool m_distributionConfigHasBeenSet;
601 
602  Aws::Vector<AliasICPRecordal> m_aliasICPRecordals;
603  bool m_aliasICPRecordalsHasBeenSet;
604  };
605 
606 } // namespace Model
607 } // namespace CloudFront
608 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CloudFront::Model::Distribution::SetActiveTrustedKeyGroups
void SetActiveTrustedKeyGroups(ActiveTrustedKeyGroups &&value)
Definition: Distribution.h:413
Aws::CloudFront::Model::ActiveTrustedSigners
Definition: ActiveTrustedSigners.h:34
Aws::CloudFront::Model::Distribution::GetAliasICPRecordals
const Aws::Vector< AliasICPRecordal > & GetAliasICPRecordals() const
Definition: Distribution.h:487
ActiveTrustedKeyGroups.h
Aws::CloudFront::Model::Distribution::GetInProgressInvalidationBatches
int GetInProgressInvalidationBatches() const
Definition: Distribution.h:245
Aws::CloudFront::Model::Distribution::SetDistributionConfig
void SetDistributionConfig(const DistributionConfig &value)
Definition: Distribution.h:453
Aws::CloudFront::Model::Distribution::SetAliasICPRecordals
void SetAliasICPRecordals(const Aws::Vector< AliasICPRecordal > &value)
Definition: Distribution.h:511
Aws::CloudFront::Model::Distribution::WithLastModifiedTime
Distribution & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: Distribution.h:234
Aws::CloudFront::Model::Distribution::LastModifiedTimeHasBeenSet
bool LastModifiedTimeHasBeenSet() const
Definition: Distribution.h:219
Aws::CloudFront::Model::Distribution::operator=
Distribution & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Distribution::WithId
Distribution & WithId(Aws::String &&value)
Definition: Distribution.h:88
Aws::CloudFront::Model::Distribution::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: Distribution.h:285
Aws::CloudFront::Model::Distribution::WithARN
Distribution & WithARN(const Aws::String &value)
Definition: Distribution.h:137
Aws::CloudFront::Model::Distribution::SetLastModifiedTime
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: Distribution.h:229
Aws::CloudFront::Model::Distribution::WithARN
Distribution & WithARN(const char *value)
Definition: Distribution.h:151
DateTime.h
Aws::CloudFront::Model::Distribution::GetLastModifiedTime
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition: Distribution.h:214
AliasICPRecordal.h
Aws::CloudFront::Model::Distribution::WithAliasICPRecordals
Distribution & WithAliasICPRecordals(const Aws::Vector< AliasICPRecordal > &value)
Definition: Distribution.h:535
Aws::CloudFront::Model::Distribution::GetDomainName
const Aws::String & GetDomainName() const
Definition: Distribution.h:267
Aws::CloudFront::Model::Distribution::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Distribution.h:58
Aws::CloudFront::Model::Distribution::WithStatus
Distribution & WithStatus(Aws::String &&value)
Definition: Distribution.h:201
Aws::CloudFront::Model::Distribution::WithAliasICPRecordals
Distribution & WithAliasICPRecordals(Aws::Vector< AliasICPRecordal > &&value)
Definition: Distribution.h:547
Aws::CloudFront::Model::Distribution::SetId
void SetId(Aws::String &&value)
Definition: Distribution.h:70
Aws::CloudFront::Model::Distribution::SetStatus
void SetStatus(Aws::String &&value)
Definition: Distribution.h:180
Aws::CloudFront::Model::Distribution::SetActiveTrustedSigners
void SetActiveTrustedSigners(ActiveTrustedSigners &&value)
Definition: Distribution.h:354
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::Distribution::SetStatus
void SetStatus(const char *value)
Definition: Distribution.h:187
Aws::CloudFront::Model::AliasICPRecordal
Definition: AliasICPRecordal.h:40
Aws::CloudFront::Model::Distribution::SetDomainName
void SetDomainName(const char *value)
Definition: Distribution.h:291
AWSVector.h
Aws::CloudFront::Model::Distribution::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::Distribution::ActiveTrustedSignersHasBeenSet
bool ActiveTrustedSignersHasBeenSet() const
Definition: Distribution.h:332
Aws::CloudFront::Model::Distribution::WithStatus
Distribution & WithStatus(const Aws::String &value)
Definition: Distribution.h:194
Aws::CloudFront::Model::Distribution::WithDistributionConfig
Distribution & WithDistributionConfig(DistributionConfig &&value)
Definition: Distribution.h:474
DistributionConfig.h
Aws::CloudFront::Model::Distribution::WithDomainName
Distribution & WithDomainName(const char *value)
Definition: Distribution.h:309
Aws::CloudFront::Model::Distribution::SetStatus
void SetStatus(const Aws::String &value)
Definition: Distribution.h:173
Aws::CloudFront::Model::Distribution::AliasICPRecordalsHasBeenSet
bool AliasICPRecordalsHasBeenSet() const
Definition: Distribution.h:499
ActiveTrustedSigners.h
Aws::CloudFront::Model::Distribution::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: Distribution.h:273
Aws::CloudFront::Model::Distribution::WithStatus
Distribution & WithStatus(const char *value)
Definition: Distribution.h:208
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::Distribution::SetInProgressInvalidationBatches
void SetInProgressInvalidationBatches(int value)
Definition: Distribution.h:255
Aws::CloudFront::Model::Distribution::WithDomainName
Distribution & WithDomainName(Aws::String &&value)
Definition: Distribution.h:303
Aws::CloudFront::Model::Distribution::WithId
Distribution & WithId(const char *value)
Definition: Distribution.h:94
Aws::CloudFront::Model::Distribution::SetAliasICPRecordals
void SetAliasICPRecordals(Aws::Vector< AliasICPRecordal > &&value)
Definition: Distribution.h:523
Aws::CloudFront::Model::ActiveTrustedKeyGroups
Definition: ActiveTrustedKeyGroups.h:34
Aws::CloudFront::Model::Distribution::DistributionConfigHasBeenSet
bool DistributionConfigHasBeenSet() const
Definition: Distribution.h:446
Aws::CloudFront::Model::Distribution::GetId
const Aws::String & GetId() const
Definition: Distribution.h:52
Aws::CloudFront::Model::Distribution::SetActiveTrustedKeyGroups
void SetActiveTrustedKeyGroups(const ActiveTrustedKeyGroups &value)
Definition: Distribution.h:404
Aws::CloudFront::Model::Distribution::Distribution
Distribution(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::CloudFront::Model::Distribution::WithDomainName
Distribution & WithDomainName(const Aws::String &value)
Definition: Distribution.h:297
Aws::CloudFront::Model::Distribution::WithLastModifiedTime
Distribution & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: Distribution.h:239
Aws::CloudFront::Model::Distribution::SetLastModifiedTime
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: Distribution.h:224
Aws::CloudFront::Model::Distribution::WithId
Distribution & WithId(const Aws::String &value)
Definition: Distribution.h:82
Aws::CloudFront::Model::Distribution::WithARN
Distribution & WithARN(Aws::String &&value)
Definition: Distribution.h:144
Aws::CloudFront::Model::Distribution::WithActiveTrustedKeyGroups
Distribution & WithActiveTrustedKeyGroups(ActiveTrustedKeyGroups &&value)
Definition: Distribution.h:431
Aws::CloudFront::Model::Distribution::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: Distribution.h:109
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::Distribution::WithActiveTrustedSigners
Distribution & WithActiveTrustedSigners(ActiveTrustedSigners &&value)
Definition: Distribution.h:376
Aws::CloudFront::Model::Distribution::ActiveTrustedKeyGroupsHasBeenSet
bool ActiveTrustedKeyGroupsHasBeenSet() const
Definition: Distribution.h:395
Aws::CloudFront::Model::Distribution::SetId
void SetId(const Aws::String &value)
Definition: Distribution.h:64
Aws::CloudFront::Model::Distribution::SetARN
void SetARN(Aws::String &&value)
Definition: Distribution.h:123
Aws::CloudFront::Model::Distribution::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Distribution.h:166
Aws::CloudFront::Model::Distribution::GetARN
const Aws::String & GetARN() const
Definition: Distribution.h:102
CloudFront_EXPORTS.h
Aws::CloudFront::Model::Distribution
Definition: Distribution.h:39
Aws::CloudFront::Model::DistributionConfig
Definition: DistributionConfig.h:42
Aws::CloudFront::Model::Distribution::InProgressInvalidationBatchesHasBeenSet
bool InProgressInvalidationBatchesHasBeenSet() const
Definition: Distribution.h:250
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::Distribution::Distribution
Distribution()
Aws::CloudFront::Model::Distribution::WithActiveTrustedKeyGroups
Distribution & WithActiveTrustedKeyGroups(const ActiveTrustedKeyGroups &value)
Definition: Distribution.h:422
Aws::CloudFront::Model::Distribution::AddAliasICPRecordals
Distribution & AddAliasICPRecordals(const AliasICPRecordal &value)
Definition: Distribution.h:559
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::Distribution::WithInProgressInvalidationBatches
Distribution & WithInProgressInvalidationBatches(int value)
Definition: Distribution.h:260
Aws::CloudFront::Model::Distribution::WithDistributionConfig
Distribution & WithDistributionConfig(const DistributionConfig &value)
Definition: Distribution.h:467
Aws::CloudFront::Model::Distribution::GetActiveTrustedSigners
const ActiveTrustedSigners & GetActiveTrustedSigners() const
Definition: Distribution.h:321
Aws::CloudFront::Model::Distribution::GetDistributionConfig
const DistributionConfig & GetDistributionConfig() const
Definition: Distribution.h:439
Aws::CloudFront::Model::Distribution::WithActiveTrustedSigners
Distribution & WithActiveTrustedSigners(const ActiveTrustedSigners &value)
Definition: Distribution.h:365
Aws::CloudFront::Model::Distribution::GetActiveTrustedKeyGroups
const ActiveTrustedKeyGroups & GetActiveTrustedKeyGroups() const
Definition: Distribution.h:386
Aws::CloudFront::Model::Distribution::AddAliasICPRecordals
Distribution & AddAliasICPRecordals(AliasICPRecordal &&value)
Definition: Distribution.h:571
Aws::CloudFront::Model::Distribution::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: Distribution.h:279
Aws::CloudFront::Model::Distribution::SetActiveTrustedSigners
void SetActiveTrustedSigners(const ActiveTrustedSigners &value)
Definition: Distribution.h:343
Aws::CloudFront::Model::Distribution::GetStatus
const Aws::String & GetStatus() const
Definition: Distribution.h:159
Aws::CloudFront::Model::Distribution::SetDistributionConfig
void SetDistributionConfig(DistributionConfig &&value)
Definition: Distribution.h:460
Aws::CloudFront::Model::Distribution::SetARN
void SetARN(const Aws::String &value)
Definition: Distribution.h:116
Aws::CloudFront::Model::Distribution::SetId
void SetId(const char *value)
Definition: Distribution.h:76
Aws::CloudFront::Model::Distribution::SetARN
void SetARN(const char *value)
Definition: Distribution.h:130