AWS SDK for C++  1.9.20
AWS SDK for C++
StreamingLoggingConfig.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 StreamingLoggingConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
88 
89 
94  inline const Aws::String& GetBucket() const{ return m_bucket; }
95 
100  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
101 
106  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
107 
112  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
113 
118  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
119 
124  inline StreamingLoggingConfig& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
125 
130  inline StreamingLoggingConfig& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
131 
136  inline StreamingLoggingConfig& WithBucket(const char* value) { SetBucket(value); return *this;}
137 
138 
146  inline const Aws::String& GetPrefix() const{ return m_prefix; }
147 
155  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
156 
164  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
165 
173  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
174 
182  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
183 
191  inline StreamingLoggingConfig& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
192 
200  inline StreamingLoggingConfig& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
201 
209  inline StreamingLoggingConfig& WithPrefix(const char* value) { SetPrefix(value); return *this;}
210 
211  private:
212 
213  bool m_enabled;
214  bool m_enabledHasBeenSet;
215 
216  Aws::String m_bucket;
217  bool m_bucketHasBeenSet;
218 
219  Aws::String m_prefix;
220  bool m_prefixHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace CloudFront
225 } // namespace Aws
Aws::CloudFront::Model::StreamingLoggingConfig::WithEnabled
StreamingLoggingConfig & WithEnabled(bool value)
Definition: StreamingLoggingConfig.h:87
Aws::CloudFront::Model::StreamingLoggingConfig::SetBucket
void SetBucket(Aws::String &&value)
Definition: StreamingLoggingConfig.h:112
Aws::CloudFront::Model::StreamingLoggingConfig::GetPrefix
const Aws::String & GetPrefix() const
Definition: StreamingLoggingConfig.h:146
Aws::CloudFront::Model::StreamingLoggingConfig::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: StreamingLoggingConfig.h:63
Aws::CloudFront::Model::StreamingLoggingConfig::WithBucket
StreamingLoggingConfig & WithBucket(const Aws::String &value)
Definition: StreamingLoggingConfig.h:124
Aws::CloudFront::Model::StreamingLoggingConfig::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: StreamingLoggingConfig.h:100
Aws::CloudFront::Model::StreamingLoggingConfig::SetEnabled
void SetEnabled(bool value)
Definition: StreamingLoggingConfig.h:75
Aws::CloudFront::Model::StreamingLoggingConfig::WithPrefix
StreamingLoggingConfig & WithPrefix(const Aws::String &value)
Definition: StreamingLoggingConfig.h:191
Aws::CloudFront::Model::StreamingLoggingConfig::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: StreamingLoggingConfig.h:173
Aws::CloudFront::Model::StreamingLoggingConfig
Definition: StreamingLoggingConfig.h:32
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::StreamingLoggingConfig::WithBucket
StreamingLoggingConfig & WithBucket(const char *value)
Definition: StreamingLoggingConfig.h:136
Aws::CloudFront::Model::StreamingLoggingConfig::WithPrefix
StreamingLoggingConfig & WithPrefix(Aws::String &&value)
Definition: StreamingLoggingConfig.h:200
Aws::CloudFront::Model::StreamingLoggingConfig::SetBucket
void SetBucket(const char *value)
Definition: StreamingLoggingConfig.h:118
Aws::CloudFront::Model::StreamingLoggingConfig::GetBucket
const Aws::String & GetBucket() const
Definition: StreamingLoggingConfig.h:94
Aws::CloudFront::Model::StreamingLoggingConfig::StreamingLoggingConfig
StreamingLoggingConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::StreamingLoggingConfig::operator=
StreamingLoggingConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::StreamingLoggingConfig::WithBucket
StreamingLoggingConfig & WithBucket(Aws::String &&value)
Definition: StreamingLoggingConfig.h:130
Aws::CloudFront::Model::StreamingLoggingConfig::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: StreamingLoggingConfig.h:164
Aws::CloudFront::Model::StreamingLoggingConfig::SetBucket
void SetBucket(const Aws::String &value)
Definition: StreamingLoggingConfig.h:106
Aws::CloudFront::Model::StreamingLoggingConfig::GetEnabled
bool GetEnabled() const
Definition: StreamingLoggingConfig.h:51
Aws::CloudFront::Model::StreamingLoggingConfig::StreamingLoggingConfig
StreamingLoggingConfig()
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::StreamingLoggingConfig::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: StreamingLoggingConfig.h:155
Aws::CloudFront::Model::StreamingLoggingConfig::WithPrefix
StreamingLoggingConfig & WithPrefix(const char *value)
Definition: StreamingLoggingConfig.h:209
Aws::CloudFront::Model::StreamingLoggingConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::StreamingLoggingConfig::SetPrefix
void SetPrefix(const char *value)
Definition: StreamingLoggingConfig.h:182