AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
TopicConstantValue.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/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/CollectiveConstantEntry.h>
11#include <aws/quicksight/model/ConstantType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
32 public:
33 AWS_QUICKSIGHT_API TopicConstantValue() = default;
34 AWS_QUICKSIGHT_API TopicConstantValue(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ConstantType GetConstantType() const { return m_constantType; }
43 inline bool ConstantTypeHasBeenSet() const { return m_constantTypeHasBeenSet; }
44 inline void SetConstantType(ConstantType value) {
45 m_constantTypeHasBeenSet = true;
46 m_constantType = value;
47 }
49 SetConstantType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
66 TopicConstantValue& WithValue(ValueT&& value) {
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetMinimum() const { return m_minimum; }
77 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
78 template <typename MinimumT = Aws::String>
79 void SetMinimum(MinimumT&& value) {
80 m_minimumHasBeenSet = true;
81 m_minimum = std::forward<MinimumT>(value);
82 }
83 template <typename MinimumT = Aws::String>
84 TopicConstantValue& WithMinimum(MinimumT&& value) {
85 SetMinimum(std::forward<MinimumT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetMaximum() const { return m_maximum; }
95 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
96 template <typename MaximumT = Aws::String>
97 void SetMaximum(MaximumT&& value) {
98 m_maximumHasBeenSet = true;
99 m_maximum = std::forward<MaximumT>(value);
100 }
101 template <typename MaximumT = Aws::String>
102 TopicConstantValue& WithMaximum(MaximumT&& value) {
103 SetMaximum(std::forward<MaximumT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<CollectiveConstantEntry>& GetValueList() const { return m_valueList; }
113 inline bool ValueListHasBeenSet() const { return m_valueListHasBeenSet; }
114 template <typename ValueListT = Aws::Vector<CollectiveConstantEntry>>
115 void SetValueList(ValueListT&& value) {
116 m_valueListHasBeenSet = true;
117 m_valueList = std::forward<ValueListT>(value);
118 }
119 template <typename ValueListT = Aws::Vector<CollectiveConstantEntry>>
120 TopicConstantValue& WithValueList(ValueListT&& value) {
121 SetValueList(std::forward<ValueListT>(value));
122 return *this;
123 }
124 template <typename ValueListT = CollectiveConstantEntry>
125 TopicConstantValue& AddValueList(ValueListT&& value) {
126 m_valueListHasBeenSet = true;
127 m_valueList.emplace_back(std::forward<ValueListT>(value));
128 return *this;
129 }
131 private:
132 ConstantType m_constantType{ConstantType::NOT_SET};
133
134 Aws::String m_value;
135
136 Aws::String m_minimum;
137
138 Aws::String m_maximum;
139
141 bool m_constantTypeHasBeenSet = false;
142 bool m_valueHasBeenSet = false;
143 bool m_minimumHasBeenSet = false;
144 bool m_maximumHasBeenSet = false;
145 bool m_valueListHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace QuickSight
150} // namespace Aws
TopicConstantValue & WithValue(ValueT &&value)
const Aws::Vector< CollectiveConstantEntry > & GetValueList() const
TopicConstantValue & WithMinimum(MinimumT &&value)
TopicConstantValue & WithMaximum(MaximumT &&value)
AWS_QUICKSIGHT_API TopicConstantValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicConstantValue & AddValueList(ValueListT &&value)
TopicConstantValue & WithConstantType(ConstantType value)
AWS_QUICKSIGHT_API TopicConstantValue()=default
AWS_QUICKSIGHT_API TopicConstantValue(Aws::Utils::Json::JsonView jsonValue)
TopicConstantValue & WithValueList(ValueListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue