AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StreamingDistributionConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/Aliases.h>
9#include <aws/cloudfront/model/PriceClass.h>
10#include <aws/cloudfront/model/S3Origin.h>
11#include <aws/cloudfront/model/StreamingLoggingConfig.h>
12#include <aws/cloudfront/model/TrustedSigners.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFront {
24namespace Model {
25
33 public:
34 AWS_CLOUDFRONT_API StreamingDistributionConfig() = default;
35 AWS_CLOUDFRONT_API StreamingDistributionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
50 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
51 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
52 template <typename CallerReferenceT = Aws::String>
53 void SetCallerReference(CallerReferenceT&& value) {
54 m_callerReferenceHasBeenSet = true;
55 m_callerReference = std::forward<CallerReferenceT>(value);
56 }
57 template <typename CallerReferenceT = Aws::String>
59 SetCallerReference(std::forward<CallerReferenceT>(value));
60 return *this;
61 }
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) {
73 m_s3OriginHasBeenSet = true;
74 m_s3Origin = std::forward<S3OriginT>(value);
75 }
76 template <typename S3OriginT = S3Origin>
78 SetS3Origin(std::forward<S3OriginT>(value));
79 return *this;
80 }
82
84
88 inline const Aliases& GetAliases() const { return m_aliases; }
89 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
90 template <typename AliasesT = Aliases>
91 void SetAliases(AliasesT&& value) {
92 m_aliasesHasBeenSet = true;
93 m_aliases = std::forward<AliasesT>(value);
94 }
95 template <typename AliasesT = Aliases>
97 SetAliases(std::forward<AliasesT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetComment() const { return m_comment; }
107 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
108 template <typename CommentT = Aws::String>
109 void SetComment(CommentT&& value) {
110 m_commentHasBeenSet = true;
111 m_comment = std::forward<CommentT>(value);
112 }
113 template <typename CommentT = Aws::String>
115 SetComment(std::forward<CommentT>(value));
116 return *this;
117 }
119
121
125 inline const StreamingLoggingConfig& GetLogging() const { return m_logging; }
126 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
127 template <typename LoggingT = StreamingLoggingConfig>
128 void SetLogging(LoggingT&& value) {
129 m_loggingHasBeenSet = true;
130 m_logging = std::forward<LoggingT>(value);
131 }
132 template <typename LoggingT = StreamingLoggingConfig>
134 SetLogging(std::forward<LoggingT>(value));
135 return *this;
136 }
138
140
150 inline const TrustedSigners& GetTrustedSigners() const { return m_trustedSigners; }
151 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
152 template <typename TrustedSignersT = TrustedSigners>
153 void SetTrustedSigners(TrustedSignersT&& value) {
154 m_trustedSignersHasBeenSet = true;
155 m_trustedSigners = std::forward<TrustedSignersT>(value);
156 }
157 template <typename TrustedSignersT = TrustedSigners>
159 SetTrustedSigners(std::forward<TrustedSignersT>(value));
160 return *this;
161 }
163
165
169 inline PriceClass GetPriceClass() const { return m_priceClass; }
170 inline bool PriceClassHasBeenSet() const { return m_priceClassHasBeenSet; }
171 inline void SetPriceClass(PriceClass value) {
172 m_priceClassHasBeenSet = true;
173 m_priceClass = value;
174 }
176 SetPriceClass(value);
177 return *this;
178 }
180
182
186 inline bool GetEnabled() const { return m_enabled; }
187 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
188 inline void SetEnabled(bool value) {
189 m_enabledHasBeenSet = true;
190 m_enabled = value;
191 }
193 SetEnabled(value);
194 return *this;
195 }
197 private:
198 Aws::String m_callerReference;
199
200 S3Origin m_s3Origin;
201
202 Aliases m_aliases;
203
204 Aws::String m_comment;
205
206 StreamingLoggingConfig m_logging;
207
208 TrustedSigners m_trustedSigners;
209
210 PriceClass m_priceClass{PriceClass::NOT_SET};
211
212 bool m_enabled{false};
213 bool m_callerReferenceHasBeenSet = false;
214 bool m_s3OriginHasBeenSet = false;
215 bool m_aliasesHasBeenSet = false;
216 bool m_commentHasBeenSet = false;
217 bool m_loggingHasBeenSet = false;
218 bool m_trustedSignersHasBeenSet = false;
219 bool m_priceClassHasBeenSet = false;
220 bool m_enabledHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace CloudFront
225} // 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