AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
DeliverySourceConfigurationSchema.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/DeliverySourceConfigurationSchemaValueType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs {
22namespace Model {
23
32 public:
33 AWS_CLOUDWATCHLOGS_API DeliverySourceConfigurationSchema() = default;
36 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetKeyName() const { return m_keyName; }
43 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
44 template <typename KeyNameT = Aws::String>
45 void SetKeyName(KeyNameT&& value) {
46 m_keyNameHasBeenSet = true;
47 m_keyName = std::forward<KeyNameT>(value);
48 }
49 template <typename KeyNameT = Aws::String>
51 SetKeyName(std::forward<KeyNameT>(value));
52 return *this;
53 }
55
57
62 inline DeliverySourceConfigurationSchemaValueType GetValueType() const { return m_valueType; }
63 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
65 m_valueTypeHasBeenSet = true;
66 m_valueType = value;
67 }
69 SetValueType(value);
70 return *this;
71 }
73
75
81 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
82 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
83 template <typename DefaultValueT = Aws::String>
84 void SetDefaultValue(DefaultValueT&& value) {
85 m_defaultValueHasBeenSet = true;
86 m_defaultValue = std::forward<DefaultValueT>(value);
87 }
88 template <typename DefaultValueT = Aws::String>
90 SetDefaultValue(std::forward<DefaultValueT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<Aws::String>& GetSupportedValues() const { return m_supportedValues; }
101 inline bool SupportedValuesHasBeenSet() const { return m_supportedValuesHasBeenSet; }
102 template <typename SupportedValuesT = Aws::Vector<Aws::String>>
103 void SetSupportedValues(SupportedValuesT&& value) {
104 m_supportedValuesHasBeenSet = true;
105 m_supportedValues = std::forward<SupportedValuesT>(value);
106 }
107 template <typename SupportedValuesT = Aws::Vector<Aws::String>>
109 SetSupportedValues(std::forward<SupportedValuesT>(value));
110 return *this;
111 }
112 template <typename SupportedValuesT = Aws::String>
114 m_supportedValuesHasBeenSet = true;
115 m_supportedValues.emplace_back(std::forward<SupportedValuesT>(value));
116 return *this;
117 }
119
121
125 inline double GetMinValue() const { return m_minValue; }
126 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
127 inline void SetMinValue(double value) {
128 m_minValueHasBeenSet = true;
129 m_minValue = value;
130 }
132 SetMinValue(value);
133 return *this;
134 }
136
138
142 inline double GetMaxValue() const { return m_maxValue; }
143 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
144 inline void SetMaxValue(double value) {
145 m_maxValueHasBeenSet = true;
146 m_maxValue = value;
147 }
149 SetMaxValue(value);
150 return *this;
151 }
153 private:
154 Aws::String m_keyName;
155
157
158 Aws::String m_defaultValue;
159
160 Aws::Vector<Aws::String> m_supportedValues;
161
162 double m_minValue{0.0};
163
164 double m_maxValue{0.0};
165 bool m_keyNameHasBeenSet = false;
166 bool m_valueTypeHasBeenSet = false;
167 bool m_defaultValueHasBeenSet = false;
168 bool m_supportedValuesHasBeenSet = false;
169 bool m_minValueHasBeenSet = false;
170 bool m_maxValueHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace CloudWatchLogs
175} // namespace Aws
DeliverySourceConfigurationSchema & WithDefaultValue(DefaultValueT &&value)
DeliverySourceConfigurationSchema & AddSupportedValues(SupportedValuesT &&value)
AWS_CLOUDWATCHLOGS_API DeliverySourceConfigurationSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
DeliverySourceConfigurationSchema & WithKeyName(KeyNameT &&value)
AWS_CLOUDWATCHLOGS_API DeliverySourceConfigurationSchema()=default
AWS_CLOUDWATCHLOGS_API DeliverySourceConfigurationSchema(Aws::Utils::Json::JsonView jsonValue)
DeliverySourceConfigurationSchema & WithSupportedValues(SupportedValuesT &&value)
void SetValueType(DeliverySourceConfigurationSchemaValueType value)
DeliverySourceConfigurationSchema & WithValueType(DeliverySourceConfigurationSchemaValueType value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue