AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCollectionRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearchserverless/model/StandbyReplicas.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/opensearchserverless/model/CollectionType.h>
13#include <aws/opensearchserverless/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace OpenSearchServerless
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_OPENSEARCHSERVERLESS_API CreateCollectionRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateCollection"; }
36
37 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
38
39 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline CreateCollectionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateCollectionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateCollectionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline CreateCollectionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline CreateCollectionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline CreateCollectionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const Aws::String& GetName() const{ return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 inline CreateCollectionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
80 inline CreateCollectionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 inline CreateCollectionRequest& WithName(const char* value) { SetName(value); return *this;}
83
85
88 inline const StandbyReplicas& GetStandbyReplicas() const{ return m_standbyReplicas; }
89 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
90 inline void SetStandbyReplicas(const StandbyReplicas& value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = value; }
91 inline void SetStandbyReplicas(StandbyReplicas&& value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = std::move(value); }
93 inline CreateCollectionRequest& WithStandbyReplicas(StandbyReplicas&& value) { SetStandbyReplicas(std::move(value)); return *this;}
95
97
101 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateCollectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
106 inline CreateCollectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
107 inline CreateCollectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
108 inline CreateCollectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
110
112
115 inline const CollectionType& GetType() const{ return m_type; }
116 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 inline void SetType(const CollectionType& value) { m_typeHasBeenSet = true; m_type = value; }
118 inline void SetType(CollectionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
119 inline CreateCollectionRequest& WithType(const CollectionType& value) { SetType(value); return *this;}
120 inline CreateCollectionRequest& WithType(CollectionType&& value) { SetType(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_clientToken;
125 bool m_clientTokenHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 StandbyReplicas m_standbyReplicas;
134 bool m_standbyReplicasHasBeenSet = false;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_tagsHasBeenSet = false;
138
139 CollectionType m_type;
140 bool m_typeHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace OpenSearchServerless
145} // namespace Aws
CreateCollectionRequest & WithType(CollectionType &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCollectionRequest & WithDescription(const char *value)
CreateCollectionRequest & WithType(const CollectionType &value)
CreateCollectionRequest & WithName(Aws::String &&value)
CreateCollectionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateCollectionRequest & WithClientToken(const Aws::String &value)
CreateCollectionRequest & WithStandbyReplicas(StandbyReplicas &&value)
CreateCollectionRequest & WithClientToken(const char *value)
CreateCollectionRequest & WithDescription(Aws::String &&value)
CreateCollectionRequest & WithName(const Aws::String &value)
CreateCollectionRequest & WithDescription(const Aws::String &value)
CreateCollectionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateCollectionRequest & WithName(const char *value)
CreateCollectionRequest & WithClientToken(Aws::String &&value)
CreateCollectionRequest & WithStandbyReplicas(const StandbyReplicas &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