AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
UpdateClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/snowball/SnowballRequest.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10#include <aws/snowball/model/JobResource.h>
11#include <aws/snowball/model/Notification.h>
12#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
13#include <aws/snowball/model/ShippingOption.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Snowball {
19namespace Model {
20
24 public:
25 AWS_SNOWBALL_API UpdateClusterRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateCluster"; }
32
33 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetClusterId() const { return m_clusterId; }
43 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
44 template <typename ClusterIdT = Aws::String>
45 void SetClusterId(ClusterIdT&& value) {
46 m_clusterIdHasBeenSet = true;
47 m_clusterId = std::forward<ClusterIdT>(value);
48 }
49 template <typename ClusterIdT = Aws::String>
50 UpdateClusterRequest& WithClusterId(ClusterIdT&& value) {
51 SetClusterId(std::forward<ClusterIdT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
64 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
65 template <typename RoleARNT = Aws::String>
66 void SetRoleARN(RoleARNT&& value) {
67 m_roleARNHasBeenSet = true;
68 m_roleARN = std::forward<RoleARNT>(value);
69 }
70 template <typename RoleARNT = Aws::String>
71 UpdateClusterRequest& WithRoleARN(RoleARNT&& value) {
72 SetRoleARN(std::forward<RoleARNT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 UpdateClusterRequest& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline const JobResource& GetResources() const { return m_resources; }
101 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
102 template <typename ResourcesT = JobResource>
103 void SetResources(ResourcesT&& value) {
104 m_resourcesHasBeenSet = true;
105 m_resources = std::forward<ResourcesT>(value);
106 }
107 template <typename ResourcesT = JobResource>
108 UpdateClusterRequest& WithResources(ResourcesT&& value) {
109 SetResources(std::forward<ResourcesT>(value));
110 return *this;
111 }
113
115
120 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
121 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
122 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
123 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
124 m_onDeviceServiceConfigurationHasBeenSet = true;
125 m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value);
126 }
127 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
128 UpdateClusterRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
129 SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetAddressId() const { return m_addressId; }
139 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
140 template <typename AddressIdT = Aws::String>
141 void SetAddressId(AddressIdT&& value) {
142 m_addressIdHasBeenSet = true;
143 m_addressId = std::forward<AddressIdT>(value);
144 }
145 template <typename AddressIdT = Aws::String>
146 UpdateClusterRequest& WithAddressId(AddressIdT&& value) {
147 SetAddressId(std::forward<AddressIdT>(value));
148 return *this;
149 }
151
153
157 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
158 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
160 m_shippingOptionHasBeenSet = true;
161 m_shippingOption = value;
162 }
164 SetShippingOption(value);
165 return *this;
166 }
168
170
173 inline const Notification& GetNotification() const { return m_notification; }
174 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
175 template <typename NotificationT = Notification>
176 void SetNotification(NotificationT&& value) {
177 m_notificationHasBeenSet = true;
178 m_notification = std::forward<NotificationT>(value);
179 }
180 template <typename NotificationT = Notification>
181 UpdateClusterRequest& WithNotification(NotificationT&& value) {
182 SetNotification(std::forward<NotificationT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
193 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
194 template <typename ForwardingAddressIdT = Aws::String>
195 void SetForwardingAddressId(ForwardingAddressIdT&& value) {
196 m_forwardingAddressIdHasBeenSet = true;
197 m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value);
198 }
199 template <typename ForwardingAddressIdT = Aws::String>
200 UpdateClusterRequest& WithForwardingAddressId(ForwardingAddressIdT&& value) {
201 SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_clusterId;
207 bool m_clusterIdHasBeenSet = false;
208
209 Aws::String m_roleARN;
210 bool m_roleARNHasBeenSet = false;
211
212 Aws::String m_description;
213 bool m_descriptionHasBeenSet = false;
214
215 JobResource m_resources;
216 bool m_resourcesHasBeenSet = false;
217
218 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
219 bool m_onDeviceServiceConfigurationHasBeenSet = false;
220
221 Aws::String m_addressId;
222 bool m_addressIdHasBeenSet = false;
223
224 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
225 bool m_shippingOptionHasBeenSet = false;
226
227 Notification m_notification;
228 bool m_notificationHasBeenSet = false;
229
230 Aws::String m_forwardingAddressId;
231 bool m_forwardingAddressIdHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace Snowball
236} // namespace Aws
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
void SetForwardingAddressId(ForwardingAddressIdT &&value)
UpdateClusterRequest & WithDescription(DescriptionT &&value)
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SNOWBALL_API Aws::String SerializePayload() const override
UpdateClusterRequest & WithAddressId(AddressIdT &&value)
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
UpdateClusterRequest & WithShippingOption(ShippingOption value)
UpdateClusterRequest & WithResources(ResourcesT &&value)
UpdateClusterRequest & WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
UpdateClusterRequest & WithRoleARN(RoleARNT &&value)
UpdateClusterRequest & WithForwardingAddressId(ForwardingAddressIdT &&value)
AWS_SNOWBALL_API UpdateClusterRequest()=default
UpdateClusterRequest & WithNotification(NotificationT &&value)
virtual const char * GetServiceRequestName() const override
UpdateClusterRequest & WithClusterId(ClusterIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String