AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateIndexRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/CloudDirectoryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/clouddirectory/model/ObjectReference.h>
12#include <aws/clouddirectory/model/AttributeKey.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudDirectory
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDDIRECTORY_API CreateIndexRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateIndex"; }
34
35 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; }
45 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
46 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
47 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
48 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
49 inline CreateIndexRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
50 inline CreateIndexRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
51 inline CreateIndexRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
53
55
59 inline const Aws::Vector<AttributeKey>& GetOrderedIndexedAttributeList() const{ return m_orderedIndexedAttributeList; }
60 inline bool OrderedIndexedAttributeListHasBeenSet() const { return m_orderedIndexedAttributeListHasBeenSet; }
61 inline void SetOrderedIndexedAttributeList(const Aws::Vector<AttributeKey>& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList = value; }
62 inline void SetOrderedIndexedAttributeList(Aws::Vector<AttributeKey>&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList = std::move(value); }
65 inline CreateIndexRequest& AddOrderedIndexedAttributeList(const AttributeKey& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList.push_back(value); return *this; }
66 inline CreateIndexRequest& AddOrderedIndexedAttributeList(AttributeKey&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList.push_back(std::move(value)); return *this; }
68
70
74 inline bool GetIsUnique() const{ return m_isUnique; }
75 inline bool IsUniqueHasBeenSet() const { return m_isUniqueHasBeenSet; }
76 inline void SetIsUnique(bool value) { m_isUniqueHasBeenSet = true; m_isUnique = value; }
77 inline CreateIndexRequest& WithIsUnique(bool value) { SetIsUnique(value); return *this;}
79
81
84 inline const ObjectReference& GetParentReference() const{ return m_parentReference; }
85 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
86 inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; }
87 inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); }
88 inline CreateIndexRequest& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;}
89 inline CreateIndexRequest& WithParentReference(ObjectReference&& value) { SetParentReference(std::move(value)); return *this;}
91
93
96 inline const Aws::String& GetLinkName() const{ return m_linkName; }
97 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
98 inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; }
99 inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); }
100 inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); }
101 inline CreateIndexRequest& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;}
102 inline CreateIndexRequest& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;}
103 inline CreateIndexRequest& WithLinkName(const char* value) { SetLinkName(value); return *this;}
105 private:
106
107 Aws::String m_directoryArn;
108 bool m_directoryArnHasBeenSet = false;
109
110 Aws::Vector<AttributeKey> m_orderedIndexedAttributeList;
111 bool m_orderedIndexedAttributeListHasBeenSet = false;
112
113 bool m_isUnique;
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
123} // namespace Model
124} // namespace CloudDirectory
125} // namespace Aws
CreateIndexRequest & WithOrderedIndexedAttributeList(const Aws::Vector< AttributeKey > &value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
CreateIndexRequest & WithOrderedIndexedAttributeList(Aws::Vector< AttributeKey > &&value)
CreateIndexRequest & WithDirectoryArn(const char *value)
CreateIndexRequest & WithLinkName(const Aws::String &value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateIndexRequest & WithLinkName(Aws::String &&value)
CreateIndexRequest & WithLinkName(const char *value)
CreateIndexRequest & AddOrderedIndexedAttributeList(AttributeKey &&value)
CreateIndexRequest & WithDirectoryArn(Aws::String &&value)
const Aws::Vector< AttributeKey > & GetOrderedIndexedAttributeList() const
const ObjectReference & GetParentReference() const
void SetOrderedIndexedAttributeList(Aws::Vector< AttributeKey > &&value)
CreateIndexRequest & WithParentReference(const ObjectReference &value)
void SetOrderedIndexedAttributeList(const Aws::Vector< AttributeKey > &value)
void SetParentReference(const ObjectReference &value)
virtual const char * GetServiceRequestName() const override
CreateIndexRequest & WithParentReference(ObjectReference &&value)
CreateIndexRequest & WithIsUnique(bool value)
CreateIndexRequest & AddOrderedIndexedAttributeList(const AttributeKey &value)
CreateIndexRequest & WithDirectoryArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector