AWS SDK for C++  1.9.16
AWS SDK for C++
LoggingConfig.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
51  inline bool GetEnabled() const{ return m_enabled; }
52 
63  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
64 
75  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
76 
87  inline LoggingConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
88 
89 
99  inline bool GetIncludeCookies() const{ return m_includeCookies; }
100 
110  inline bool IncludeCookiesHasBeenSet() const { return m_includeCookiesHasBeenSet; }
111 
121  inline void SetIncludeCookies(bool value) { m_includeCookiesHasBeenSet = true; m_includeCookies = value; }
122 
132  inline LoggingConfig& WithIncludeCookies(bool value) { SetIncludeCookies(value); return *this;}
133 
134 
139  inline const Aws::String& GetBucket() const{ return m_bucket; }
140 
145  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
146 
151  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
152 
157  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
158 
163  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
164 
169  inline LoggingConfig& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
170 
175  inline LoggingConfig& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
176 
181  inline LoggingConfig& WithBucket(const char* value) { SetBucket(value); return *this;}
182 
183 
191  inline const Aws::String& GetPrefix() const{ return m_prefix; }
192 
200  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
201 
209  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
210 
218  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
219 
227  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
228 
236  inline LoggingConfig& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
237 
245  inline LoggingConfig& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
246 
254  inline LoggingConfig& WithPrefix(const char* value) { SetPrefix(value); return *this;}
255 
256  private:
257 
258  bool m_enabled;
259  bool m_enabledHasBeenSet;
260 
261  bool m_includeCookies;
262  bool m_includeCookiesHasBeenSet;
263 
264  Aws::String m_bucket;
265  bool m_bucketHasBeenSet;
266 
267  Aws::String m_prefix;
268  bool m_prefixHasBeenSet;
269  };
270 
271 } // namespace Model
272 } // namespace CloudFront
273 } // namespace Aws
Aws::CloudFront::Model::LoggingConfig::GetIncludeCookies
bool GetIncludeCookies() const
Definition: LoggingConfig.h:99
Aws::CloudFront::Model::LoggingConfig::LoggingConfig
LoggingConfig()
Aws::CloudFront::Model::LoggingConfig::GetBucket
const Aws::String & GetBucket() const
Definition: LoggingConfig.h:139
Aws::CloudFront::Model::LoggingConfig::operator=
LoggingConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::LoggingConfig::WithPrefix
LoggingConfig & WithPrefix(const char *value)
Definition: LoggingConfig.h:254
Aws::CloudFront::Model::LoggingConfig::WithPrefix
LoggingConfig & WithPrefix(Aws::String &&value)
Definition: LoggingConfig.h:245
Aws::CloudFront::Model::LoggingConfig::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: LoggingConfig.h:145
Aws::CloudFront::Model::LoggingConfig
Definition: LoggingConfig.h:32
Aws::CloudFront::Model::LoggingConfig::WithPrefix
LoggingConfig & WithPrefix(const Aws::String &value)
Definition: LoggingConfig.h:236
Aws::CloudFront::Model::LoggingConfig::WithEnabled
LoggingConfig & WithEnabled(bool value)
Definition: LoggingConfig.h:87
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::LoggingConfig::IncludeCookiesHasBeenSet
bool IncludeCookiesHasBeenSet() const
Definition: LoggingConfig.h:110
Aws::CloudFront::Model::LoggingConfig::WithBucket
LoggingConfig & WithBucket(Aws::String &&value)
Definition: LoggingConfig.h:175
Aws::CloudFront::Model::LoggingConfig::WithBucket
LoggingConfig & WithBucket(const Aws::String &value)
Definition: LoggingConfig.h:169
AWSString.h
Aws::CloudFront::Model::LoggingConfig::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: LoggingConfig.h:218
Aws::CloudFront::Model::LoggingConfig::WithIncludeCookies
LoggingConfig & WithIncludeCookies(bool value)
Definition: LoggingConfig.h:132
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::LoggingConfig::SetIncludeCookies
void SetIncludeCookies(bool value)
Definition: LoggingConfig.h:121
Aws::CloudFront::Model::LoggingConfig::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: LoggingConfig.h:200
CloudFront_EXPORTS.h
Aws::CloudFront::Model::LoggingConfig::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: LoggingConfig.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::LoggingConfig::SetBucket
void SetBucket(const Aws::String &value)
Definition: LoggingConfig.h:151
Aws::CloudFront::Model::LoggingConfig::WithBucket
LoggingConfig & WithBucket(const char *value)
Definition: LoggingConfig.h:181
Aws::CloudFront::Model::LoggingConfig::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: LoggingConfig.h:209
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::LoggingConfig::SetPrefix
void SetPrefix(const char *value)
Definition: LoggingConfig.h:227
Aws::CloudFront::Model::LoggingConfig::GetEnabled
bool GetEnabled() const
Definition: LoggingConfig.h:51
Aws::CloudFront::Model::LoggingConfig::SetEnabled
void SetEnabled(bool value)
Definition: LoggingConfig.h:75
Aws::CloudFront::Model::LoggingConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::LoggingConfig::SetBucket
void SetBucket(Aws::String &&value)
Definition: LoggingConfig.h:157
Aws::CloudFront::Model::LoggingConfig::LoggingConfig
LoggingConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::LoggingConfig::SetBucket
void SetBucket(const char *value)
Definition: LoggingConfig.h:163
Aws::CloudFront::Model::LoggingConfig::GetPrefix
const Aws::String & GetPrefix() const
Definition: LoggingConfig.h:191