AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename LogGroupArnT = Aws::String>
63 void SetLogGroupArn(LogGroupArnT&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::forward<LogGroupArnT>(value); }
64 template<typename LogGroupArnT = Aws::String>
65 CloudWatchLogOptions& WithLogGroupArn(LogGroupArnT&& value) { SetLogGroupArn(std::forward<LogGroupArnT>(value)); return *this;}
67
69
73 inline const Aws::String& GetLogOutputFormat() const { return m_logOutputFormat; }
74 inline bool LogOutputFormatHasBeenSet() const { return m_logOutputFormatHasBeenSet; }
75 template<typename LogOutputFormatT = Aws::String>
76 void SetLogOutputFormat(LogOutputFormatT&& value) { m_logOutputFormatHasBeenSet = true; m_logOutputFormat = std::forward<LogOutputFormatT>(value); }
77 template<typename LogOutputFormatT = Aws::String>
78 CloudWatchLogOptions& WithLogOutputFormat(LogOutputFormatT&& value) { SetLogOutputFormat(std::forward<LogOutputFormatT>(value)); return *this;}
80 private:
81
82 bool m_logEnabled{false};
83 bool m_logEnabledHasBeenSet = false;
84
85 Aws::String m_logGroupArn;
86 bool m_logGroupArnHasBeenSet = false;
87
88 Aws::String m_logOutputFormat;
89 bool m_logOutputFormatHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace EC2
94} // namespace Aws
CloudWatchLogOptions & WithLogEnabled(bool value)
AWS_EC2_API CloudWatchLogOptions()=default
void SetLogOutputFormat(LogOutputFormatT &&value)
CloudWatchLogOptions & WithLogOutputFormat(LogOutputFormatT &&value)
CloudWatchLogOptions & WithLogGroupArn(LogGroupArnT &&value)
void SetLogGroupArn(LogGroupArnT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API CloudWatchLogOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CloudWatchLogOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetLogGroupArn() const
const Aws::String & GetLogOutputFormat() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream