AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataTableValueIdentifier.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/PrimaryValue.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
30 public:
31 AWS_CONNECT_API DataTableValueIdentifier() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<PrimaryValue>& GetPrimaryValues() const { return m_primaryValues; }
41 inline bool PrimaryValuesHasBeenSet() const { return m_primaryValuesHasBeenSet; }
42 template <typename PrimaryValuesT = Aws::Vector<PrimaryValue>>
43 void SetPrimaryValues(PrimaryValuesT&& value) {
44 m_primaryValuesHasBeenSet = true;
45 m_primaryValues = std::forward<PrimaryValuesT>(value);
46 }
47 template <typename PrimaryValuesT = Aws::Vector<PrimaryValue>>
49 SetPrimaryValues(std::forward<PrimaryValuesT>(value));
50 return *this;
51 }
52 template <typename PrimaryValuesT = PrimaryValue>
53 DataTableValueIdentifier& AddPrimaryValues(PrimaryValuesT&& value) {
54 m_primaryValuesHasBeenSet = true;
55 m_primaryValues.emplace_back(std::forward<PrimaryValuesT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
65 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
66 template <typename AttributeNameT = Aws::String>
67 void SetAttributeName(AttributeNameT&& value) {
68 m_attributeNameHasBeenSet = true;
69 m_attributeName = std::forward<AttributeNameT>(value);
70 }
71 template <typename AttributeNameT = Aws::String>
73 SetAttributeName(std::forward<AttributeNameT>(value));
74 return *this;
75 }
77 private:
78 Aws::Vector<PrimaryValue> m_primaryValues;
79
80 Aws::String m_attributeName;
81 bool m_primaryValuesHasBeenSet = false;
82 bool m_attributeNameHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Connect
87} // namespace Aws
AWS_CONNECT_API DataTableValueIdentifier(Aws::Utils::Json::JsonView jsonValue)
DataTableValueIdentifier & WithPrimaryValues(PrimaryValuesT &&value)
const Aws::Vector< PrimaryValue > & GetPrimaryValues() const
DataTableValueIdentifier & WithAttributeName(AttributeNameT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API DataTableValueIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
DataTableValueIdentifier & AddPrimaryValues(PrimaryValuesT &&value)
AWS_CONNECT_API DataTableValueIdentifier()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue