AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TopicConstantValue.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/ConstantType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/quicksight/model/CollectiveConstantEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QUICKSIGHT_API TopicConstantValue() = default;
39 AWS_QUICKSIGHT_API TopicConstantValue(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline ConstantType GetConstantType() const { return m_constantType; }
49 inline bool ConstantTypeHasBeenSet() const { return m_constantTypeHasBeenSet; }
50 inline void SetConstantType(ConstantType value) { m_constantTypeHasBeenSet = true; m_constantType = value; }
51 inline TopicConstantValue& WithConstantType(ConstantType value) { SetConstantType(value); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
62 template<typename ValueT = Aws::String>
63 TopicConstantValue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
65
67
70 inline const Aws::String& GetMinimum() const { return m_minimum; }
71 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
72 template<typename MinimumT = Aws::String>
73 void SetMinimum(MinimumT&& value) { m_minimumHasBeenSet = true; m_minimum = std::forward<MinimumT>(value); }
74 template<typename MinimumT = Aws::String>
75 TopicConstantValue& WithMinimum(MinimumT&& value) { SetMinimum(std::forward<MinimumT>(value)); return *this;}
77
79
82 inline const Aws::String& GetMaximum() const { return m_maximum; }
83 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
84 template<typename MaximumT = Aws::String>
85 void SetMaximum(MaximumT&& value) { m_maximumHasBeenSet = true; m_maximum = std::forward<MaximumT>(value); }
86 template<typename MaximumT = Aws::String>
87 TopicConstantValue& WithMaximum(MaximumT&& value) { SetMaximum(std::forward<MaximumT>(value)); return *this;}
89
91
94 inline const Aws::Vector<CollectiveConstantEntry>& GetValueList() const { return m_valueList; }
95 inline bool ValueListHasBeenSet() const { return m_valueListHasBeenSet; }
96 template<typename ValueListT = Aws::Vector<CollectiveConstantEntry>>
97 void SetValueList(ValueListT&& value) { m_valueListHasBeenSet = true; m_valueList = std::forward<ValueListT>(value); }
98 template<typename ValueListT = Aws::Vector<CollectiveConstantEntry>>
99 TopicConstantValue& WithValueList(ValueListT&& value) { SetValueList(std::forward<ValueListT>(value)); return *this;}
100 template<typename ValueListT = CollectiveConstantEntry>
101 TopicConstantValue& AddValueList(ValueListT&& value) { m_valueListHasBeenSet = true; m_valueList.emplace_back(std::forward<ValueListT>(value)); return *this; }
103 private:
104
105 ConstantType m_constantType{ConstantType::NOT_SET};
106 bool m_constantTypeHasBeenSet = false;
107
108 Aws::String m_value;
109 bool m_valueHasBeenSet = false;
110
111 Aws::String m_minimum;
112 bool m_minimumHasBeenSet = false;
113
114 Aws::String m_maximum;
115 bool m_maximumHasBeenSet = false;
116
118 bool m_valueListHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace QuickSight
123} // 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