AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LogDeliveryConfigurationRequest.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 <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ELASTICACHE_API LogDeliveryConfigurationRequest();
39 AWS_ELASTICACHE_API LogDeliveryConfigurationRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const LogType& GetLogType() const{ return m_logType; }
52 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
53 inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; }
54 inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
55 inline LogDeliveryConfigurationRequest& WithLogType(const LogType& value) { SetLogType(value); return *this;}
56 inline LogDeliveryConfigurationRequest& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;}
58
60
64 inline const DestinationType& GetDestinationType() const{ return m_destinationType; }
65 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
66 inline void SetDestinationType(const DestinationType& value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
67 inline void SetDestinationType(DestinationType&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::move(value); }
71
73
77 inline const DestinationDetails& GetDestinationDetails() const{ return m_destinationDetails; }
78 inline bool DestinationDetailsHasBeenSet() const { return m_destinationDetailsHasBeenSet; }
79 inline void SetDestinationDetails(const DestinationDetails& value) { m_destinationDetailsHasBeenSet = true; m_destinationDetails = value; }
80 inline void SetDestinationDetails(DestinationDetails&& value) { m_destinationDetailsHasBeenSet = true; m_destinationDetails = std::move(value); }
84
86
89 inline const LogFormat& GetLogFormat() const{ return m_logFormat; }
90 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
91 inline void SetLogFormat(const LogFormat& value) { m_logFormatHasBeenSet = true; m_logFormat = value; }
92 inline void SetLogFormat(LogFormat&& value) { m_logFormatHasBeenSet = true; m_logFormat = std::move(value); }
93 inline LogDeliveryConfigurationRequest& WithLogFormat(const LogFormat& value) { SetLogFormat(value); return *this;}
94 inline LogDeliveryConfigurationRequest& WithLogFormat(LogFormat&& value) { SetLogFormat(std::move(value)); return *this;}
96
98
101 inline bool GetEnabled() const{ return m_enabled; }
102 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
103 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
104 inline LogDeliveryConfigurationRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
106 private:
107
108 LogType m_logType;
109 bool m_logTypeHasBeenSet = false;
110
111 DestinationType m_destinationType;
112 bool m_destinationTypeHasBeenSet = false;
113
114 DestinationDetails m_destinationDetails;
115 bool m_destinationDetailsHasBeenSet = false;
116
117 LogFormat m_logFormat;
118 bool m_logFormatHasBeenSet = false;
119
120 bool m_enabled;
121 bool m_enabledHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ElastiCache
126} // namespace Aws
LogDeliveryConfigurationRequest & WithLogType(const LogType &value)
AWS_ELASTICACHE_API LogDeliveryConfigurationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
LogDeliveryConfigurationRequest & WithDestinationType(const DestinationType &value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LogDeliveryConfigurationRequest & WithLogFormat(const LogFormat &value)
LogDeliveryConfigurationRequest & WithDestinationDetails(DestinationDetails &&value)
LogDeliveryConfigurationRequest & WithLogType(LogType &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LogDeliveryConfigurationRequest & WithDestinationDetails(const DestinationDetails &value)
LogDeliveryConfigurationRequest & WithLogFormat(LogFormat &&value)
LogDeliveryConfigurationRequest & WithDestinationType(DestinationType &&value)
AWS_ELASTICACHE_API LogDeliveryConfigurationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream