AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StreamingDistributionConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/S3Origin.h>
10#include <aws/cloudfront/model/Aliases.h>
11#include <aws/cloudfront/model/StreamingLoggingConfig.h>
12#include <aws/cloudfront/model/TrustedSigners.h>
13#include <aws/cloudfront/model/PriceClass.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFront
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CLOUDFRONT_API StreamingDistributionConfig() = default;
40 AWS_CLOUDFRONT_API StreamingDistributionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
56 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
57 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
58 template<typename CallerReferenceT = Aws::String>
59 void SetCallerReference(CallerReferenceT&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::forward<CallerReferenceT>(value); }
60 template<typename CallerReferenceT = Aws::String>
61 StreamingDistributionConfig& WithCallerReference(CallerReferenceT&& value) { SetCallerReference(std::forward<CallerReferenceT>(value)); return *this;}
63
65
69 inline const S3Origin& GetS3Origin() const { return m_s3Origin; }
70 inline bool S3OriginHasBeenSet() const { return m_s3OriginHasBeenSet; }
71 template<typename S3OriginT = S3Origin>
72 void SetS3Origin(S3OriginT&& value) { m_s3OriginHasBeenSet = true; m_s3Origin = std::forward<S3OriginT>(value); }
73 template<typename S3OriginT = S3Origin>
74 StreamingDistributionConfig& WithS3Origin(S3OriginT&& value) { SetS3Origin(std::forward<S3OriginT>(value)); return *this;}
76
78
82 inline const Aliases& GetAliases() const { return m_aliases; }
83 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
84 template<typename AliasesT = Aliases>
85 void SetAliases(AliasesT&& value) { m_aliasesHasBeenSet = true; m_aliases = std::forward<AliasesT>(value); }
86 template<typename AliasesT = Aliases>
87 StreamingDistributionConfig& WithAliases(AliasesT&& value) { SetAliases(std::forward<AliasesT>(value)); return *this;}
89
91
94 inline const Aws::String& GetComment() const { return m_comment; }
95 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
96 template<typename CommentT = Aws::String>
97 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
98 template<typename CommentT = Aws::String>
99 StreamingDistributionConfig& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
101
103
107 inline const StreamingLoggingConfig& GetLogging() const { return m_logging; }
108 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
109 template<typename LoggingT = StreamingLoggingConfig>
110 void SetLogging(LoggingT&& value) { m_loggingHasBeenSet = true; m_logging = std::forward<LoggingT>(value); }
111 template<typename LoggingT = StreamingLoggingConfig>
112 StreamingDistributionConfig& WithLogging(LoggingT&& value) { SetLogging(std::forward<LoggingT>(value)); return *this;}
114
116
126 inline const TrustedSigners& GetTrustedSigners() const { return m_trustedSigners; }
127 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
128 template<typename TrustedSignersT = TrustedSigners>
129 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
130 template<typename TrustedSignersT = TrustedSigners>
131 StreamingDistributionConfig& WithTrustedSigners(TrustedSignersT&& value) { SetTrustedSigners(std::forward<TrustedSignersT>(value)); return *this;}
133
135
139 inline PriceClass GetPriceClass() const { return m_priceClass; }
140 inline bool PriceClassHasBeenSet() const { return m_priceClassHasBeenSet; }
141 inline void SetPriceClass(PriceClass value) { m_priceClassHasBeenSet = true; m_priceClass = value; }
144
146
150 inline bool GetEnabled() const { return m_enabled; }
151 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
152 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
153 inline StreamingDistributionConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
155 private:
156
157 Aws::String m_callerReference;
158 bool m_callerReferenceHasBeenSet = false;
159
160 S3Origin m_s3Origin;
161 bool m_s3OriginHasBeenSet = false;
162
163 Aliases m_aliases;
164 bool m_aliasesHasBeenSet = false;
165
166 Aws::String m_comment;
167 bool m_commentHasBeenSet = false;
168
169 StreamingLoggingConfig m_logging;
170 bool m_loggingHasBeenSet = false;
171
172 TrustedSigners m_trustedSigners;
173 bool m_trustedSignersHasBeenSet = false;
174
175 PriceClass m_priceClass{PriceClass::NOT_SET};
176 bool m_priceClassHasBeenSet = false;
177
178 bool m_enabled{false};
179 bool m_enabledHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace CloudFront
184} // namespace Aws
StreamingDistributionConfig & WithAliases(AliasesT &&value)
AWS_CLOUDFRONT_API StreamingDistributionConfig()=default
StreamingDistributionConfig & WithComment(CommentT &&value)
StreamingDistributionConfig & WithCallerReference(CallerReferenceT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
StreamingDistributionConfig & WithS3Origin(S3OriginT &&value)
StreamingDistributionConfig & WithLogging(LoggingT &&value)
StreamingDistributionConfig & WithTrustedSigners(TrustedSignersT &&value)
AWS_CLOUDFRONT_API StreamingDistributionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StreamingDistributionConfig & WithPriceClass(PriceClass value)
AWS_CLOUDFRONT_API StreamingDistributionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String