AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 LogType GetLogType() const { return m_logType; }
52 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
53 inline void SetLogType(LogType value) { m_logTypeHasBeenSet = true; m_logType = value; }
54 inline LogDeliveryConfigurationRequest& WithLogType(LogType value) { SetLogType(value); return *this;}
56
58
62 inline DestinationType GetDestinationType() const { return m_destinationType; }
63 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
64 inline void SetDestinationType(DestinationType value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
67
69
73 inline const DestinationDetails& GetDestinationDetails() const { return m_destinationDetails; }
74 inline bool DestinationDetailsHasBeenSet() const { return m_destinationDetailsHasBeenSet; }
75 template<typename DestinationDetailsT = DestinationDetails>
76 void SetDestinationDetails(DestinationDetailsT&& value) { m_destinationDetailsHasBeenSet = true; m_destinationDetails = std::forward<DestinationDetailsT>(value); }
77 template<typename DestinationDetailsT = DestinationDetails>
78 LogDeliveryConfigurationRequest& WithDestinationDetails(DestinationDetailsT&& value) { SetDestinationDetails(std::forward<DestinationDetailsT>(value)); return *this;}
80
82
85 inline LogFormat GetLogFormat() const { return m_logFormat; }
86 inline bool LogFormatHasBeenSet() const { return m_logFormatHasBeenSet; }
87 inline void SetLogFormat(LogFormat value) { m_logFormatHasBeenSet = true; m_logFormat = value; }
90
92
95 inline bool GetEnabled() const { return m_enabled; }
96 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
97 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
98 inline LogDeliveryConfigurationRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
100 private:
101
102 LogType m_logType{LogType::NOT_SET};
103 bool m_logTypeHasBeenSet = false;
104
105 DestinationType m_destinationType{DestinationType::NOT_SET};
106 bool m_destinationTypeHasBeenSet = false;
107
108 DestinationDetails m_destinationDetails;
109 bool m_destinationDetailsHasBeenSet = false;
110
111 LogFormat m_logFormat{LogFormat::NOT_SET};
112 bool m_logFormatHasBeenSet = false;
113
114 bool m_enabled{false};
115 bool m_enabledHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ElastiCache
120} // 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