AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
LogDeliveryConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10#include <aws/elasticache/model/DestinationDetails.h>
11#include <aws/elasticache/model/DestinationType.h>
12#include <aws/elasticache/model/LogDeliveryConfigurationStatus.h>
13#include <aws/elasticache/model/LogFormat.h>
14#include <aws/elasticache/model/LogType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache {
25namespace Model {
26
34 public:
35 AWS_ELASTICACHE_API LogDeliveryConfiguration() = default;
36 AWS_ELASTICACHE_API LogDeliveryConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API LogDeliveryConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
47 inline LogType GetLogType() const { return m_logType; }
48 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
49 inline void SetLogType(LogType value) {
50 m_logTypeHasBeenSet = true;
51 m_logType = value;
52 }
54 SetLogType(value);
55 return *this;
56 }
58
60
64 inline DestinationType GetDestinationType() const { return m_destinationType; }
65 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
67 m_destinationTypeHasBeenSet = true;
68 m_destinationType = value;
69 }
71 SetDestinationType(value);
72 return *this;
73 }
75
77
81 inline const DestinationDetails& GetDestinationDetails() const { return m_destinationDetails; }
82 inline bool DestinationDetailsHasBeenSet() const { return m_destinationDetailsHasBeenSet; }
83 template <typename DestinationDetailsT = DestinationDetails>
84 void SetDestinationDetails(DestinationDetailsT&& value) {
85 m_destinationDetailsHasBeenSet = true;
86 m_destinationDetails = std::forward<DestinationDetailsT>(value);
87 }
88 template <typename DestinationDetailsT = DestinationDetails>
89 LogDeliveryConfiguration& WithDestinationDetails(DestinationDetailsT&& value) {
90 SetDestinationDetails(std::forward<DestinationDetailsT>(value));
91 return *this;
92 }
94
96
99 inline LogFormat GetLogFormat() const { return m_logFormat; }
100 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
101 inline void SetLogFormat(LogFormat value) {
102 m_logFormatHasBeenSet = true;
103 m_logFormat = value;
104 }
106 SetLogFormat(value);
107 return *this;
108 }
110
112
117 inline LogDeliveryConfigurationStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetMessage() const { return m_message; }
134 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
135 template <typename MessageT = Aws::String>
136 void SetMessage(MessageT&& value) {
137 m_messageHasBeenSet = true;
138 m_message = std::forward<MessageT>(value);
139 }
140 template <typename MessageT = Aws::String>
142 SetMessage(std::forward<MessageT>(value));
143 return *this;
144 }
146 private:
147 LogType m_logType{LogType::NOT_SET};
148
149 DestinationType m_destinationType{DestinationType::NOT_SET};
150
151 DestinationDetails m_destinationDetails;
152
153 LogFormat m_logFormat{LogFormat::NOT_SET};
154
156
157 Aws::String m_message;
158 bool m_logTypeHasBeenSet = false;
159 bool m_destinationTypeHasBeenSet = false;
160 bool m_destinationDetailsHasBeenSet = false;
161 bool m_logFormatHasBeenSet = false;
162 bool m_statusHasBeenSet = false;
163 bool m_messageHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace ElastiCache
168} // namespace Aws
LogDeliveryConfiguration & WithLogType(LogType value)
LogDeliveryConfiguration & WithDestinationDetails(DestinationDetailsT &&value)
LogDeliveryConfiguration & WithStatus(LogDeliveryConfigurationStatus value)
LogDeliveryConfiguration & WithLogFormat(LogFormat value)
void SetStatus(LogDeliveryConfigurationStatus value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICACHE_API LogDeliveryConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
LogDeliveryConfiguration & WithDestinationType(DestinationType value)
LogDeliveryConfiguration & WithMessage(MessageT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API LogDeliveryConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API LogDeliveryConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream