AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyHostsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/HostRecovery.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/HostMaintenance.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/AutoPlacement.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EC2_API ModifyHostsRequest();
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 "ModifyHosts"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline const HostRecovery& GetHostRecovery() const{ return m_hostRecovery; }
51 inline bool HostRecoveryHasBeenSet() const { return m_hostRecoveryHasBeenSet; }
52 inline void SetHostRecovery(const HostRecovery& value) { m_hostRecoveryHasBeenSet = true; m_hostRecovery = value; }
53 inline void SetHostRecovery(HostRecovery&& value) { m_hostRecoveryHasBeenSet = true; m_hostRecovery = std::move(value); }
54 inline ModifyHostsRequest& WithHostRecovery(const HostRecovery& value) { SetHostRecovery(value); return *this;}
55 inline ModifyHostsRequest& WithHostRecovery(HostRecovery&& value) { SetHostRecovery(std::move(value)); return *this;}
57
59
67 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
68 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
69 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
70 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
71 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
72 inline ModifyHostsRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
73 inline ModifyHostsRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
74 inline ModifyHostsRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
76
78
86 inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; }
87 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
88 inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
89 inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
90 inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); }
91 inline ModifyHostsRequest& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;}
92 inline ModifyHostsRequest& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;}
93 inline ModifyHostsRequest& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;}
95
97
103 inline const HostMaintenance& GetHostMaintenance() const{ return m_hostMaintenance; }
104 inline bool HostMaintenanceHasBeenSet() const { return m_hostMaintenanceHasBeenSet; }
105 inline void SetHostMaintenance(const HostMaintenance& value) { m_hostMaintenanceHasBeenSet = true; m_hostMaintenance = value; }
106 inline void SetHostMaintenance(HostMaintenance&& value) { m_hostMaintenanceHasBeenSet = true; m_hostMaintenance = std::move(value); }
107 inline ModifyHostsRequest& WithHostMaintenance(const HostMaintenance& value) { SetHostMaintenance(value); return *this;}
108 inline ModifyHostsRequest& WithHostMaintenance(HostMaintenance&& value) { SetHostMaintenance(std::move(value)); return *this;}
110
112
115 inline const Aws::Vector<Aws::String>& GetHostIds() const{ return m_hostIds; }
116 inline bool HostIdsHasBeenSet() const { return m_hostIdsHasBeenSet; }
117 inline void SetHostIds(const Aws::Vector<Aws::String>& value) { m_hostIdsHasBeenSet = true; m_hostIds = value; }
118 inline void SetHostIds(Aws::Vector<Aws::String>&& value) { m_hostIdsHasBeenSet = true; m_hostIds = std::move(value); }
119 inline ModifyHostsRequest& WithHostIds(const Aws::Vector<Aws::String>& value) { SetHostIds(value); return *this;}
120 inline ModifyHostsRequest& WithHostIds(Aws::Vector<Aws::String>&& value) { SetHostIds(std::move(value)); return *this;}
121 inline ModifyHostsRequest& AddHostIds(const Aws::String& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
122 inline ModifyHostsRequest& AddHostIds(Aws::String&& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(std::move(value)); return *this; }
123 inline ModifyHostsRequest& AddHostIds(const char* value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
125
127
130 inline const AutoPlacement& GetAutoPlacement() const{ return m_autoPlacement; }
131 inline bool AutoPlacementHasBeenSet() const { return m_autoPlacementHasBeenSet; }
132 inline void SetAutoPlacement(const AutoPlacement& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = value; }
133 inline void SetAutoPlacement(AutoPlacement&& value) { m_autoPlacementHasBeenSet = true; m_autoPlacement = std::move(value); }
134 inline ModifyHostsRequest& WithAutoPlacement(const AutoPlacement& value) { SetAutoPlacement(value); return *this;}
135 inline ModifyHostsRequest& WithAutoPlacement(AutoPlacement&& value) { SetAutoPlacement(std::move(value)); return *this;}
137 private:
138
139 HostRecovery m_hostRecovery;
140 bool m_hostRecoveryHasBeenSet = false;
141
142 Aws::String m_instanceType;
143 bool m_instanceTypeHasBeenSet = false;
144
145 Aws::String m_instanceFamily;
146 bool m_instanceFamilyHasBeenSet = false;
147
148 HostMaintenance m_hostMaintenance;
149 bool m_hostMaintenanceHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_hostIds;
152 bool m_hostIdsHasBeenSet = false;
153
154 AutoPlacement m_autoPlacement;
155 bool m_autoPlacementHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace EC2
160} // namespace Aws
void SetHostRecovery(HostRecovery &&value)
void SetInstanceFamily(const char *value)
const Aws::String & GetInstanceFamily() const
void SetHostMaintenance(HostMaintenance &&value)
virtual const char * GetServiceRequestName() const override
void SetInstanceFamily(const Aws::String &value)
const AutoPlacement & GetAutoPlacement() const
void SetHostIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyHostsRequest & WithInstanceFamily(Aws::String &&value)
ModifyHostsRequest & WithHostMaintenance(const HostMaintenance &value)
ModifyHostsRequest & WithHostRecovery(HostRecovery &&value)
void SetInstanceType(Aws::String &&value)
void SetAutoPlacement(const AutoPlacement &value)
ModifyHostsRequest & WithHostIds(const Aws::Vector< Aws::String > &value)
const HostMaintenance & GetHostMaintenance() const
void SetInstanceFamily(Aws::String &&value)
ModifyHostsRequest & WithHostRecovery(const HostRecovery &value)
void SetInstanceType(const Aws::String &value)
ModifyHostsRequest & WithInstanceFamily(const char *value)
ModifyHostsRequest & WithAutoPlacement(const AutoPlacement &value)
ModifyHostsRequest & WithHostMaintenance(HostMaintenance &&value)
ModifyHostsRequest & AddHostIds(Aws::String &&value)
const HostRecovery & GetHostRecovery() const
void SetHostMaintenance(const HostMaintenance &value)
void SetHostIds(Aws::Vector< Aws::String > &&value)
ModifyHostsRequest & WithInstanceType(Aws::String &&value)
ModifyHostsRequest & AddHostIds(const char *value)
ModifyHostsRequest & WithInstanceType(const Aws::String &value)
ModifyHostsRequest & WithAutoPlacement(AutoPlacement &&value)
const Aws::String & GetInstanceType() const
void SetHostRecovery(const HostRecovery &value)
const Aws::Vector< Aws::String > & GetHostIds() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetInstanceType(const char *value)
ModifyHostsRequest & AddHostIds(const Aws::String &value)
ModifyHostsRequest & WithInstanceFamily(const Aws::String &value)
ModifyHostsRequest & WithHostIds(Aws::Vector< Aws::String > &&value)
ModifyHostsRequest & WithInstanceType(const char *value)
void SetAutoPlacement(AutoPlacement &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector