AWS SDK for C++  0.12.9
AWS SDK for C++
DistributionSummary.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
27 
28 namespace Aws
29 {
30 namespace Utils
31 {
32 namespace Xml
33 {
34  class XmlNode;
35 } // namespace Xml
36 } // namespace Utils
37 namespace CloudFront
38 {
39 namespace Model
40 {
41 
46  {
47  public:
50  DistributionSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51 
52  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
53 
57  inline const Aws::String& GetId() const{ return m_id; }
58 
62  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 
67  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
68 
72  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
73 
77  inline DistributionSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
78 
82  inline DistributionSummary& WithId(Aws::String&& value) { SetId(value); return *this;}
83 
87  inline DistributionSummary& WithId(const char* value) { SetId(value); return *this;}
88 
94  inline const Aws::String& GetStatus() const{ return m_status; }
95 
101  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
102 
108  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
109 
115  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
116 
122  inline DistributionSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
123 
129  inline DistributionSummary& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
130 
136  inline DistributionSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
137 
141  inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
142 
146  inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
147 
151  inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
152 
156  inline DistributionSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
157 
161  inline DistributionSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(value); return *this;}
162 
167  inline const Aws::String& GetDomainName() const{ return m_domainName; }
168 
173  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
174 
179  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
180 
185  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
186 
191  inline DistributionSummary& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
192 
197  inline DistributionSummary& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
198 
203  inline DistributionSummary& WithDomainName(const char* value) { SetDomainName(value); return *this;}
204 
209  inline const Aliases& GetAliases() const{ return m_aliases; }
210 
215  inline void SetAliases(const Aliases& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
216 
221  inline void SetAliases(Aliases&& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
222 
227  inline DistributionSummary& WithAliases(const Aliases& value) { SetAliases(value); return *this;}
228 
233  inline DistributionSummary& WithAliases(Aliases&& value) { SetAliases(value); return *this;}
234 
238  inline const Origins& GetOrigins() const{ return m_origins; }
239 
243  inline void SetOrigins(const Origins& value) { m_originsHasBeenSet = true; m_origins = value; }
244 
248  inline void SetOrigins(Origins&& value) { m_originsHasBeenSet = true; m_origins = value; }
249 
253  inline DistributionSummary& WithOrigins(const Origins& value) { SetOrigins(value); return *this;}
254 
258  inline DistributionSummary& WithOrigins(Origins&& value) { SetOrigins(value); return *this;}
259 
265  inline const DefaultCacheBehavior& GetDefaultCacheBehavior() const{ return m_defaultCacheBehavior; }
266 
272  inline void SetDefaultCacheBehavior(const DefaultCacheBehavior& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = value; }
273 
279  inline void SetDefaultCacheBehavior(DefaultCacheBehavior&& value) { m_defaultCacheBehaviorHasBeenSet = true; m_defaultCacheBehavior = value; }
280 
286  inline DistributionSummary& WithDefaultCacheBehavior(const DefaultCacheBehavior& value) { SetDefaultCacheBehavior(value); return *this;}
287 
293  inline DistributionSummary& WithDefaultCacheBehavior(DefaultCacheBehavior&& value) { SetDefaultCacheBehavior(value); return *this;}
294 
298  inline const CacheBehaviors& GetCacheBehaviors() const{ return m_cacheBehaviors; }
299 
303  inline void SetCacheBehaviors(const CacheBehaviors& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = value; }
304 
308  inline void SetCacheBehaviors(CacheBehaviors&& value) { m_cacheBehaviorsHasBeenSet = true; m_cacheBehaviors = value; }
309 
313  inline DistributionSummary& WithCacheBehaviors(const CacheBehaviors& value) { SetCacheBehaviors(value); return *this;}
314 
318  inline DistributionSummary& WithCacheBehaviors(CacheBehaviors&& value) { SetCacheBehaviors(value); return *this;}
319 
323  inline const CustomErrorResponses& GetCustomErrorResponses() const{ return m_customErrorResponses; }
324 
328  inline void SetCustomErrorResponses(const CustomErrorResponses& value) { m_customErrorResponsesHasBeenSet = true; m_customErrorResponses = value; }
329 
333  inline void SetCustomErrorResponses(CustomErrorResponses&& value) { m_customErrorResponsesHasBeenSet = true; m_customErrorResponses = value; }
334 
338  inline DistributionSummary& WithCustomErrorResponses(const CustomErrorResponses& value) { SetCustomErrorResponses(value); return *this;}
339 
343  inline DistributionSummary& WithCustomErrorResponses(CustomErrorResponses&& value) { SetCustomErrorResponses(value); return *this;}
344 
348  inline const Aws::String& GetComment() const{ return m_comment; }
349 
353  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
354 
358  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
359 
363  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
364 
368  inline DistributionSummary& WithComment(const Aws::String& value) { SetComment(value); return *this;}
369 
373  inline DistributionSummary& WithComment(Aws::String&& value) { SetComment(value); return *this;}
374 
378  inline DistributionSummary& WithComment(const char* value) { SetComment(value); return *this;}
379 
380 
381  inline const PriceClass& GetPriceClass() const{ return m_priceClass; }
382 
383 
384  inline void SetPriceClass(const PriceClass& value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
385 
386 
387  inline void SetPriceClass(PriceClass&& value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
388 
389 
390  inline DistributionSummary& WithPriceClass(const PriceClass& value) { SetPriceClass(value); return *this;}
391 
392 
393  inline DistributionSummary& WithPriceClass(PriceClass&& value) { SetPriceClass(value); return *this;}
394 
398  inline bool GetEnabled() const{ return m_enabled; }
399 
403  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
404 
408  inline DistributionSummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
409 
410 
411  inline const ViewerCertificate& GetViewerCertificate() const{ return m_viewerCertificate; }
412 
413 
414  inline void SetViewerCertificate(const ViewerCertificate& value) { m_viewerCertificateHasBeenSet = true; m_viewerCertificate = value; }
415 
416 
417  inline void SetViewerCertificate(ViewerCertificate&& value) { m_viewerCertificateHasBeenSet = true; m_viewerCertificate = value; }
418 
419 
420  inline DistributionSummary& WithViewerCertificate(const ViewerCertificate& value) { SetViewerCertificate(value); return *this;}
421 
422 
423  inline DistributionSummary& WithViewerCertificate(ViewerCertificate&& value) { SetViewerCertificate(value); return *this;}
424 
425 
426  inline const Restrictions& GetRestrictions() const{ return m_restrictions; }
427 
428 
429  inline void SetRestrictions(const Restrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
430 
431 
432  inline void SetRestrictions(Restrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
433 
434 
435  inline DistributionSummary& WithRestrictions(const Restrictions& value) { SetRestrictions(value); return *this;}
436 
437 
438  inline DistributionSummary& WithRestrictions(Restrictions&& value) { SetRestrictions(value); return *this;}
439 
443  inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
444 
448  inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
449 
453  inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
454 
458  inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
459 
463  inline DistributionSummary& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
464 
468  inline DistributionSummary& WithWebACLId(Aws::String&& value) { SetWebACLId(value); return *this;}
469 
473  inline DistributionSummary& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
474 
475  private:
476  Aws::String m_id;
477  bool m_idHasBeenSet;
478  Aws::String m_status;
479  bool m_statusHasBeenSet;
480  Aws::Utils::DateTime m_lastModifiedTime;
481  bool m_lastModifiedTimeHasBeenSet;
482  Aws::String m_domainName;
483  bool m_domainNameHasBeenSet;
484  Aliases m_aliases;
485  bool m_aliasesHasBeenSet;
486  Origins m_origins;
487  bool m_originsHasBeenSet;
488  DefaultCacheBehavior m_defaultCacheBehavior;
489  bool m_defaultCacheBehaviorHasBeenSet;
490  CacheBehaviors m_cacheBehaviors;
491  bool m_cacheBehaviorsHasBeenSet;
492  CustomErrorResponses m_customErrorResponses;
493  bool m_customErrorResponsesHasBeenSet;
494  Aws::String m_comment;
495  bool m_commentHasBeenSet;
496  PriceClass m_priceClass;
497  bool m_priceClassHasBeenSet;
498  bool m_enabled;
499  bool m_enabledHasBeenSet;
500  ViewerCertificate m_viewerCertificate;
501  bool m_viewerCertificateHasBeenSet;
502  Restrictions m_restrictions;
503  bool m_restrictionsHasBeenSet;
504  Aws::String m_webACLId;
505  bool m_webACLIdHasBeenSet;
506  };
507 
508 } // namespace Model
509 } // namespace CloudFront
510 } // namespace Aws
DistributionSummary & WithLastModifiedTime(const Aws::Utils::DateTime &value)
DistributionSummary & WithCustomErrorResponses(const CustomErrorResponses &value)
DistributionSummary & WithCustomErrorResponses(CustomErrorResponses &&value)
DistributionSummary & WithComment(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DistributionSummary & WithOrigins(const Origins &value)
DistributionSummary & WithStatus(const char *value)
void SetRestrictions(const Restrictions &value)
const Restrictions & GetRestrictions() const
DistributionSummary & WithPriceClass(const PriceClass &value)
DistributionSummary & WithCacheBehaviors(CacheBehaviors &&value)
DistributionSummary & WithComment(Aws::String &&value)
DistributionSummary & WithAliases(Aliases &&value)
DistributionSummary & WithPriceClass(PriceClass &&value)
void SetCacheBehaviors(const CacheBehaviors &value)
DistributionSummary & WithWebACLId(const Aws::String &value)
DistributionSummary & WithId(const Aws::String &value)
void SetCustomErrorResponses(CustomErrorResponses &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
DistributionSummary & WithStatus(const Aws::String &value)
void SetCacheBehaviors(CacheBehaviors &&value)
DistributionSummary & WithCacheBehaviors(const CacheBehaviors &value)
DistributionSummary & WithEnabled(bool value)
DistributionSummary & WithDomainName(const char *value)
DistributionSummary & WithWebACLId(const char *value)
DistributionSummary & WithDomainName(const Aws::String &value)
#define AWS_CLOUDFRONT_API
void SetWebACLId(const Aws::String &value)
DistributionSummary & WithViewerCertificate(const ViewerCertificate &value)
DistributionSummary & WithAliases(const Aliases &value)
DistributionSummary & WithOrigins(Origins &&value)
DistributionSummary & WithViewerCertificate(ViewerCertificate &&value)
const CustomErrorResponses & GetCustomErrorResponses() const
DistributionSummary & WithRestrictions(Restrictions &&value)
void SetDefaultCacheBehavior(const DefaultCacheBehavior &value)
DistributionSummary & WithLastModifiedTime(Aws::Utils::DateTime &&value)
DistributionSummary & WithId(const char *value)
const ViewerCertificate & GetViewerCertificate() const
void SetDomainName(const Aws::String &value)
DistributionSummary & WithStatus(Aws::String &&value)
DistributionSummary & WithDefaultCacheBehavior(const DefaultCacheBehavior &value)
DistributionSummary & WithDomainName(Aws::String &&value)
DistributionSummary & WithRestrictions(const Restrictions &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DistributionSummary & WithDefaultCacheBehavior(DefaultCacheBehavior &&value)
void SetViewerCertificate(ViewerCertificate &&value)
DistributionSummary & WithId(Aws::String &&value)
const CacheBehaviors & GetCacheBehaviors() const
void SetViewerCertificate(const ViewerCertificate &value)
DistributionSummary & WithComment(const char *value)
const DefaultCacheBehavior & GetDefaultCacheBehavior() const
void SetCustomErrorResponses(const CustomErrorResponses &value)
JSON (JavaScript Object Notation).
DistributionSummary & WithWebACLId(Aws::String &&value)
void SetDefaultCacheBehavior(DefaultCacheBehavior &&value)