AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const LogType& GetLogType() const{ return m_logType; }
54 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
55 inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
56 inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
57 inline LogDeliveryConfiguration& WithLogType(const LogType& value) { SetLogType(value); return *this;}
58 inline LogDeliveryConfiguration& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
60
62
66 inline const DestinationType& GetDestinationType() const{ return m_destinationType; }
67 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
68 inline void SetDestinationType(const DestinationType& value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
69 inline void SetDestinationType(DestinationType&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::move(value); }
71 inline LogDeliveryConfiguration& WithDestinationType(DestinationType&& value) { SetDestinationType(std::move(value)); return *this;}
73
75
79 inline const DestinationDetails& GetDestinationDetails() const{ return m_destinationDetails; }
80 inline bool DestinationDetailsHasBeenSet() const { return m_destinationDetailsHasBeenSet; }
81 inline void SetDestinationDetails(const DestinationDetails& value) { m_destinationDetailsHasBeenSet = true; m_destinationDetails = value; }
82 inline void SetDestinationDetails(DestinationDetails&& value) { m_destinationDetailsHasBeenSet = true; m_destinationDetails = std::move(value); }
86
88
91 inline const LogFormat& GetLogFormat() const{ return m_logFormat; }
92 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
93 inline void SetLogFormat(const LogFormat& value) { m_logFormatHasBeenSet = true; m_logFormat = value; }
94 inline void SetLogFormat(LogFormat&& value) { m_logFormatHasBeenSet = true; m_logFormat = std::move(value); }
95 inline LogDeliveryConfiguration& WithLogFormat(const LogFormat& value) { SetLogFormat(value); return *this;}
96 inline LogDeliveryConfiguration& WithLogFormat(LogFormat&& value) { SetLogFormat(std::move(value)); return *this;}
98
100
105 inline const LogDeliveryConfigurationStatus& GetStatus() const{ return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(const LogDeliveryConfigurationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
108 inline void SetStatus(LogDeliveryConfigurationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
110 inline LogDeliveryConfiguration& WithStatus(LogDeliveryConfigurationStatus&& value) { SetStatus(std::move(value)); return *this;}
112
114
117 inline const Aws::String& GetMessage() const{ return m_message; }
118 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
119 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
120 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
121 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
122 inline LogDeliveryConfiguration& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
123 inline LogDeliveryConfiguration& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
124 inline LogDeliveryConfiguration& WithMessage(const char* value) { SetMessage(value); return *this;}
126 private:
127
128 LogType m_logType;
129 bool m_logTypeHasBeenSet = false;
130
131 DestinationType m_destinationType;
132 bool m_destinationTypeHasBeenSet = false;
133
134 DestinationDetails m_destinationDetails;
135 bool m_destinationDetailsHasBeenSet = false;
136
137 LogFormat m_logFormat;
138 bool m_logFormatHasBeenSet = false;
139
141 bool m_statusHasBeenSet = false;
142
143 Aws::String m_message;
144 bool m_messageHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace ElastiCache
149} // namespace Aws
LogDeliveryConfiguration & WithLogType(const LogType &value)
LogDeliveryConfiguration & WithLogFormat(LogFormat &&value)
void SetStatus(const LogDeliveryConfigurationStatus &value)
const LogDeliveryConfigurationStatus & GetStatus() const
LogDeliveryConfiguration & WithDestinationType(const DestinationType &value)
LogDeliveryConfiguration & WithLogFormat(const LogFormat &value)
LogDeliveryConfiguration & WithStatus(LogDeliveryConfigurationStatus &&value)
LogDeliveryConfiguration & WithStatus(const LogDeliveryConfigurationStatus &value)
void SetStatus(LogDeliveryConfigurationStatus &&value)
LogDeliveryConfiguration & WithMessage(const char *value)
LogDeliveryConfiguration & WithDestinationDetails(DestinationDetails &&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 & WithLogType(LogType &&value)
LogDeliveryConfiguration & WithMessage(Aws::String &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LogDeliveryConfiguration & WithMessage(const Aws::String &value)
LogDeliveryConfiguration & WithDestinationType(DestinationType &&value)
AWS_ELASTICACHE_API LogDeliveryConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LogDeliveryConfiguration & WithDestinationDetails(const DestinationDetails &value)
void SetDestinationDetails(const DestinationDetails &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream