AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
41 {
42 public:
43 AWS_CLOUDFRONT_API LoggingConfig() = default;
44 AWS_CLOUDFRONT_API LoggingConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_CLOUDFRONT_API LoggingConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48
49
51
61 inline bool GetEnabled() const { return m_enabled; }
62 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
63 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
64 inline LoggingConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
66
68
77 inline bool GetIncludeCookies() const { return m_includeCookies; }
78 inline bool IncludeCookiesHasBeenSet() const { return m_includeCookiesHasBeenSet; }
79 inline void SetIncludeCookies(bool value) { m_includeCookiesHasBeenSet = true; m_includeCookies = value; }
80 inline LoggingConfig& WithIncludeCookies(bool value) { SetIncludeCookies(value); return *this;}
82
84
88 inline const Aws::String& GetBucket() const { return m_bucket; }
89 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
90 template<typename BucketT = Aws::String>
91 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
92 template<typename BucketT = Aws::String>
93 LoggingConfig& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
95
97
104 inline const Aws::String& GetPrefix() const { return m_prefix; }
105 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
106 template<typename PrefixT = Aws::String>
107 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
108 template<typename PrefixT = Aws::String>
109 LoggingConfig& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
111 private:
112
113 bool m_enabled{false};
114 bool m_enabledHasBeenSet = false;
115
116 bool m_includeCookies{false};
117 bool m_includeCookiesHasBeenSet = false;
118
119 Aws::String m_bucket;
120 bool m_bucketHasBeenSet = false;
121
122 Aws::String m_prefix;
123 bool m_prefixHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CloudFront
128} // 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