AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessLog.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancing
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICLOADBALANCING_API AccessLog();
36 AWS_ELASTICLOADBALANCING_API AccessLog(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICLOADBALANCING_API AccessLog& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline bool GetEnabled() const{ return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline AccessLog& WithEnabled(bool value) { SetEnabled(value); return *this;}
52
54
57 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
58 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
59 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
60 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
61 inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
62 inline AccessLog& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
63 inline AccessLog& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
64 inline AccessLog& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
66
68
72 inline int GetEmitInterval() const{ return m_emitInterval; }
73 inline bool EmitIntervalHasBeenSet() const { return m_emitIntervalHasBeenSet; }
74 inline void SetEmitInterval(int value) { m_emitIntervalHasBeenSet = true; m_emitInterval = value; }
75 inline AccessLog& WithEmitInterval(int value) { SetEmitInterval(value); return *this;}
77
79
84 inline const Aws::String& GetS3BucketPrefix() const{ return m_s3BucketPrefix; }
85 inline bool S3BucketPrefixHasBeenSet() const { return m_s3BucketPrefixHasBeenSet; }
86 inline void SetS3BucketPrefix(const Aws::String& value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix = value; }
87 inline void SetS3BucketPrefix(Aws::String&& value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix = std::move(value); }
88 inline void SetS3BucketPrefix(const char* value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix.assign(value); }
89 inline AccessLog& WithS3BucketPrefix(const Aws::String& value) { SetS3BucketPrefix(value); return *this;}
90 inline AccessLog& WithS3BucketPrefix(Aws::String&& value) { SetS3BucketPrefix(std::move(value)); return *this;}
91 inline AccessLog& WithS3BucketPrefix(const char* value) { SetS3BucketPrefix(value); return *this;}
93 private:
94
95 bool m_enabled;
96 bool m_enabledHasBeenSet = false;
97
98 Aws::String m_s3BucketName;
99 bool m_s3BucketNameHasBeenSet = false;
100
101 int m_emitInterval;
102 bool m_emitIntervalHasBeenSet = false;
103
104 Aws::String m_s3BucketPrefix;
105 bool m_s3BucketPrefixHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace ElasticLoadBalancing
110} // namespace Aws
AWS_ELASTICLOADBALANCING_API AccessLog(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetS3BucketName(Aws::String &&value)
Definition AccessLog.h:60
void SetS3BucketPrefix(const Aws::String &value)
Definition AccessLog.h:86
const Aws::String & GetS3BucketName() const
Definition AccessLog.h:57
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetS3BucketPrefix(const char *value)
Definition AccessLog.h:88
const Aws::String & GetS3BucketPrefix() const
Definition AccessLog.h:84
void SetS3BucketPrefix(Aws::String &&value)
Definition AccessLog.h:87
void SetS3BucketName(const Aws::String &value)
Definition AccessLog.h:59
AccessLog & WithS3BucketName(const Aws::String &value)
Definition AccessLog.h:62
AWS_ELASTICLOADBALANCING_API AccessLog()
AWS_ELASTICLOADBALANCING_API AccessLog & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessLog & WithEmitInterval(int value)
Definition AccessLog.h:75
void SetS3BucketName(const char *value)
Definition AccessLog.h:61
AccessLog & WithS3BucketName(const char *value)
Definition AccessLog.h:64
AccessLog & WithS3BucketPrefix(const Aws::String &value)
Definition AccessLog.h:89
AccessLog & WithS3BucketPrefix(const char *value)
Definition AccessLog.h:91
AccessLog & WithS3BucketName(Aws::String &&value)
Definition AccessLog.h:63
AccessLog & WithS3BucketPrefix(Aws::String &&value)
Definition AccessLog.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream