AWS SDK for C++  0.14.3
AWS SDK for C++
StreamingDistributionSummary.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
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlNode;
31 } // namespace Xml
32 } // namespace Utils
33 namespace CloudFront
34 {
35 namespace Model
36 {
37 
42  {
43  public:
46  StreamingDistributionSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
49 
53  inline const Aws::String& GetId() const{ return m_id; }
54 
58  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
64 
68  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 
73  inline StreamingDistributionSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
74 
78  inline StreamingDistributionSummary& WithId(Aws::String&& value) { SetId(value); return *this;}
79 
83  inline StreamingDistributionSummary& WithId(const char* value) { SetId(value); return *this;}
84 
90  inline const Aws::String& GetStatus() const{ return m_status; }
91 
97  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
98 
104  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
105 
111  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
112 
118  inline StreamingDistributionSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
119 
125  inline StreamingDistributionSummary& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
126 
132  inline StreamingDistributionSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
133 
137  inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
138 
142  inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
143 
147  inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
148 
152  inline StreamingDistributionSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
153 
157  inline StreamingDistributionSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(value); return *this;}
158 
163  inline const Aws::String& GetDomainName() const{ return m_domainName; }
164 
169  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
170 
175  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
176 
181  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
182 
187  inline StreamingDistributionSummary& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
188 
193  inline StreamingDistributionSummary& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
194 
199  inline StreamingDistributionSummary& WithDomainName(const char* value) { SetDomainName(value); return *this;}
200 
205  inline const S3Origin& GetS3Origin() const{ return m_s3Origin; }
206 
211  inline void SetS3Origin(const S3Origin& value) { m_s3OriginHasBeenSet = true; m_s3Origin = value; }
212 
217  inline void SetS3Origin(S3Origin&& value) { m_s3OriginHasBeenSet = true; m_s3Origin = value; }
218 
223  inline StreamingDistributionSummary& WithS3Origin(const S3Origin& value) { SetS3Origin(value); return *this;}
224 
229  inline StreamingDistributionSummary& WithS3Origin(S3Origin&& value) { SetS3Origin(value); return *this;}
230 
235  inline const Aliases& GetAliases() const{ return m_aliases; }
236 
241  inline void SetAliases(const Aliases& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
242 
247  inline void SetAliases(Aliases&& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
248 
253  inline StreamingDistributionSummary& WithAliases(const Aliases& value) { SetAliases(value); return *this;}
254 
259  inline StreamingDistributionSummary& WithAliases(Aliases&& value) { SetAliases(value); return *this;}
260 
274  inline const TrustedSigners& GetTrustedSigners() const{ return m_trustedSigners; }
275 
289  inline void SetTrustedSigners(const TrustedSigners& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = value; }
290 
304  inline void SetTrustedSigners(TrustedSigners&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = value; }
305 
319  inline StreamingDistributionSummary& WithTrustedSigners(const TrustedSigners& value) { SetTrustedSigners(value); return *this;}
320 
334  inline StreamingDistributionSummary& WithTrustedSigners(TrustedSigners&& value) { SetTrustedSigners(value); return *this;}
335 
339  inline const Aws::String& GetComment() const{ return m_comment; }
340 
344  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
345 
349  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
350 
354  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
355 
359  inline StreamingDistributionSummary& WithComment(const Aws::String& value) { SetComment(value); return *this;}
360 
364  inline StreamingDistributionSummary& WithComment(Aws::String&& value) { SetComment(value); return *this;}
365 
369  inline StreamingDistributionSummary& WithComment(const char* value) { SetComment(value); return *this;}
370 
371 
372  inline const PriceClass& GetPriceClass() const{ return m_priceClass; }
373 
374 
375  inline void SetPriceClass(const PriceClass& value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
376 
377 
378  inline void SetPriceClass(PriceClass&& value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
379 
380 
381  inline StreamingDistributionSummary& WithPriceClass(const PriceClass& value) { SetPriceClass(value); return *this;}
382 
383 
384  inline StreamingDistributionSummary& WithPriceClass(PriceClass&& value) { SetPriceClass(value); return *this;}
385 
389  inline bool GetEnabled() const{ return m_enabled; }
390 
394  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
395 
399  inline StreamingDistributionSummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
400 
401  private:
402  Aws::String m_id;
403  bool m_idHasBeenSet;
404  Aws::String m_status;
405  bool m_statusHasBeenSet;
406  Aws::Utils::DateTime m_lastModifiedTime;
407  bool m_lastModifiedTimeHasBeenSet;
408  Aws::String m_domainName;
409  bool m_domainNameHasBeenSet;
410  S3Origin m_s3Origin;
411  bool m_s3OriginHasBeenSet;
412  Aliases m_aliases;
413  bool m_aliasesHasBeenSet;
414  TrustedSigners m_trustedSigners;
415  bool m_trustedSignersHasBeenSet;
416  Aws::String m_comment;
417  bool m_commentHasBeenSet;
418  PriceClass m_priceClass;
419  bool m_priceClassHasBeenSet;
420  bool m_enabled;
421  bool m_enabledHasBeenSet;
422  };
423 
424 } // namespace Model
425 } // namespace CloudFront
426 } // namespace Aws
StreamingDistributionSummary & WithComment(Aws::String &&value)
StreamingDistributionSummary & WithDomainName(Aws::String &&value)
StreamingDistributionSummary & WithLastModifiedTime(Aws::Utils::DateTime &&value)
StreamingDistributionSummary & WithPriceClass(PriceClass &&value)
StreamingDistributionSummary & WithEnabled(bool value)
StreamingDistributionSummary & WithTrustedSigners(TrustedSigners &&value)
StreamingDistributionSummary & WithDomainName(const char *value)
StreamingDistributionSummary & WithAliases(Aliases &&value)
StreamingDistributionSummary & WithS3Origin(const S3Origin &value)
StreamingDistributionSummary & WithComment(const Aws::String &value)
StreamingDistributionSummary & WithLastModifiedTime(const Aws::Utils::DateTime &value)
StreamingDistributionSummary & WithStatus(Aws::String &&value)
StreamingDistributionSummary & WithId(Aws::String &&value)
StreamingDistributionSummary & WithId(const char *value)
#define AWS_CLOUDFRONT_API
StreamingDistributionSummary & WithTrustedSigners(const TrustedSigners &value)
StreamingDistributionSummary & WithComment(const char *value)
StreamingDistributionSummary & WithDomainName(const Aws::String &value)
StreamingDistributionSummary & WithS3Origin(S3Origin &&value)
StreamingDistributionSummary & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StreamingDistributionSummary & WithStatus(const char *value)
StreamingDistributionSummary & WithStatus(const Aws::String &value)
StreamingDistributionSummary & WithPriceClass(const PriceClass &value)
StreamingDistributionSummary & WithAliases(const Aliases &value)
JSON (JavaScript Object Notation).