AWS SDK for C++  0.12.9
AWS SDK for C++
AccessLog.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace ElasticLoadBalancing
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  AccessLog();
41  AccessLog(const Aws::Utils::Xml::XmlNode& xmlNode);
42  AccessLog& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline bool GetEnabled() const{ return m_enabled; }
51 
55  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
56 
60  inline AccessLog& WithEnabled(bool value) { SetEnabled(value); return *this;}
61 
65  inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
66 
70  inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
71 
75  inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
76 
80  inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
81 
85  inline AccessLog& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
86 
90  inline AccessLog& WithS3BucketName(Aws::String&& value) { SetS3BucketName(value); return *this;}
91 
95  inline AccessLog& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
96 
101  inline long GetEmitInterval() const{ return m_emitInterval; }
102 
107  inline void SetEmitInterval(long value) { m_emitIntervalHasBeenSet = true; m_emitInterval = value; }
108 
113  inline AccessLog& WithEmitInterval(long value) { SetEmitInterval(value); return *this;}
114 
120  inline const Aws::String& GetS3BucketPrefix() const{ return m_s3BucketPrefix; }
121 
127  inline void SetS3BucketPrefix(const Aws::String& value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix = value; }
128 
134  inline void SetS3BucketPrefix(Aws::String&& value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix = value; }
135 
141  inline void SetS3BucketPrefix(const char* value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix.assign(value); }
142 
148  inline AccessLog& WithS3BucketPrefix(const Aws::String& value) { SetS3BucketPrefix(value); return *this;}
149 
155  inline AccessLog& WithS3BucketPrefix(Aws::String&& value) { SetS3BucketPrefix(value); return *this;}
156 
162  inline AccessLog& WithS3BucketPrefix(const char* value) { SetS3BucketPrefix(value); return *this;}
163 
164  private:
165  bool m_enabled;
166  bool m_enabledHasBeenSet;
167  Aws::String m_s3BucketName;
168  bool m_s3BucketNameHasBeenSet;
169  long m_emitInterval;
170  bool m_emitIntervalHasBeenSet;
171  Aws::String m_s3BucketPrefix;
172  bool m_s3BucketPrefixHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace ElasticLoadBalancing
177 } // namespace Aws
void SetS3BucketPrefix(Aws::String &&value)
Definition: AccessLog.h:134
void SetS3BucketName(const Aws::String &value)
Definition: AccessLog.h:70
AccessLog & WithS3BucketName(const char *value)
Definition: AccessLog.h:95
AccessLog & WithEmitInterval(long value)
Definition: AccessLog.h:113
const Aws::String & GetS3BucketPrefix() const
Definition: AccessLog.h:120
AccessLog & WithS3BucketPrefix(Aws::String &&value)
Definition: AccessLog.h:155
AccessLog & WithS3BucketPrefix(const char *value)
Definition: AccessLog.h:162
AccessLog & WithS3BucketName(const Aws::String &value)
Definition: AccessLog.h:85
AccessLog & WithS3BucketPrefix(const Aws::String &value)
Definition: AccessLog.h:148
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetS3BucketName() const
Definition: AccessLog.h:65
AccessLog & WithS3BucketName(Aws::String &&value)
Definition: AccessLog.h:90
void SetS3BucketPrefix(const Aws::String &value)
Definition: AccessLog.h:127
void SetS3BucketPrefix(const char *value)
Definition: AccessLog.h:141
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetS3BucketName(Aws::String &&value)
Definition: AccessLog.h:75
AccessLog & WithEnabled(bool value)
Definition: AccessLog.h:60
#define AWS_ELASTICLOADBALANCING_API
void SetS3BucketName(const char *value)
Definition: AccessLog.h:80
JSON (JavaScript Object Notation).