AWS SDK for C++  1.9.69
AWS SDK for C++
ModifyHostsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "ModifyHosts"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const AutoPlacement& GetAutoPlacement() const{ return m_autoPlacement; }
46 
50  inline bool AutoPlacementHasBeenSet() const { return m_autoPlacementHasBeenSet; }
51 
55  inline void SetAutoPlacement(const AutoPlacement& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = value; }
56 
60  inline void SetAutoPlacement(AutoPlacement&& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = std::move(value); }
61 
65  inline ModifyHostsRequest& WithAutoPlacement(const AutoPlacement& value) { SetAutoPlacement(value); return *this;}
66 
70  inline ModifyHostsRequest& WithAutoPlacement(AutoPlacement&& value) { SetAutoPlacement(std::move(value)); return *this;}
71 
72 
76  inline const Aws::Vector<Aws::String>& GetHostIds() const{ return m_hostIds; }
77 
81  inline bool HostIdsHasBeenSet() const { return m_hostIdsHasBeenSet; }
82 
86  inline void SetHostIds(const Aws::Vector<Aws::String>& value) { m_hostIdsHasBeenSet = true; m_hostIds = value; }
87 
91  inline void SetHostIds(Aws::Vector<Aws::String>&& value) { m_hostIdsHasBeenSet = true; m_hostIds = std::move(value); }
92 
96  inline ModifyHostsRequest& WithHostIds(const Aws::Vector<Aws::String>& value) { SetHostIds(value); return *this;}
97 
101  inline ModifyHostsRequest& WithHostIds(Aws::Vector<Aws::String>&& value) { SetHostIds(std::move(value)); return *this;}
102 
106  inline ModifyHostsRequest& AddHostIds(const Aws::String& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
107 
111  inline ModifyHostsRequest& AddHostIds(Aws::String&& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(std::move(value)); return *this; }
112 
116  inline ModifyHostsRequest& AddHostIds(const char* value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
117 
118 
125  inline const HostRecovery& GetHostRecovery() const{ return m_hostRecovery; }
126 
133  inline bool HostRecoveryHasBeenSet() const { return m_hostRecoveryHasBeenSet; }
134 
141  inline void SetHostRecovery(const HostRecovery& value) { m_hostRecoveryHasBeenSet = true; m_hostRecovery = value; }
142 
149  inline void SetHostRecovery(HostRecovery&& value) { m_hostRecoveryHasBeenSet = true; m_hostRecovery = std::move(value); }
150 
157  inline ModifyHostsRequest& WithHostRecovery(const HostRecovery& value) { SetHostRecovery(value); return *this;}
158 
165  inline ModifyHostsRequest& WithHostRecovery(HostRecovery&& value) { SetHostRecovery(std::move(value)); return *this;}
166 
167 
176  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
177 
186  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
187 
196  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
197 
206  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
207 
216  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
217 
226  inline ModifyHostsRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
227 
236  inline ModifyHostsRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
237 
246  inline ModifyHostsRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
247 
248 
257  inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; }
258 
267  inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
268 
277  inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
278 
287  inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
288 
297  inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); }
298 
307  inline ModifyHostsRequest& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;}
308 
317  inline ModifyHostsRequest& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;}
318 
327  inline ModifyHostsRequest& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;}
328 
329  private:
330 
331  AutoPlacement m_autoPlacement;
332  bool m_autoPlacementHasBeenSet;
333 
334  Aws::Vector<Aws::String> m_hostIds;
335  bool m_hostIdsHasBeenSet;
336 
337  HostRecovery m_hostRecovery;
338  bool m_hostRecoveryHasBeenSet;
339 
340  Aws::String m_instanceType;
341  bool m_instanceTypeHasBeenSet;
342 
343  Aws::String m_instanceFamily;
344  bool m_instanceFamilyHasBeenSet;
345  };
346 
347 } // namespace Model
348 } // namespace EC2
349 } // namespace Aws
Aws::EC2::Model::ModifyHostsRequest::HostRecoveryHasBeenSet
bool HostRecoveryHasBeenSet() const
Definition: ModifyHostsRequest.h:133
Aws::EC2::Model::ModifyHostsRequest::WithInstanceFamily
ModifyHostsRequest & WithInstanceFamily(const char *value)
Definition: ModifyHostsRequest.h:327
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyHostsRequest::SetAutoPlacement
void SetAutoPlacement(AutoPlacement &&value)
Definition: ModifyHostsRequest.h:60
Aws::EC2::Model::ModifyHostsRequest::WithHostIds
ModifyHostsRequest & WithHostIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyHostsRequest.h:101
Aws::EC2::Model::ModifyHostsRequest::SetInstanceFamily
void SetInstanceFamily(Aws::String &&value)
Definition: ModifyHostsRequest.h:287
Aws::EC2::Model::ModifyHostsRequest::WithHostIds
ModifyHostsRequest & WithHostIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyHostsRequest.h:96
Aws::EC2::Model::ModifyHostsRequest::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: ModifyHostsRequest.h:186
Aws::EC2::Model::ModifyHostsRequest::SetInstanceType
void SetInstanceType(const char *value)
Definition: ModifyHostsRequest.h:216
Aws::EC2::Model::ModifyHostsRequest::HostIdsHasBeenSet
bool HostIdsHasBeenSet() const
Definition: ModifyHostsRequest.h:81
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifyHostsRequest::GetAutoPlacement
const AutoPlacement & GetAutoPlacement() const
Definition: ModifyHostsRequest.h:45
HostRecovery.h
AWSVector.h
Aws::EC2::Model::ModifyHostsRequest::SetInstanceType
void SetInstanceType(Aws::String &&value)
Definition: ModifyHostsRequest.h:206
Aws::EC2::Model::HostRecovery
HostRecovery
Definition: HostRecovery.h:17
Aws::EC2::Model::ModifyHostsRequest::AddHostIds
ModifyHostsRequest & AddHostIds(Aws::String &&value)
Definition: ModifyHostsRequest.h:111
Aws::EC2::Model::ModifyHostsRequest::WithInstanceType
ModifyHostsRequest & WithInstanceType(const char *value)
Definition: ModifyHostsRequest.h:246
Aws::EC2::Model::ModifyHostsRequest::GetHostRecovery
const HostRecovery & GetHostRecovery() const
Definition: ModifyHostsRequest.h:125
Aws::EC2::Model::ModifyHostsRequest::SetAutoPlacement
void SetAutoPlacement(const AutoPlacement &value)
Definition: ModifyHostsRequest.h:55
Aws::EC2::Model::ModifyHostsRequest::WithHostRecovery
ModifyHostsRequest & WithHostRecovery(HostRecovery &&value)
Definition: ModifyHostsRequest.h:165
Aws::EC2::Model::AutoPlacement
AutoPlacement
Definition: AutoPlacement.h:17
Aws::EC2::Model::ModifyHostsRequest::SetInstanceType
void SetInstanceType(const Aws::String &value)
Definition: ModifyHostsRequest.h:196
Aws::EC2::Model::ModifyHostsRequest::SetHostIds
void SetHostIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyHostsRequest.h:91
EC2Request.h
Aws::EC2::Model::ModifyHostsRequest::GetHostIds
const Aws::Vector< Aws::String > & GetHostIds() const
Definition: ModifyHostsRequest.h:76
Aws::EC2::Model::ModifyHostsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyHostsRequest::SetHostRecovery
void SetHostRecovery(const HostRecovery &value)
Definition: ModifyHostsRequest.h:141
AWSString.h
AutoPlacement.h
Aws::EC2::Model::ModifyHostsRequest::WithInstanceFamily
ModifyHostsRequest & WithInstanceFamily(const Aws::String &value)
Definition: ModifyHostsRequest.h:307
Aws::EC2::Model::ModifyHostsRequest::WithInstanceType
ModifyHostsRequest & WithInstanceType(Aws::String &&value)
Definition: ModifyHostsRequest.h:236
Aws::EC2::Model::ModifyHostsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyHostsRequest.h:33
Aws::EC2::Model::ModifyHostsRequest::AddHostIds
ModifyHostsRequest & AddHostIds(const Aws::String &value)
Definition: ModifyHostsRequest.h:106
Aws::EC2::Model::ModifyHostsRequest::GetInstanceType
const Aws::String & GetInstanceType() const
Definition: ModifyHostsRequest.h:176
Aws::EC2::Model::ModifyHostsRequest::SetHostIds
void SetHostIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyHostsRequest.h:86
Aws::EC2::Model::ModifyHostsRequest::GetInstanceFamily
const Aws::String & GetInstanceFamily() const
Definition: ModifyHostsRequest.h:257
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyHostsRequest::WithAutoPlacement
ModifyHostsRequest & WithAutoPlacement(AutoPlacement &&value)
Definition: ModifyHostsRequest.h:70
Aws::EC2::Model::ModifyHostsRequest::ModifyHostsRequest
ModifyHostsRequest()
Aws::EC2::Model::ModifyHostsRequest::InstanceFamilyHasBeenSet
bool InstanceFamilyHasBeenSet() const
Definition: ModifyHostsRequest.h:267
Aws::EC2::Model::ModifyHostsRequest::SetInstanceFamily
void SetInstanceFamily(const char *value)
Definition: ModifyHostsRequest.h:297
Aws::EC2::Model::ModifyHostsRequest::WithInstanceFamily
ModifyHostsRequest & WithInstanceFamily(Aws::String &&value)
Definition: ModifyHostsRequest.h:317
Aws::EC2::Model::ModifyHostsRequest::WithInstanceType
ModifyHostsRequest & WithInstanceType(const Aws::String &value)
Definition: ModifyHostsRequest.h:226
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyHostsRequest::SetInstanceFamily
void SetInstanceFamily(const Aws::String &value)
Definition: ModifyHostsRequest.h:277
Aws::EC2::Model::ModifyHostsRequest::AutoPlacementHasBeenSet
bool AutoPlacementHasBeenSet() const
Definition: ModifyHostsRequest.h:50
Aws::EC2::Model::ModifyHostsRequest
Definition: ModifyHostsRequest.h:25
Aws::EC2::Model::ModifyHostsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyHostsRequest::AddHostIds
ModifyHostsRequest & AddHostIds(const char *value)
Definition: ModifyHostsRequest.h:116
Aws::EC2::Model::ModifyHostsRequest::SetHostRecovery
void SetHostRecovery(HostRecovery &&value)
Definition: ModifyHostsRequest.h:149
EC2_EXPORTS.h
Aws::EC2::Model::ModifyHostsRequest::WithHostRecovery
ModifyHostsRequest & WithHostRecovery(const HostRecovery &value)
Definition: ModifyHostsRequest.h:157
Aws::EC2::Model::ModifyHostsRequest::WithAutoPlacement
ModifyHostsRequest & WithAutoPlacement(const AutoPlacement &value)
Definition: ModifyHostsRequest.h:65