AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchCreateIndex.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/clouddirectory/model/ObjectReference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/clouddirectory/model/AttributeKey.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 CloudDirectory
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_CLOUDDIRECTORY_API BatchCreateIndex() = default;
40 AWS_CLOUDDIRECTORY_API BatchCreateIndex(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDDIRECTORY_API BatchCreateIndex& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<AttributeKey>& GetOrderedIndexedAttributeList() const { return m_orderedIndexedAttributeList; }
51 inline bool OrderedIndexedAttributeListHasBeenSet() const { return m_orderedIndexedAttributeListHasBeenSet; }
52 template<typename OrderedIndexedAttributeListT = Aws::Vector<AttributeKey>>
53 void SetOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList = std::forward<OrderedIndexedAttributeListT>(value); }
54 template<typename OrderedIndexedAttributeListT = Aws::Vector<AttributeKey>>
55 BatchCreateIndex& WithOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) { SetOrderedIndexedAttributeList(std::forward<OrderedIndexedAttributeListT>(value)); return *this;}
56 template<typename OrderedIndexedAttributeListT = AttributeKey>
57 BatchCreateIndex& AddOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList.emplace_back(std::forward<OrderedIndexedAttributeListT>(value)); return *this; }
59
61
65 inline bool GetIsUnique() const { return m_isUnique; }
66 inline bool IsUniqueHasBeenSet() const { return m_isUniqueHasBeenSet; }
67 inline void SetIsUnique(bool value) { m_isUniqueHasBeenSet = true; m_isUnique = value; }
68 inline BatchCreateIndex& WithIsUnique(bool value) { SetIsUnique(value); return *this;}
70
72
75 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
76 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
77 template<typename ParentReferenceT = ObjectReference>
78 void SetParentReference(ParentReferenceT&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::forward<ParentReferenceT>(value); }
79 template<typename ParentReferenceT = ObjectReference>
80 BatchCreateIndex& WithParentReference(ParentReferenceT&& value) { SetParentReference(std::forward<ParentReferenceT>(value)); return *this;}
82
84
87 inline const Aws::String& GetLinkName() const { return m_linkName; }
88 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
89 template<typename LinkNameT = Aws::String>
90 void SetLinkName(LinkNameT&& value) { m_linkNameHasBeenSet = true; m_linkName = std::forward<LinkNameT>(value); }
91 template<typename LinkNameT = Aws::String>
92 BatchCreateIndex& WithLinkName(LinkNameT&& value) { SetLinkName(std::forward<LinkNameT>(value)); return *this;}
94
96
101 inline const Aws::String& GetBatchReferenceName() const { return m_batchReferenceName; }
102 inline bool BatchReferenceNameHasBeenSet() const { return m_batchReferenceNameHasBeenSet; }
103 template<typename BatchReferenceNameT = Aws::String>
104 void SetBatchReferenceName(BatchReferenceNameT&& value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName = std::forward<BatchReferenceNameT>(value); }
105 template<typename BatchReferenceNameT = Aws::String>
106 BatchCreateIndex& WithBatchReferenceName(BatchReferenceNameT&& value) { SetBatchReferenceName(std::forward<BatchReferenceNameT>(value)); return *this;}
108 private:
109
110 Aws::Vector<AttributeKey> m_orderedIndexedAttributeList;
111 bool m_orderedIndexedAttributeListHasBeenSet = false;
112
113 bool m_isUnique{false};
114 bool m_isUniqueHasBeenSet = false;
115
116 ObjectReference m_parentReference;
117 bool m_parentReferenceHasBeenSet = false;
118
119 Aws::String m_linkName;
120 bool m_linkNameHasBeenSet = false;
121
122 Aws::String m_batchReferenceName;
123 bool m_batchReferenceNameHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CloudDirectory
128} // 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