AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateKxVolumeRequest.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/finspace/FinspaceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/finspace/model/KxVolumeType.h>
11#include <aws/finspace/model/KxNAS1Configuration.h>
12#include <aws/finspace/model/KxAzMode.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace finspace
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_FINSPACE_API CreateKxVolumeRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateKxVolume"; }
37
38 AWS_FINSPACE_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreateKxVolumeRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreateKxVolumeRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreateKxVolumeRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
60 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
61 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
62 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
63 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
64 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
65 inline CreateKxVolumeRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
66 inline CreateKxVolumeRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
67 inline CreateKxVolumeRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
69
71
76 inline const KxVolumeType& GetVolumeType() const{ return m_volumeType; }
77 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
78 inline void SetVolumeType(const KxVolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
79 inline void SetVolumeType(KxVolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
80 inline CreateKxVolumeRequest& WithVolumeType(const KxVolumeType& value) { SetVolumeType(value); return *this;}
81 inline CreateKxVolumeRequest& WithVolumeType(KxVolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetVolumeName() const{ return m_volumeName; }
89 inline bool VolumeNameHasBeenSet() const { return m_volumeNameHasBeenSet; }
90 inline void SetVolumeName(const Aws::String& value) { m_volumeNameHasBeenSet = true; m_volumeName = value; }
91 inline void SetVolumeName(Aws::String&& value) { m_volumeNameHasBeenSet = true; m_volumeName = std::move(value); }
92 inline void SetVolumeName(const char* value) { m_volumeNameHasBeenSet = true; m_volumeName.assign(value); }
93 inline CreateKxVolumeRequest& WithVolumeName(const Aws::String& value) { SetVolumeName(value); return *this;}
94 inline CreateKxVolumeRequest& WithVolumeName(Aws::String&& value) { SetVolumeName(std::move(value)); return *this;}
95 inline CreateKxVolumeRequest& WithVolumeName(const char* value) { SetVolumeName(value); return *this;}
97
99
102 inline const Aws::String& GetDescription() const{ return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
105 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
106 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
107 inline CreateKxVolumeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 inline CreateKxVolumeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
109 inline CreateKxVolumeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
111
113
118 inline const KxNAS1Configuration& GetNas1Configuration() const{ return m_nas1Configuration; }
119 inline bool Nas1ConfigurationHasBeenSet() const { return m_nas1ConfigurationHasBeenSet; }
120 inline void SetNas1Configuration(const KxNAS1Configuration& value) { m_nas1ConfigurationHasBeenSet = true; m_nas1Configuration = value; }
121 inline void SetNas1Configuration(KxNAS1Configuration&& value) { m_nas1ConfigurationHasBeenSet = true; m_nas1Configuration = std::move(value); }
123 inline CreateKxVolumeRequest& WithNas1Configuration(KxNAS1Configuration&& value) { SetNas1Configuration(std::move(value)); return *this;}
125
127
132 inline const KxAzMode& GetAzMode() const{ return m_azMode; }
133 inline bool AzModeHasBeenSet() const { return m_azModeHasBeenSet; }
134 inline void SetAzMode(const KxAzMode& value) { m_azModeHasBeenSet = true; m_azMode = value; }
135 inline void SetAzMode(KxAzMode&& value) { m_azModeHasBeenSet = true; m_azMode = std::move(value); }
136 inline CreateKxVolumeRequest& WithAzMode(const KxAzMode& value) { SetAzMode(value); return *this;}
137 inline CreateKxVolumeRequest& WithAzMode(KxAzMode&& value) { SetAzMode(std::move(value)); return *this;}
139
141
144 inline const Aws::Vector<Aws::String>& GetAvailabilityZoneIds() const{ return m_availabilityZoneIds; }
145 inline bool AvailabilityZoneIdsHasBeenSet() const { return m_availabilityZoneIdsHasBeenSet; }
146 inline void SetAvailabilityZoneIds(const Aws::Vector<Aws::String>& value) { m_availabilityZoneIdsHasBeenSet = true; m_availabilityZoneIds = value; }
147 inline void SetAvailabilityZoneIds(Aws::Vector<Aws::String>&& value) { m_availabilityZoneIdsHasBeenSet = true; m_availabilityZoneIds = std::move(value); }
150 inline CreateKxVolumeRequest& AddAvailabilityZoneIds(const Aws::String& value) { m_availabilityZoneIdsHasBeenSet = true; m_availabilityZoneIds.push_back(value); return *this; }
151 inline CreateKxVolumeRequest& AddAvailabilityZoneIds(Aws::String&& value) { m_availabilityZoneIdsHasBeenSet = true; m_availabilityZoneIds.push_back(std::move(value)); return *this; }
152 inline CreateKxVolumeRequest& AddAvailabilityZoneIds(const char* value) { m_availabilityZoneIdsHasBeenSet = true; m_availabilityZoneIds.push_back(value); return *this; }
154
156
160 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
161 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
162 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
163 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
164 inline CreateKxVolumeRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
165 inline CreateKxVolumeRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
166 inline CreateKxVolumeRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
167 inline CreateKxVolumeRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
168 inline CreateKxVolumeRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
169 inline CreateKxVolumeRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
170 inline CreateKxVolumeRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
171 inline CreateKxVolumeRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
172 inline CreateKxVolumeRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
174 private:
175
176 Aws::String m_clientToken;
177 bool m_clientTokenHasBeenSet = false;
178
179 Aws::String m_environmentId;
180 bool m_environmentIdHasBeenSet = false;
181
182 KxVolumeType m_volumeType;
183 bool m_volumeTypeHasBeenSet = false;
184
185 Aws::String m_volumeName;
186 bool m_volumeNameHasBeenSet = false;
187
188 Aws::String m_description;
189 bool m_descriptionHasBeenSet = false;
190
191 KxNAS1Configuration m_nas1Configuration;
192 bool m_nas1ConfigurationHasBeenSet = false;
193
194 KxAzMode m_azMode;
195 bool m_azModeHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_availabilityZoneIds;
198 bool m_availabilityZoneIdsHasBeenSet = false;
199
201 bool m_tagsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace finspace
206} // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKxVolumeRequest & WithDescription(const char *value)
AWS_FINSPACE_API Aws::String SerializePayload() const override
CreateKxVolumeRequest & WithClientToken(const char *value)
CreateKxVolumeRequest & WithDescription(Aws::String &&value)
CreateKxVolumeRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateKxVolumeRequest & WithAzMode(KxAzMode &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKxVolumeRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateKxVolumeRequest & WithVolumeType(KxVolumeType &&value)
CreateKxVolumeRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateKxVolumeRequest & AddAvailabilityZoneIds(Aws::String &&value)
CreateKxVolumeRequest & WithVolumeType(const KxVolumeType &value)
CreateKxVolumeRequest & WithAvailabilityZoneIds(Aws::Vector< Aws::String > &&value)
void SetAvailabilityZoneIds(const Aws::Vector< Aws::String > &value)
CreateKxVolumeRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateKxVolumeRequest & WithDescription(const Aws::String &value)
CreateKxVolumeRequest & AddAvailabilityZoneIds(const char *value)
CreateKxVolumeRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKxVolumeRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKxVolumeRequest & WithAvailabilityZoneIds(const Aws::Vector< Aws::String > &value)
CreateKxVolumeRequest & WithClientToken(Aws::String &&value)
CreateKxVolumeRequest & WithVolumeName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateKxVolumeRequest & AddTags(const char *key, const char *value)
void SetEnvironmentId(const Aws::String &value)
CreateKxVolumeRequest & WithEnvironmentId(const Aws::String &value)
CreateKxVolumeRequest & AddTags(const char *key, Aws::String &&value)
CreateKxVolumeRequest & WithEnvironmentId(Aws::String &&value)
CreateKxVolumeRequest & WithVolumeName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKxVolumeRequest & WithClientToken(const Aws::String &value)
const KxNAS1Configuration & GetNas1Configuration() const
void SetNas1Configuration(KxNAS1Configuration &&value)
CreateKxVolumeRequest & WithNas1Configuration(KxNAS1Configuration &&value)
CreateKxVolumeRequest & WithVolumeName(const Aws::String &value)
CreateKxVolumeRequest & WithEnvironmentId(const char *value)
CreateKxVolumeRequest & AddTags(Aws::String &&key, const char *value)
CreateKxVolumeRequest & WithAzMode(const KxAzMode &value)
CreateKxVolumeRequest & AddAvailabilityZoneIds(const Aws::String &value)
void SetNas1Configuration(const KxNAS1Configuration &value)
void SetAvailabilityZoneIds(Aws::Vector< Aws::String > &&value)
void SetVolumeType(const KxVolumeType &value)
const Aws::Vector< Aws::String > & GetAvailabilityZoneIds() const
CreateKxVolumeRequest & WithNas1Configuration(const KxNAS1Configuration &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector