AWS SDK for C++  0.14.3
AWS SDK for C++
StreamingDistributionConfig.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  StreamingDistributionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
49 
62  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
63 
76  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
77 
90  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
91 
104  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
105 
118  inline StreamingDistributionConfig& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
119 
132  inline StreamingDistributionConfig& WithCallerReference(Aws::String&& value) { SetCallerReference(value); return *this;}
133 
146  inline StreamingDistributionConfig& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
147 
152  inline const S3Origin& GetS3Origin() const{ return m_s3Origin; }
153 
158  inline void SetS3Origin(const S3Origin& value) { m_s3OriginHasBeenSet = true; m_s3Origin = value; }
159 
164  inline void SetS3Origin(S3Origin&& value) { m_s3OriginHasBeenSet = true; m_s3Origin = value; }
165 
170  inline StreamingDistributionConfig& WithS3Origin(const S3Origin& value) { SetS3Origin(value); return *this;}
171 
176  inline StreamingDistributionConfig& WithS3Origin(S3Origin&& value) { SetS3Origin(value); return *this;}
177 
182  inline const Aliases& GetAliases() const{ return m_aliases; }
183 
188  inline void SetAliases(const Aliases& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
189 
194  inline void SetAliases(Aliases&& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
195 
200  inline StreamingDistributionConfig& WithAliases(const Aliases& value) { SetAliases(value); return *this;}
201 
206  inline StreamingDistributionConfig& WithAliases(Aliases&& value) { SetAliases(value); return *this;}
207 
211  inline const Aws::String& GetComment() const{ return m_comment; }
212 
216  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
217 
221  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
222 
226  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
227 
231  inline StreamingDistributionConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
232 
236  inline StreamingDistributionConfig& WithComment(Aws::String&& value) { SetComment(value); return *this;}
237 
241  inline StreamingDistributionConfig& WithComment(const char* value) { SetComment(value); return *this;}
242 
247  inline const StreamingLoggingConfig& GetLogging() const{ return m_logging; }
248 
253  inline void SetLogging(const StreamingLoggingConfig& value) { m_loggingHasBeenSet = true; m_logging = value; }
254 
259  inline void SetLogging(StreamingLoggingConfig&& value) { m_loggingHasBeenSet = true; m_logging = value; }
260 
265  inline StreamingDistributionConfig& WithLogging(const StreamingLoggingConfig& value) { SetLogging(value); return *this;}
266 
271  inline StreamingDistributionConfig& WithLogging(StreamingLoggingConfig&& value) { SetLogging(value); return *this;}
272 
286  inline const TrustedSigners& GetTrustedSigners() const{ return m_trustedSigners; }
287 
301  inline void SetTrustedSigners(const TrustedSigners& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = value; }
302 
316  inline void SetTrustedSigners(TrustedSigners&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = value; }
317 
331  inline StreamingDistributionConfig& WithTrustedSigners(const TrustedSigners& value) { SetTrustedSigners(value); return *this;}
332 
346  inline StreamingDistributionConfig& WithTrustedSigners(TrustedSigners&& value) { SetTrustedSigners(value); return *this;}
347 
352  inline const PriceClass& GetPriceClass() const{ return m_priceClass; }
353 
358  inline void SetPriceClass(const PriceClass& value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
359 
364  inline void SetPriceClass(PriceClass&& value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
365 
370  inline StreamingDistributionConfig& WithPriceClass(const PriceClass& value) { SetPriceClass(value); return *this;}
371 
376  inline StreamingDistributionConfig& WithPriceClass(PriceClass&& value) { SetPriceClass(value); return *this;}
377 
382  inline bool GetEnabled() const{ return m_enabled; }
383 
388  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
389 
394  inline StreamingDistributionConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
395 
396  private:
397  Aws::String m_callerReference;
398  bool m_callerReferenceHasBeenSet;
399  S3Origin m_s3Origin;
400  bool m_s3OriginHasBeenSet;
401  Aliases m_aliases;
402  bool m_aliasesHasBeenSet;
403  Aws::String m_comment;
404  bool m_commentHasBeenSet;
405  StreamingLoggingConfig m_logging;
406  bool m_loggingHasBeenSet;
407  TrustedSigners m_trustedSigners;
408  bool m_trustedSignersHasBeenSet;
409  PriceClass m_priceClass;
410  bool m_priceClassHasBeenSet;
411  bool m_enabled;
412  bool m_enabledHasBeenSet;
413  };
414 
415 } // namespace Model
416 } // namespace CloudFront
417 } // namespace Aws
StreamingDistributionConfig & WithLogging(StreamingLoggingConfig &&value)
StreamingDistributionConfig & WithPriceClass(const PriceClass &value)
StreamingDistributionConfig & WithLogging(const StreamingLoggingConfig &value)
StreamingDistributionConfig & WithCallerReference(const Aws::String &value)
StreamingDistributionConfig & WithEnabled(bool value)
StreamingDistributionConfig & WithTrustedSigners(TrustedSigners &&value)
StreamingDistributionConfig & WithPriceClass(PriceClass &&value)
StreamingDistributionConfig & WithAliases(const Aliases &value)
#define AWS_CLOUDFRONT_API
StreamingDistributionConfig & WithComment(const Aws::String &value)
StreamingDistributionConfig & WithCallerReference(const char *value)
StreamingDistributionConfig & WithTrustedSigners(const TrustedSigners &value)
StreamingDistributionConfig & WithAliases(Aliases &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StreamingDistributionConfig & WithCallerReference(Aws::String &&value)
StreamingDistributionConfig & WithS3Origin(const S3Origin &value)
StreamingDistributionConfig & WithComment(const char *value)
void SetLogging(const StreamingLoggingConfig &value)
StreamingDistributionConfig & WithS3Origin(S3Origin &&value)
StreamingDistributionConfig & WithComment(Aws::String &&value)
JSON (JavaScript Object Notation).