AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchCreateIndex.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/AttributeKey.h>
9#include <aws/clouddirectory/model/ObjectReference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudDirectory {
23namespace Model {
24
33 public:
34 AWS_CLOUDDIRECTORY_API BatchCreateIndex() = default;
35 AWS_CLOUDDIRECTORY_API BatchCreateIndex(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDDIRECTORY_API BatchCreateIndex& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<AttributeKey>& GetOrderedIndexedAttributeList() const { return m_orderedIndexedAttributeList; }
45 inline bool OrderedIndexedAttributeListHasBeenSet() const { return m_orderedIndexedAttributeListHasBeenSet; }
46 template <typename OrderedIndexedAttributeListT = Aws::Vector<AttributeKey>>
47 void SetOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) {
48 m_orderedIndexedAttributeListHasBeenSet = true;
49 m_orderedIndexedAttributeList = std::forward<OrderedIndexedAttributeListT>(value);
50 }
51 template <typename OrderedIndexedAttributeListT = Aws::Vector<AttributeKey>>
52 BatchCreateIndex& WithOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) {
53 SetOrderedIndexedAttributeList(std::forward<OrderedIndexedAttributeListT>(value));
54 return *this;
55 }
56 template <typename OrderedIndexedAttributeListT = AttributeKey>
57 BatchCreateIndex& AddOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) {
58 m_orderedIndexedAttributeListHasBeenSet = true;
59 m_orderedIndexedAttributeList.emplace_back(std::forward<OrderedIndexedAttributeListT>(value));
60 return *this;
61 }
63
65
69 inline bool GetIsUnique() const { return m_isUnique; }
70 inline bool IsUniqueHasBeenSet() const { return m_isUniqueHasBeenSet; }
71 inline void SetIsUnique(bool value) {
72 m_isUniqueHasBeenSet = true;
73 m_isUnique = value;
74 }
75 inline BatchCreateIndex& WithIsUnique(bool value) {
76 SetIsUnique(value);
77 return *this;
78 }
80
82
85 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
86 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
87 template <typename ParentReferenceT = ObjectReference>
88 void SetParentReference(ParentReferenceT&& value) {
89 m_parentReferenceHasBeenSet = true;
90 m_parentReference = std::forward<ParentReferenceT>(value);
91 }
92 template <typename ParentReferenceT = ObjectReference>
93 BatchCreateIndex& WithParentReference(ParentReferenceT&& value) {
94 SetParentReference(std::forward<ParentReferenceT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetLinkName() const { return m_linkName; }
104 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
105 template <typename LinkNameT = Aws::String>
106 void SetLinkName(LinkNameT&& value) {
107 m_linkNameHasBeenSet = true;
108 m_linkName = std::forward<LinkNameT>(value);
109 }
110 template <typename LinkNameT = Aws::String>
111 BatchCreateIndex& WithLinkName(LinkNameT&& value) {
112 SetLinkName(std::forward<LinkNameT>(value));
113 return *this;
114 }
116
118
123 inline const Aws::String& GetBatchReferenceName() const { return m_batchReferenceName; }
124 inline bool BatchReferenceNameHasBeenSet() const { return m_batchReferenceNameHasBeenSet; }
125 template <typename BatchReferenceNameT = Aws::String>
126 void SetBatchReferenceName(BatchReferenceNameT&& value) {
127 m_batchReferenceNameHasBeenSet = true;
128 m_batchReferenceName = std::forward<BatchReferenceNameT>(value);
129 }
130 template <typename BatchReferenceNameT = Aws::String>
131 BatchCreateIndex& WithBatchReferenceName(BatchReferenceNameT&& value) {
132 SetBatchReferenceName(std::forward<BatchReferenceNameT>(value));
133 return *this;
134 }
136 private:
137 Aws::Vector<AttributeKey> m_orderedIndexedAttributeList;
138
139 bool m_isUnique{false};
140
141 ObjectReference m_parentReference;
142
143 Aws::String m_linkName;
144
145 Aws::String m_batchReferenceName;
146 bool m_orderedIndexedAttributeListHasBeenSet = false;
147 bool m_isUniqueHasBeenSet = false;
148 bool m_parentReferenceHasBeenSet = false;
149 bool m_linkNameHasBeenSet = false;
150 bool m_batchReferenceNameHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace CloudDirectory
155} // namespace Aws
BatchCreateIndex & WithBatchReferenceName(BatchReferenceNameT &&value)
void SetParentReference(ParentReferenceT &&value)
void SetOrderedIndexedAttributeList(OrderedIndexedAttributeListT &&value)
BatchCreateIndex & AddOrderedIndexedAttributeList(OrderedIndexedAttributeListT &&value)
BatchCreateIndex & WithIsUnique(bool value)
BatchCreateIndex & WithLinkName(LinkNameT &&value)
const Aws::String & GetBatchReferenceName() const
AWS_CLOUDDIRECTORY_API BatchCreateIndex()=default
const ObjectReference & GetParentReference() const
BatchCreateIndex & WithOrderedIndexedAttributeList(OrderedIndexedAttributeListT &&value)
AWS_CLOUDDIRECTORY_API BatchCreateIndex(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDDIRECTORY_API BatchCreateIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AttributeKey > & GetOrderedIndexedAttributeList() const
void SetBatchReferenceName(BatchReferenceNameT &&value)
BatchCreateIndex & WithParentReference(ParentReferenceT &&value)
AWS_CLOUDDIRECTORY_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