AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SegmentAttributeValue.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
32 public:
33 AWS_CONNECT_API SegmentAttributeValue() = default;
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetValueString() const { return m_valueString; }
43 inline bool ValueStringHasBeenSet() const { return m_valueStringHasBeenSet; }
44 template <typename ValueStringT = Aws::String>
45 void SetValueString(ValueStringT&& value) {
46 m_valueStringHasBeenSet = true;
47 m_valueString = std::forward<ValueStringT>(value);
48 }
49 template <typename ValueStringT = Aws::String>
50 SegmentAttributeValue& WithValueString(ValueStringT&& value) {
51 SetValueString(std::forward<ValueStringT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Map<Aws::String, SegmentAttributeValue>& GetValueMap() const { return m_valueMap; }
61 inline bool ValueMapHasBeenSet() const { return m_valueMapHasBeenSet; }
62 template <typename ValueMapT = Aws::Map<Aws::String, SegmentAttributeValue>>
63 void SetValueMap(ValueMapT&& value) {
64 m_valueMapHasBeenSet = true;
65 m_valueMap = std::forward<ValueMapT>(value);
66 }
67 template <typename ValueMapT = Aws::Map<Aws::String, SegmentAttributeValue>>
68 SegmentAttributeValue& WithValueMap(ValueMapT&& value) {
69 SetValueMap(std::forward<ValueMapT>(value));
70 return *this;
71 }
72 template <typename ValueMapKeyT = Aws::String, typename ValueMapValueT = SegmentAttributeValue>
73 SegmentAttributeValue& AddValueMap(ValueMapKeyT&& key, ValueMapValueT&& value) {
74 m_valueMapHasBeenSet = true;
75 m_valueMap.emplace(std::forward<ValueMapKeyT>(key), std::forward<ValueMapValueT>(value));
76 return *this;
77 }
79
81
84 inline int GetValueInteger() const { return m_valueInteger; }
85 inline bool ValueIntegerHasBeenSet() const { return m_valueIntegerHasBeenSet; }
86 inline void SetValueInteger(int value) {
87 m_valueIntegerHasBeenSet = true;
88 m_valueInteger = value;
89 }
91 SetValueInteger(value);
92 return *this;
93 }
95
97
101 inline const Aws::Vector<SegmentAttributeValue>& GetValueList() const { return m_valueList; }
102 inline bool ValueListHasBeenSet() const { return m_valueListHasBeenSet; }
103 template <typename ValueListT = Aws::Vector<SegmentAttributeValue>>
104 void SetValueList(ValueListT&& value) {
105 m_valueListHasBeenSet = true;
106 m_valueList = std::forward<ValueListT>(value);
107 }
108 template <typename ValueListT = Aws::Vector<SegmentAttributeValue>>
110 SetValueList(std::forward<ValueListT>(value));
111 return *this;
112 }
113 template <typename ValueListT = SegmentAttributeValue>
114 SegmentAttributeValue& AddValueList(ValueListT&& value) {
115 m_valueListHasBeenSet = true;
116 m_valueList.emplace_back(std::forward<ValueListT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetValueArn() const { return m_valueArn; }
127 inline bool ValueArnHasBeenSet() const { return m_valueArnHasBeenSet; }
128 template <typename ValueArnT = Aws::String>
129 void SetValueArn(ValueArnT&& value) {
130 m_valueArnHasBeenSet = true;
131 m_valueArn = std::forward<ValueArnT>(value);
132 }
133 template <typename ValueArnT = Aws::String>
135 SetValueArn(std::forward<ValueArnT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_valueString;
141
143
144 int m_valueInteger{0};
145
147
148 Aws::String m_valueArn;
149 bool m_valueStringHasBeenSet = false;
150 bool m_valueMapHasBeenSet = false;
151 bool m_valueIntegerHasBeenSet = false;
152 bool m_valueListHasBeenSet = false;
153 bool m_valueArnHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Connect
158} // namespace Aws
SegmentAttributeValue & WithValueString(ValueStringT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SegmentAttributeValue & WithValueList(ValueListT &&value)
const Aws::Map< Aws::String, SegmentAttributeValue > & GetValueMap() const
AWS_CONNECT_API SegmentAttributeValue(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API SegmentAttributeValue()=default
SegmentAttributeValue & WithValueArn(ValueArnT &&value)
AWS_CONNECT_API SegmentAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
SegmentAttributeValue & WithValueMap(ValueMapT &&value)
SegmentAttributeValue & AddValueMap(ValueMapKeyT &&key, ValueMapValueT &&value)
const Aws::Vector< SegmentAttributeValue > & GetValueList() const
SegmentAttributeValue & WithValueInteger(int value)
SegmentAttributeValue & AddValueList(ValueListT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue