AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StreamingLoggingConfig.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 StreamingLoggingConfig() = default;
35 AWS_CLOUDFRONT_API StreamingLoggingConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API StreamingLoggingConfig& 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 StreamingLoggingConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
57
59
63 inline const Aws::String& GetBucket() const { return m_bucket; }
64 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
65 template<typename BucketT = Aws::String>
66 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
67 template<typename BucketT = Aws::String>
68 StreamingLoggingConfig& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
70
72
79 inline const Aws::String& GetPrefix() const { return m_prefix; }
80 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
81 template<typename PrefixT = Aws::String>
82 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
83 template<typename PrefixT = Aws::String>
84 StreamingLoggingConfig& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
86 private:
87
88 bool m_enabled{false};
89 bool m_enabledHasBeenSet = false;
90
91 Aws::String m_bucket;
92 bool m_bucketHasBeenSet = false;
93
94 Aws::String m_prefix;
95 bool m_prefixHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CloudFront
100} // namespace Aws
StreamingLoggingConfig & WithPrefix(PrefixT &&value)
StreamingLoggingConfig & WithEnabled(bool value)
AWS_CLOUDFRONT_API StreamingLoggingConfig()=default
AWS_CLOUDFRONT_API StreamingLoggingConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
StreamingLoggingConfig & WithBucket(BucketT &&value)
AWS_CLOUDFRONT_API StreamingLoggingConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String