AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOrderedIndexedAttributeList(const Aws::Vector<AttributeKey>& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList = value; }
53 inline void SetOrderedIndexedAttributeList(Aws::Vector<AttributeKey>&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList = std::move(value); }
56 inline BatchCreateIndex& AddOrderedIndexedAttributeList(const AttributeKey& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList.push_back(value); return *this; }
57 inline BatchCreateIndex& AddOrderedIndexedAttributeList(AttributeKey&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList.push_back(std::move(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 inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; }
78 inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); }
79 inline BatchCreateIndex& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;}
80 inline BatchCreateIndex& WithParentReference(ObjectReference&& value) { SetParentReference(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetLinkName() const{ return m_linkName; }
88 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
89 inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; }
90 inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); }
91 inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); }
92 inline BatchCreateIndex& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;}
93 inline BatchCreateIndex& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;}
94 inline BatchCreateIndex& WithLinkName(const char* value) { SetLinkName(value); return *this;}
96
98
103 inline const Aws::String& GetBatchReferenceName() const{ return m_batchReferenceName; }
104 inline bool BatchReferenceNameHasBeenSet() const { return m_batchReferenceNameHasBeenSet; }
105 inline void SetBatchReferenceName(const Aws::String& value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName = value; }
106 inline void SetBatchReferenceName(Aws::String&& value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName = std::move(value); }
107 inline void SetBatchReferenceName(const char* value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName.assign(value); }
108 inline BatchCreateIndex& WithBatchReferenceName(const Aws::String& value) { SetBatchReferenceName(value); return *this;}
109 inline BatchCreateIndex& WithBatchReferenceName(Aws::String&& value) { SetBatchReferenceName(std::move(value)); return *this;}
110 inline BatchCreateIndex& WithBatchReferenceName(const char* value) { SetBatchReferenceName(value); return *this;}
112 private:
113
114 Aws::Vector<AttributeKey> m_orderedIndexedAttributeList;
115 bool m_orderedIndexedAttributeListHasBeenSet = false;
116
117 bool m_isUnique;
118 bool m_isUniqueHasBeenSet = false;
119
120 ObjectReference m_parentReference;
121 bool m_parentReferenceHasBeenSet = false;
122
123 Aws::String m_linkName;
124 bool m_linkNameHasBeenSet = false;
125
126 Aws::String m_batchReferenceName;
127 bool m_batchReferenceNameHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CloudDirectory
132} // namespace Aws
void SetLinkName(const Aws::String &value)
void SetParentReference(ObjectReference &&value)
BatchCreateIndex & WithBatchReferenceName(Aws::String &&value)
void SetOrderedIndexedAttributeList(Aws::Vector< AttributeKey > &&value)
void SetOrderedIndexedAttributeList(const Aws::Vector< AttributeKey > &value)
BatchCreateIndex & AddOrderedIndexedAttributeList(AttributeKey &&value)
BatchCreateIndex & AddOrderedIndexedAttributeList(const AttributeKey &value)
BatchCreateIndex & WithIsUnique(bool value)
const Aws::String & GetBatchReferenceName() const
BatchCreateIndex & WithParentReference(ObjectReference &&value)
BatchCreateIndex & WithBatchReferenceName(const char *value)
BatchCreateIndex & WithOrderedIndexedAttributeList(const Aws::Vector< AttributeKey > &value)
BatchCreateIndex & WithParentReference(const ObjectReference &value)
const ObjectReference & GetParentReference() const
BatchCreateIndex & WithBatchReferenceName(const Aws::String &value)
AWS_CLOUDDIRECTORY_API BatchCreateIndex(Aws::Utils::Json::JsonView jsonValue)
BatchCreateIndex & WithLinkName(const char *value)
void SetBatchReferenceName(const Aws::String &value)
BatchCreateIndex & WithOrderedIndexedAttributeList(Aws::Vector< AttributeKey > &&value)
BatchCreateIndex & WithLinkName(Aws::String &&value)
AWS_CLOUDDIRECTORY_API BatchCreateIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParentReference(const ObjectReference &value)
BatchCreateIndex & WithLinkName(const Aws::String &value)
const Aws::Vector< AttributeKey > & GetOrderedIndexedAttributeList() const
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