AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogDeliveryConfiguration.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticache/model/LogType.h>
10#include <aws/elasticache/model/DestinationType.h>
11#include <aws/elasticache/model/DestinationDetails.h>
12#include <aws/elasticache/model/LogFormat.h>
13#include <aws/elasticache/model/LogDeliveryConfigurationStatus.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace ElastiCache
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_ELASTICACHE_API LogDeliveryConfiguration() = default;
41 AWS_ELASTICACHE_API LogDeliveryConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_ELASTICACHE_API LogDeliveryConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
53 inline LogType GetLogType() const { return m_logType; }
54 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
55 inline void SetLogType(LogType value) { m_logTypeHasBeenSet = true; m_logType = value; }
56 inline LogDeliveryConfiguration& WithLogType(LogType value) { SetLogType(value); return *this;}
58
60
64 inline DestinationType GetDestinationType() const { return m_destinationType; }
65 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
66 inline void SetDestinationType(DestinationType value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
69
71
75 inline const DestinationDetails& GetDestinationDetails() const { return m_destinationDetails; }
76 inline bool DestinationDetailsHasBeenSet() const { return m_destinationDetailsHasBeenSet; }
77 template<typename DestinationDetailsT = DestinationDetails>
78 void SetDestinationDetails(DestinationDetailsT&& value) { m_destinationDetailsHasBeenSet = true; m_destinationDetails = std::forward<DestinationDetailsT>(value); }
79 template<typename DestinationDetailsT = DestinationDetails>
80 LogDeliveryConfiguration& WithDestinationDetails(DestinationDetailsT&& value) { SetDestinationDetails(std::forward<DestinationDetailsT>(value)); return *this;}
82
84
87 inline LogFormat GetLogFormat() const { return m_logFormat; }
88 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
89 inline void SetLogFormat(LogFormat value) { m_logFormatHasBeenSet = true; m_logFormat = value; }
90 inline LogDeliveryConfiguration& WithLogFormat(LogFormat value) { SetLogFormat(value); return *this;}
92
94
99 inline LogDeliveryConfigurationStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(LogDeliveryConfigurationStatus value) { m_statusHasBeenSet = true; m_status = value; }
104
106
109 inline const Aws::String& GetMessage() const { return m_message; }
110 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
111 template<typename MessageT = Aws::String>
112 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
113 template<typename MessageT = Aws::String>
114 LogDeliveryConfiguration& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
116 private:
117
118 LogType m_logType{LogType::NOT_SET};
119 bool m_logTypeHasBeenSet = false;
120
121 DestinationType m_destinationType{DestinationType::NOT_SET};
122 bool m_destinationTypeHasBeenSet = false;
123
124 DestinationDetails m_destinationDetails;
125 bool m_destinationDetailsHasBeenSet = false;
126
127 LogFormat m_logFormat{LogFormat::NOT_SET};
128 bool m_logFormatHasBeenSet = false;
129
131 bool m_statusHasBeenSet = false;
132
133 Aws::String m_message;
134 bool m_messageHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace ElastiCache
139} // 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