AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DirectoryArnT = Aws::String>
47 void SetDirectoryArn(DirectoryArnT&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::forward<DirectoryArnT>(value); }
48 template<typename DirectoryArnT = Aws::String>
49 CreateIndexRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
51
53
57 inline const Aws::Vector<AttributeKey>& GetOrderedIndexedAttributeList() const { return m_orderedIndexedAttributeList; }
58 inline bool OrderedIndexedAttributeListHasBeenSet() const { return m_orderedIndexedAttributeListHasBeenSet; }
59 template<typename OrderedIndexedAttributeListT = Aws::Vector<AttributeKey>>
60 void SetOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList = std::forward<OrderedIndexedAttributeListT>(value); }
61 template<typename OrderedIndexedAttributeListT = Aws::Vector<AttributeKey>>
62 CreateIndexRequest& WithOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) { SetOrderedIndexedAttributeList(std::forward<OrderedIndexedAttributeListT>(value)); return *this;}
63 template<typename OrderedIndexedAttributeListT = AttributeKey>
64 CreateIndexRequest& AddOrderedIndexedAttributeList(OrderedIndexedAttributeListT&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList.emplace_back(std::forward<OrderedIndexedAttributeListT>(value)); return *this; }
66
68
72 inline bool GetIsUnique() const { return m_isUnique; }
73 inline bool IsUniqueHasBeenSet() const { return m_isUniqueHasBeenSet; }
74 inline void SetIsUnique(bool value) { m_isUniqueHasBeenSet = true; m_isUnique = value; }
75 inline CreateIndexRequest& WithIsUnique(bool value) { SetIsUnique(value); return *this;}
77
79
82 inline const ObjectReference& GetParentReference() const { return m_parentReference; }
83 inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; }
84 template<typename ParentReferenceT = ObjectReference>
85 void SetParentReference(ParentReferenceT&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::forward<ParentReferenceT>(value); }
86 template<typename ParentReferenceT = ObjectReference>
87 CreateIndexRequest& WithParentReference(ParentReferenceT&& value) { SetParentReference(std::forward<ParentReferenceT>(value)); return *this;}
89
91
94 inline const Aws::String& GetLinkName() const { return m_linkName; }
95 inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; }
96 template<typename LinkNameT = Aws::String>
97 void SetLinkName(LinkNameT&& value) { m_linkNameHasBeenSet = true; m_linkName = std::forward<LinkNameT>(value); }
98 template<typename LinkNameT = Aws::String>
99 CreateIndexRequest& WithLinkName(LinkNameT&& value) { SetLinkName(std::forward<LinkNameT>(value)); return *this;}
101 private:
102
103 Aws::String m_directoryArn;
104 bool m_directoryArnHasBeenSet = false;
105
106 Aws::Vector<AttributeKey> m_orderedIndexedAttributeList;
107 bool m_orderedIndexedAttributeListHasBeenSet = false;
108
109 bool m_isUnique{false};
110 bool m_isUniqueHasBeenSet = false;
111
112 ObjectReference m_parentReference;
113 bool m_parentReferenceHasBeenSet = false;
114
115 Aws::String m_linkName;
116 bool m_linkNameHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace CloudDirectory
121} // namespace Aws
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
AWS_CLOUDDIRECTORY_API CreateIndexRequest()=default
CreateIndexRequest & WithOrderedIndexedAttributeList(OrderedIndexedAttributeListT &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateIndexRequest & WithParentReference(ParentReferenceT &&value)
const Aws::Vector< AttributeKey > & GetOrderedIndexedAttributeList() const
const ObjectReference & GetParentReference() const
CreateIndexRequest & WithDirectoryArn(DirectoryArnT &&value)
CreateIndexRequest & AddOrderedIndexedAttributeList(OrderedIndexedAttributeListT &&value)
virtual const char * GetServiceRequestName() const override
CreateIndexRequest & WithIsUnique(bool value)
void SetParentReference(ParentReferenceT &&value)
CreateIndexRequest & WithLinkName(LinkNameT &&value)
void SetOrderedIndexedAttributeList(OrderedIndexedAttributeListT &&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