AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoggingConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_CLOUDFRONT_API LoggingConfig();
35 AWS_CLOUDFRONT_API LoggingConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API LoggingConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
52 inline bool GetEnabled() const{ return m_enabled; }
53 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
54 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
55 inline LoggingConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
57
59
68 inline bool GetIncludeCookies() const{ return m_includeCookies; }
69 inline bool IncludeCookiesHasBeenSet() const { return m_includeCookiesHasBeenSet; }
70 inline void SetIncludeCookies(bool value) { m_includeCookiesHasBeenSet = true; m_includeCookies = value; }
71 inline LoggingConfig& WithIncludeCookies(bool value) { SetIncludeCookies(value); return *this;}
73
75
79 inline const Aws::String& GetBucket() const{ return m_bucket; }
80 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
81 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
82 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
83 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
84 inline LoggingConfig& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
85 inline LoggingConfig& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
86 inline LoggingConfig& WithBucket(const char* value) { SetBucket(value); return *this;}
88
90
97 inline const Aws::String& GetPrefix() const{ return m_prefix; }
98 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
99 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
100 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
101 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
102 inline LoggingConfig& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
103 inline LoggingConfig& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
104 inline LoggingConfig& WithPrefix(const char* value) { SetPrefix(value); return *this;}
106 private:
107
108 bool m_enabled;
109 bool m_enabledHasBeenSet = false;
110
111 bool m_includeCookies;
112 bool m_includeCookiesHasBeenSet = false;
113
114 Aws::String m_bucket;
115 bool m_bucketHasBeenSet = false;
116
117 Aws::String m_prefix;
118 bool m_prefixHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CloudFront
123} // namespace Aws
void SetPrefix(Aws::String &&value)
const Aws::String & GetBucket() const
LoggingConfig & WithPrefix(Aws::String &&value)
const Aws::String & GetPrefix() const
LoggingConfig & WithBucket(const char *value)
void SetBucket(Aws::String &&value)
AWS_CLOUDFRONT_API LoggingConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoggingConfig & WithEnabled(bool value)
LoggingConfig & WithBucket(const Aws::String &value)
LoggingConfig & WithBucket(Aws::String &&value)
LoggingConfig & WithIncludeCookies(bool value)
AWS_CLOUDFRONT_API LoggingConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
LoggingConfig & WithPrefix(const char *value)
LoggingConfig & WithPrefix(const Aws::String &value)
void SetPrefix(const Aws::String &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetBucket(const char *value)
void SetBucket(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String