AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace CloudFront {
19namespace Model {
20
37 public:
38 AWS_CLOUDFRONT_API LoggingConfig() = default;
39 AWS_CLOUDFRONT_API LoggingConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDFRONT_API LoggingConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
45
55 inline bool GetEnabled() const { return m_enabled; }
56 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
57 inline void SetEnabled(bool value) {
58 m_enabledHasBeenSet = true;
59 m_enabled = value;
60 }
61 inline LoggingConfig& WithEnabled(bool value) {
62 SetEnabled(value);
63 return *this;
64 }
66
68
77 inline bool GetIncludeCookies() const { return m_includeCookies; }
78 inline bool IncludeCookiesHasBeenSet() const { return m_includeCookiesHasBeenSet; }
79 inline void SetIncludeCookies(bool value) {
80 m_includeCookiesHasBeenSet = true;
81 m_includeCookies = value;
82 }
83 inline LoggingConfig& WithIncludeCookies(bool value) {
84 SetIncludeCookies(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetBucket() const { return m_bucket; }
95 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
96 template <typename BucketT = Aws::String>
97 void SetBucket(BucketT&& value) {
98 m_bucketHasBeenSet = true;
99 m_bucket = std::forward<BucketT>(value);
100 }
101 template <typename BucketT = Aws::String>
102 LoggingConfig& WithBucket(BucketT&& value) {
103 SetBucket(std::forward<BucketT>(value));
104 return *this;
105 }
107
109
116 inline const Aws::String& GetPrefix() const { return m_prefix; }
117 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
118 template <typename PrefixT = Aws::String>
119 void SetPrefix(PrefixT&& value) {
120 m_prefixHasBeenSet = true;
121 m_prefix = std::forward<PrefixT>(value);
122 }
123 template <typename PrefixT = Aws::String>
124 LoggingConfig& WithPrefix(PrefixT&& value) {
125 SetPrefix(std::forward<PrefixT>(value));
126 return *this;
127 }
129 private:
130 bool m_enabled{false};
131
132 bool m_includeCookies{false};
133
134 Aws::String m_bucket;
135
136 Aws::String m_prefix;
137 bool m_enabledHasBeenSet = false;
138 bool m_includeCookiesHasBeenSet = false;
139 bool m_bucketHasBeenSet = false;
140 bool m_prefixHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace CloudFront
145} // namespace Aws
const Aws::String & GetBucket() const
const Aws::String & GetPrefix() const
AWS_CLOUDFRONT_API LoggingConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoggingConfig & WithBucket(BucketT &&value)
LoggingConfig & WithEnabled(bool value)
LoggingConfig & WithIncludeCookies(bool value)
AWS_CLOUDFRONT_API LoggingConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
LoggingConfig & WithPrefix(PrefixT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API LoggingConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String