AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudWatchLogOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_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 EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API CloudWatchLogOptions();
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
49 inline bool GetLogEnabled() const{ return m_logEnabled; }
50 inline bool LogEnabledHasBeenSet() const { return m_logEnabledHasBeenSet; }
51 inline void SetLogEnabled(bool value) { m_logEnabledHasBeenSet = true; m_logEnabled = value; }
52 inline CloudWatchLogOptions& WithLogEnabled(bool value) { SetLogEnabled(value); return *this;}
54
56
60 inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; }
61 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
62 inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; }
63 inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); }
64 inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); }
65 inline CloudWatchLogOptions& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;}
66 inline CloudWatchLogOptions& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;}
67 inline CloudWatchLogOptions& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;}
69
71
75 inline const Aws::String& GetLogOutputFormat() const{ return m_logOutputFormat; }
76 inline bool LogOutputFormatHasBeenSet() const { return m_logOutputFormatHasBeenSet; }
77 inline void SetLogOutputFormat(const Aws::String& value) { m_logOutputFormatHasBeenSet = true; m_logOutputFormat = value; }
78 inline void SetLogOutputFormat(Aws::String&& value) { m_logOutputFormatHasBeenSet = true; m_logOutputFormat = std::move(value); }
79 inline void SetLogOutputFormat(const char* value) { m_logOutputFormatHasBeenSet = true; m_logOutputFormat.assign(value); }
80 inline CloudWatchLogOptions& WithLogOutputFormat(const Aws::String& value) { SetLogOutputFormat(value); return *this;}
81 inline CloudWatchLogOptions& WithLogOutputFormat(Aws::String&& value) { SetLogOutputFormat(std::move(value)); return *this;}
82 inline CloudWatchLogOptions& WithLogOutputFormat(const char* value) { SetLogOutputFormat(value); return *this;}
84 private:
85
86 bool m_logEnabled;
87 bool m_logEnabledHasBeenSet = false;
88
89 Aws::String m_logGroupArn;
90 bool m_logGroupArnHasBeenSet = false;
91
92 Aws::String m_logOutputFormat;
93 bool m_logOutputFormatHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EC2
98} // namespace Aws
CloudWatchLogOptions & WithLogEnabled(bool value)
CloudWatchLogOptions & WithLogOutputFormat(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API CloudWatchLogOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudWatchLogOptions & WithLogOutputFormat(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetLogGroupArn(const Aws::String &value)
CloudWatchLogOptions & WithLogOutputFormat(const char *value)
AWS_EC2_API CloudWatchLogOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudWatchLogOptions & WithLogGroupArn(const char *value)
CloudWatchLogOptions & WithLogGroupArn(const Aws::String &value)
const Aws::String & GetLogGroupArn() const
const Aws::String & GetLogOutputFormat() const
void SetLogOutputFormat(Aws::String &&value)
void SetLogOutputFormat(const Aws::String &value)
CloudWatchLogOptions & WithLogGroupArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream