AWS SDK for C++  0.12.9
AWS SDK for C++
LoggingConfig.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace CloudFront
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  LoggingConfig();
42  LoggingConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
54  inline bool GetEnabled() const{ return m_enabled; }
55 
64  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
65 
74  inline LoggingConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
75 
84  inline bool GetIncludeCookies() const{ return m_includeCookies; }
85 
94  inline void SetIncludeCookies(bool value) { m_includeCookiesHasBeenSet = true; m_includeCookies = value; }
95 
104  inline LoggingConfig& WithIncludeCookies(bool value) { SetIncludeCookies(value); return *this;}
105 
110  inline const Aws::String& GetBucket() const{ return m_bucket; }
111 
116  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
117 
122  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
123 
128  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
129 
134  inline LoggingConfig& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
135 
140  inline LoggingConfig& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
141 
146  inline LoggingConfig& WithBucket(const char* value) { SetBucket(value); return *this;}
147 
154  inline const Aws::String& GetPrefix() const{ return m_prefix; }
155 
162  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
163 
170  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = value; }
171 
178  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
179 
186  inline LoggingConfig& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
187 
194  inline LoggingConfig& WithPrefix(Aws::String&& value) { SetPrefix(value); return *this;}
195 
202  inline LoggingConfig& WithPrefix(const char* value) { SetPrefix(value); return *this;}
203 
204  private:
205  bool m_enabled;
206  bool m_enabledHasBeenSet;
207  bool m_includeCookies;
208  bool m_includeCookiesHasBeenSet;
209  Aws::String m_bucket;
210  bool m_bucketHasBeenSet;
211  Aws::String m_prefix;
212  bool m_prefixHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace CloudFront
217 } // namespace Aws
LoggingConfig & WithBucket(const char *value)
void SetPrefix(const Aws::String &value)
const Aws::String & GetBucket() const
LoggingConfig & WithPrefix(const char *value)
LoggingConfig & WithBucket(const Aws::String &value)
LoggingConfig & WithPrefix(const Aws::String &value)
void SetBucket(const Aws::String &value)
LoggingConfig & WithEnabled(bool value)
Definition: LoggingConfig.h:74
void SetBucket(const char *value)
#define AWS_CLOUDFRONT_API
void SetPrefix(const char *value)
LoggingConfig & WithPrefix(Aws::String &&value)
void SetPrefix(Aws::String &&value)
LoggingConfig & WithIncludeCookies(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetBucket(Aws::String &&value)
LoggingConfig & WithBucket(Aws::String &&value)
JSON (JavaScript Object Notation).
const Aws::String & GetPrefix() const