AWS SDK for C++  1.9.124
AWS SDK for C++
LogDeliveryConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace ElastiCache
25 {
26 namespace Model
27 {
28 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const LogType& GetLogType() const{ return m_logType; }
50 
54  inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
55 
59  inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
60 
64  inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
65 
69  inline LogDeliveryConfigurationRequest& WithLogType(const LogType& value) { SetLogType(value); return *this;}
70 
74  inline LogDeliveryConfigurationRequest& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
75 
76 
81  inline const DestinationType& GetDestinationType() const{ return m_destinationType; }
82 
87  inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
88 
93  inline void SetDestinationType(const DestinationType& value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
94 
99  inline void SetDestinationType(DestinationType&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::move(value); }
100 
105  inline LogDeliveryConfigurationRequest& WithDestinationType(const DestinationType& value) { SetDestinationType(value); return *this;}
106 
111  inline LogDeliveryConfigurationRequest& WithDestinationType(DestinationType&& value) { SetDestinationType(std::move(value)); return *this;}
112 
113 
118  inline const DestinationDetails& GetDestinationDetails() const{ return m_destinationDetails; }
119 
124  inline bool DestinationDetailsHasBeenSet() const { return m_destinationDetailsHasBeenSet; }
125 
130  inline void SetDestinationDetails(const DestinationDetails& value) { m_destinationDetailsHasBeenSet = true; m_destinationDetails = value; }
131 
136  inline void SetDestinationDetails(DestinationDetails&& value) { m_destinationDetailsHasBeenSet = true; m_destinationDetails = std::move(value); }
137 
142  inline LogDeliveryConfigurationRequest& WithDestinationDetails(const DestinationDetails& value) { SetDestinationDetails(value); return *this;}
143 
148  inline LogDeliveryConfigurationRequest& WithDestinationDetails(DestinationDetails&& value) { SetDestinationDetails(std::move(value)); return *this;}
149 
150 
154  inline const LogFormat& GetLogFormat() const{ return m_logFormat; }
155 
159  inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
160 
164  inline void SetLogFormat(const LogFormat& value) { m_logFormatHasBeenSet = true; m_logFormat = value; }
165 
169  inline void SetLogFormat(LogFormat&& value) { m_logFormatHasBeenSet = true; m_logFormat = std::move(value); }
170 
174  inline LogDeliveryConfigurationRequest& WithLogFormat(const LogFormat& value) { SetLogFormat(value); return *this;}
175 
179  inline LogDeliveryConfigurationRequest& WithLogFormat(LogFormat&& value) { SetLogFormat(std::move(value)); return *this;}
180 
181 
185  inline bool GetEnabled() const{ return m_enabled; }
186 
190  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
191 
195  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
196 
200  inline LogDeliveryConfigurationRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
201 
202  private:
203 
204  LogType m_logType;
205  bool m_logTypeHasBeenSet;
206 
207  DestinationType m_destinationType;
208  bool m_destinationTypeHasBeenSet;
209 
210  DestinationDetails m_destinationDetails;
211  bool m_destinationDetailsHasBeenSet;
212 
213  LogFormat m_logFormat;
214  bool m_logFormatHasBeenSet;
215 
216  bool m_enabled;
217  bool m_enabledHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace ElastiCache
222 } // namespace Aws
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::GetDestinationDetails
const DestinationDetails & GetDestinationDetails() const
Definition: LogDeliveryConfigurationRequest.h:118
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithLogType
LogDeliveryConfigurationRequest & WithLogType(LogType &&value)
Definition: LogDeliveryConfigurationRequest.h:74
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: LogDeliveryConfigurationRequest.h:190
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetDestinationType
void SetDestinationType(const DestinationType &value)
Definition: LogDeliveryConfigurationRequest.h:93
LogFormat.h
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithDestinationType
LogDeliveryConfigurationRequest & WithDestinationType(const DestinationType &value)
Definition: LogDeliveryConfigurationRequest.h:105
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::LogFormatHasBeenSet
bool LogFormatHasBeenSet() const
Definition: LogDeliveryConfigurationRequest.h:159
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetLogFormat
void SetLogFormat(LogFormat &&value)
Definition: LogDeliveryConfigurationRequest.h:169
Aws::ElastiCache::Model::LogFormat
LogFormat
Definition: LogFormat.h:17
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetDestinationDetails
void SetDestinationDetails(const DestinationDetails &value)
Definition: LogDeliveryConfigurationRequest.h:130
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::LogTypeHasBeenSet
bool LogTypeHasBeenSet() const
Definition: LogDeliveryConfigurationRequest.h:54
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetEnabled
void SetEnabled(bool value)
Definition: LogDeliveryConfigurationRequest.h:195
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::LogDeliveryConfigurationRequest
LogDeliveryConfigurationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::ElastiCache::Model::LogType
LogType
Definition: LogType.h:17
ElastiCache_EXPORTS.h
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetLogType
void SetLogType(LogType &&value)
Definition: LogDeliveryConfigurationRequest.h:64
Aws::ElastiCache::Model::DestinationType
DestinationType
Definition: DestinationType.h:17
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetDestinationType
void SetDestinationType(DestinationType &&value)
Definition: LogDeliveryConfigurationRequest.h:99
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithLogType
LogDeliveryConfigurationRequest & WithLogType(const LogType &value)
Definition: LogDeliveryConfigurationRequest.h:69
DestinationDetails.h
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::GetLogType
const LogType & GetLogType() const
Definition: LogDeliveryConfigurationRequest.h:49
LogType.h
AWS_ELASTICACHE_API
#define AWS_ELASTICACHE_API
Definition: ElastiCache_EXPORTS.h:28
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::GetDestinationType
const DestinationType & GetDestinationType() const
Definition: LogDeliveryConfigurationRequest.h:81
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithLogFormat
LogDeliveryConfigurationRequest & WithLogFormat(LogFormat &&value)
Definition: LogDeliveryConfigurationRequest.h:179
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithDestinationDetails
LogDeliveryConfigurationRequest & WithDestinationDetails(DestinationDetails &&value)
Definition: LogDeliveryConfigurationRequest.h:148
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetLogFormat
void SetLogFormat(const LogFormat &value)
Definition: LogDeliveryConfigurationRequest.h:164
Aws::ElastiCache::Model::DestinationDetails
Definition: DestinationDetails.h:34
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::operator=
LogDeliveryConfigurationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetDestinationDetails
void SetDestinationDetails(DestinationDetails &&value)
Definition: LogDeliveryConfigurationRequest.h:136
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest
Definition: LogDeliveryConfigurationRequest.h:36
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::DestinationTypeHasBeenSet
bool DestinationTypeHasBeenSet() const
Definition: LogDeliveryConfigurationRequest.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::GetEnabled
bool GetEnabled() const
Definition: LogDeliveryConfigurationRequest.h:185
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::DestinationDetailsHasBeenSet
bool DestinationDetailsHasBeenSet() const
Definition: LogDeliveryConfigurationRequest.h:124
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::LogDeliveryConfigurationRequest
LogDeliveryConfigurationRequest()
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithDestinationType
LogDeliveryConfigurationRequest & WithDestinationType(DestinationType &&value)
Definition: LogDeliveryConfigurationRequest.h:111
index
int index
Definition: cJSON.h:181
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithDestinationDetails
LogDeliveryConfigurationRequest & WithDestinationDetails(const DestinationDetails &value)
Definition: LogDeliveryConfigurationRequest.h:142
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithEnabled
LogDeliveryConfigurationRequest & WithEnabled(bool value)
Definition: LogDeliveryConfigurationRequest.h:200
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::GetLogFormat
const LogFormat & GetLogFormat() const
Definition: LogDeliveryConfigurationRequest.h:154
DestinationType.h
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::SetLogType
void SetLogType(const LogType &value)
Definition: LogDeliveryConfigurationRequest.h:59
Aws::ElastiCache::Model::LogDeliveryConfigurationRequest::WithLogFormat
LogDeliveryConfigurationRequest & WithLogFormat(const LogFormat &value)
Definition: LogDeliveryConfigurationRequest.h:174