AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstancesRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lightsail/model/IpAddressType.h>
12#include <aws/lightsail/model/Tag.h>
13#include <aws/lightsail/model/AddOnRequest.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Lightsail
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LIGHTSAIL_API CreateInstancesRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateInstances"; }
35
36 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
37
39
40
42
47 inline const Aws::Vector<Aws::String>& GetInstanceNames() const{ return m_instanceNames; }
48 inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; }
49 inline void SetInstanceNames(const Aws::Vector<Aws::String>& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; }
50 inline void SetInstanceNames(Aws::Vector<Aws::String>&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); }
52 inline CreateInstancesRequest& WithInstanceNames(Aws::Vector<Aws::String>&& value) { SetInstanceNames(std::move(value)); return *this;}
53 inline CreateInstancesRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
54 inline CreateInstancesRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; }
55 inline CreateInstancesRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; }
57
59
67 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
68 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
69 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
70 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
71 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
72 inline CreateInstancesRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
73 inline CreateInstancesRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
74 inline CreateInstancesRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
76
78
87 inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; }
88 inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; }
89 inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; }
90 inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); }
91 inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); }
92 inline CreateInstancesRequest& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;}
93 inline CreateInstancesRequest& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;}
94 inline CreateInstancesRequest& WithBlueprintId(const char* value) { SetBlueprintId(value); return *this;}
96
98
102 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
103 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
104 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
105 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
106 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
107 inline CreateInstancesRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
108 inline CreateInstancesRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
109 inline CreateInstancesRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
111
113
123 inline const Aws::String& GetUserData() const{ return m_userData; }
124 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
125 inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; }
126 inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
127 inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); }
128 inline CreateInstancesRequest& WithUserData(const Aws::String& value) { SetUserData(value); return *this;}
129 inline CreateInstancesRequest& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;}
130 inline CreateInstancesRequest& WithUserData(const char* value) { SetUserData(value); return *this;}
132
134
137 inline const Aws::String& GetKeyPairName() const{ return m_keyPairName; }
138 inline bool KeyPairNameHasBeenSet() const { return m_keyPairNameHasBeenSet; }
139 inline void SetKeyPairName(const Aws::String& value) { m_keyPairNameHasBeenSet = true; m_keyPairName = value; }
140 inline void SetKeyPairName(Aws::String&& value) { m_keyPairNameHasBeenSet = true; m_keyPairName = std::move(value); }
141 inline void SetKeyPairName(const char* value) { m_keyPairNameHasBeenSet = true; m_keyPairName.assign(value); }
142 inline CreateInstancesRequest& WithKeyPairName(const Aws::String& value) { SetKeyPairName(value); return *this;}
143 inline CreateInstancesRequest& WithKeyPairName(Aws::String&& value) { SetKeyPairName(std::move(value)); return *this;}
144 inline CreateInstancesRequest& WithKeyPairName(const char* value) { SetKeyPairName(value); return *this;}
146
148
153 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
154 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
155 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
156 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
157 inline CreateInstancesRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
158 inline CreateInstancesRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
159 inline CreateInstancesRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
160 inline CreateInstancesRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
162
164
168 inline const Aws::Vector<AddOnRequest>& GetAddOns() const{ return m_addOns; }
169 inline bool AddOnsHasBeenSet() const { return m_addOnsHasBeenSet; }
170 inline void SetAddOns(const Aws::Vector<AddOnRequest>& value) { m_addOnsHasBeenSet = true; m_addOns = value; }
171 inline void SetAddOns(Aws::Vector<AddOnRequest>&& value) { m_addOnsHasBeenSet = true; m_addOns = std::move(value); }
172 inline CreateInstancesRequest& WithAddOns(const Aws::Vector<AddOnRequest>& value) { SetAddOns(value); return *this;}
173 inline CreateInstancesRequest& WithAddOns(Aws::Vector<AddOnRequest>&& value) { SetAddOns(std::move(value)); return *this;}
174 inline CreateInstancesRequest& AddAddOns(const AddOnRequest& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(value); return *this; }
175 inline CreateInstancesRequest& AddAddOns(AddOnRequest&& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(std::move(value)); return *this; }
177
179
185 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
186 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
187 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
188 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
189 inline CreateInstancesRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
190 inline CreateInstancesRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
192 private:
193
194 Aws::Vector<Aws::String> m_instanceNames;
195 bool m_instanceNamesHasBeenSet = false;
196
197 Aws::String m_availabilityZone;
198 bool m_availabilityZoneHasBeenSet = false;
199
200 Aws::String m_blueprintId;
201 bool m_blueprintIdHasBeenSet = false;
202
203 Aws::String m_bundleId;
204 bool m_bundleIdHasBeenSet = false;
205
206 Aws::String m_userData;
207 bool m_userDataHasBeenSet = false;
208
209 Aws::String m_keyPairName;
210 bool m_keyPairNameHasBeenSet = false;
211
212 Aws::Vector<Tag> m_tags;
213 bool m_tagsHasBeenSet = false;
214
216 bool m_addOnsHasBeenSet = false;
217
218 IpAddressType m_ipAddressType;
219 bool m_ipAddressTypeHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace Lightsail
224} // namespace Aws
const Aws::Vector< AddOnRequest > & GetAddOns() const
CreateInstancesRequest & AddInstanceNames(const Aws::String &value)
CreateInstancesRequest & WithInstanceNames(Aws::Vector< Aws::String > &&value)
CreateInstancesRequest & WithAvailabilityZone(Aws::String &&value)
CreateInstancesRequest & WithTags(const Aws::Vector< Tag > &value)
CreateInstancesRequest & WithAvailabilityZone(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateInstancesRequest & WithTags(Aws::Vector< Tag > &&value)
CreateInstancesRequest & WithUserData(const char *value)
CreateInstancesRequest & WithBlueprintId(const Aws::String &value)
CreateInstancesRequest & AddAddOns(const AddOnRequest &value)
CreateInstancesRequest & WithAddOns(const Aws::Vector< AddOnRequest > &value)
CreateInstancesRequest & WithInstanceNames(const Aws::Vector< Aws::String > &value)
CreateInstancesRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateInstancesRequest & WithIpAddressType(IpAddressType &&value)
CreateInstancesRequest & AddTags(Tag &&value)
CreateInstancesRequest & WithBlueprintId(Aws::String &&value)
CreateInstancesRequest & WithAvailabilityZone(const char *value)
const Aws::Vector< Aws::String > & GetInstanceNames() const
CreateInstancesRequest & AddInstanceNames(const char *value)
CreateInstancesRequest & WithAddOns(Aws::Vector< AddOnRequest > &&value)
CreateInstancesRequest & WithBlueprintId(const char *value)
CreateInstancesRequest & WithKeyPairName(const char *value)
CreateInstancesRequest & WithBundleId(const Aws::String &value)
void SetAddOns(Aws::Vector< AddOnRequest > &&value)
void SetInstanceNames(const Aws::Vector< Aws::String > &value)
CreateInstancesRequest & AddInstanceNames(Aws::String &&value)
CreateInstancesRequest & WithBundleId(const char *value)
void SetInstanceNames(Aws::Vector< Aws::String > &&value)
void SetAddOns(const Aws::Vector< AddOnRequest > &value)
CreateInstancesRequest & WithUserData(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInstancesRequest & WithKeyPairName(const Aws::String &value)
CreateInstancesRequest & WithKeyPairName(Aws::String &&value)
CreateInstancesRequest & WithBundleId(Aws::String &&value)
CreateInstancesRequest & WithIpAddressType(const IpAddressType &value)
CreateInstancesRequest & AddAddOns(AddOnRequest &&value)
virtual const char * GetServiceRequestName() const override
CreateInstancesRequest & WithUserData(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