AWS SDK for C++  0.14.3
AWS SDK for C++
StreamingLoggingConfig.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:
42  StreamingLoggingConfig& 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 StreamingLoggingConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
75 
80  inline const Aws::String& GetBucket() const{ return m_bucket; }
81 
86  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
87 
92  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
93 
98  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
99 
104  inline StreamingLoggingConfig& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
105 
110  inline StreamingLoggingConfig& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
111 
116  inline StreamingLoggingConfig& WithBucket(const char* value) { SetBucket(value); return *this;}
117 
124  inline const Aws::String& GetPrefix() const{ return m_prefix; }
125 
132  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
133 
140  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = value; }
141 
148  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
149 
156  inline StreamingLoggingConfig& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
157 
164  inline StreamingLoggingConfig& WithPrefix(Aws::String&& value) { SetPrefix(value); return *this;}
165 
172  inline StreamingLoggingConfig& WithPrefix(const char* value) { SetPrefix(value); return *this;}
173 
174  private:
175  bool m_enabled;
176  bool m_enabledHasBeenSet;
177  Aws::String m_bucket;
178  bool m_bucketHasBeenSet;
179  Aws::String m_prefix;
180  bool m_prefixHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace CloudFront
185 } // namespace Aws
StreamingLoggingConfig & WithBucket(const char *value)
StreamingLoggingConfig & WithPrefix(Aws::String &&value)
StreamingLoggingConfig & WithEnabled(bool value)
StreamingLoggingConfig & WithPrefix(const Aws::String &value)
StreamingLoggingConfig & WithPrefix(const char *value)
StreamingLoggingConfig & WithBucket(Aws::String &&value)
#define AWS_CLOUDFRONT_API
StreamingLoggingConfig & WithBucket(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).