AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LogDeliveryConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/elasticache/ElastiCache_EXPORTS.h>
9#include <aws/elasticache/model/DestinationDetails.h>
10#include <aws/elasticache/model/DestinationType.h>
11#include <aws/elasticache/model/LogFormat.h>
12#include <aws/elasticache/model/LogType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElastiCache {
23namespace Model {
24
32 public:
33 AWS_ELASTICACHE_API LogDeliveryConfigurationRequest() = default;
34 AWS_ELASTICACHE_API LogDeliveryConfigurationRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
45 inline LogType GetLogType() const { return m_logType; }
46 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
47 inline void SetLogType(LogType value) {
48 m_logTypeHasBeenSet = true;
49 m_logType = value;
50 }
52 SetLogType(value);
53 return *this;
54 }
56
58
62 inline DestinationType GetDestinationType() const { return m_destinationType; }
63 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
65 m_destinationTypeHasBeenSet = true;
66 m_destinationType = value;
67 }
69 SetDestinationType(value);
70 return *this;
71 }
73
75
79 inline const DestinationDetails& GetDestinationDetails() const { return m_destinationDetails; }
80 inline bool DestinationDetailsHasBeenSet() const { return m_destinationDetailsHasBeenSet; }
81 template <typename DestinationDetailsT = DestinationDetails>
82 void SetDestinationDetails(DestinationDetailsT&& value) {
83 m_destinationDetailsHasBeenSet = true;
84 m_destinationDetails = std::forward<DestinationDetailsT>(value);
85 }
86 template <typename DestinationDetailsT = DestinationDetails>
88 SetDestinationDetails(std::forward<DestinationDetailsT>(value));
89 return *this;
90 }
92
94
97 inline LogFormat GetLogFormat() const { return m_logFormat; }
98 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
99 inline void SetLogFormat(LogFormat value) {
100 m_logFormatHasBeenSet = true;
101 m_logFormat = value;
102 }
104 SetLogFormat(value);
105 return *this;
106 }
108
110
113 inline bool GetEnabled() const { return m_enabled; }
114 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
115 inline void SetEnabled(bool value) {
116 m_enabledHasBeenSet = true;
117 m_enabled = value;
118 }
120 SetEnabled(value);
121 return *this;
122 }
124 private:
125 LogType m_logType{LogType::NOT_SET};
126
127 DestinationType m_destinationType{DestinationType::NOT_SET};
128
129 DestinationDetails m_destinationDetails;
130
131 LogFormat m_logFormat{LogFormat::NOT_SET};
132
133 bool m_enabled{false};
134 bool m_logTypeHasBeenSet = false;
135 bool m_destinationTypeHasBeenSet = false;
136 bool m_destinationDetailsHasBeenSet = false;
137 bool m_logFormatHasBeenSet = false;
138 bool m_enabledHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace ElastiCache
143} // namespace Aws
AWS_ELASTICACHE_API LogDeliveryConfigurationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LogDeliveryConfigurationRequest & WithDestinationDetails(DestinationDetailsT &&value)
AWS_ELASTICACHE_API LogDeliveryConfigurationRequest()=default
LogDeliveryConfigurationRequest & WithLogFormat(LogFormat value)
LogDeliveryConfigurationRequest & WithDestinationType(DestinationType value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LogDeliveryConfigurationRequest & WithLogType(LogType value)
AWS_ELASTICACHE_API LogDeliveryConfigurationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream