AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PendingLogDeliveryConfiguration.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
31 public:
32 AWS_ELASTICACHE_API PendingLogDeliveryConfiguration() = default;
33 AWS_ELASTICACHE_API PendingLogDeliveryConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline LogType GetLogType() const { return m_logType; }
45 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
46 inline void SetLogType(LogType value) {
47 m_logTypeHasBeenSet = true;
48 m_logType = value;
49 }
51 SetLogType(value);
52 return *this;
53 }
55
57
61 inline DestinationType GetDestinationType() const { return m_destinationType; }
62 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
64 m_destinationTypeHasBeenSet = true;
65 m_destinationType = value;
66 }
68 SetDestinationType(value);
69 return *this;
70 }
72
74
78 inline const DestinationDetails& GetDestinationDetails() const { return m_destinationDetails; }
79 inline bool DestinationDetailsHasBeenSet() const { return m_destinationDetailsHasBeenSet; }
80 template <typename DestinationDetailsT = DestinationDetails>
81 void SetDestinationDetails(DestinationDetailsT&& value) {
82 m_destinationDetailsHasBeenSet = true;
83 m_destinationDetails = std::forward<DestinationDetailsT>(value);
84 }
85 template <typename DestinationDetailsT = DestinationDetails>
87 SetDestinationDetails(std::forward<DestinationDetailsT>(value));
88 return *this;
89 }
91
93
96 inline LogFormat GetLogFormat() const { return m_logFormat; }
97 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
98 inline void SetLogFormat(LogFormat value) {
99 m_logFormatHasBeenSet = true;
100 m_logFormat = value;
101 }
103 SetLogFormat(value);
104 return *this;
105 }
107 private:
108 LogType m_logType{LogType::NOT_SET};
109
110 DestinationType m_destinationType{DestinationType::NOT_SET};
111
112 DestinationDetails m_destinationDetails;
113
114 LogFormat m_logFormat{LogFormat::NOT_SET};
115 bool m_logTypeHasBeenSet = false;
116 bool m_destinationTypeHasBeenSet = false;
117 bool m_destinationDetailsHasBeenSet = false;
118 bool m_logFormatHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace ElastiCache
123} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PendingLogDeliveryConfiguration & WithLogFormat(LogFormat value)
AWS_ELASTICACHE_API PendingLogDeliveryConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API PendingLogDeliveryConfiguration()=default
AWS_ELASTICACHE_API PendingLogDeliveryConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
PendingLogDeliveryConfiguration & WithLogType(LogType value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PendingLogDeliveryConfiguration & WithDestinationDetails(DestinationDetailsT &&value)
PendingLogDeliveryConfiguration & WithDestinationType(DestinationType value)
std::basic_ostream< char, std::char_traits< char > > OStream