AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateClusterRequest.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/snowball/SnowballRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/snowball/model/JobResource.h>
11#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
12#include <aws/snowball/model/ShippingOption.h>
13#include <aws/snowball/model/Notification.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Snowball
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SNOWBALL_API UpdateClusterRequest() = default;
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 "UpdateCluster"; }
35
36 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetClusterId() const { return m_clusterId; }
47 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
48 template<typename ClusterIdT = Aws::String>
49 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
50 template<typename ClusterIdT = Aws::String>
51 UpdateClusterRequest& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
53
55
61 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
62 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
63 template<typename RoleARNT = Aws::String>
64 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
65 template<typename RoleARNT = Aws::String>
66 UpdateClusterRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 UpdateClusterRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
86 inline const JobResource& GetResources() const { return m_resources; }
87 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
88 template<typename ResourcesT = JobResource>
89 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
90 template<typename ResourcesT = JobResource>
91 UpdateClusterRequest& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
93
95
100 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
101 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
102 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
103 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value); }
104 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
105 UpdateClusterRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value)); return *this;}
107
109
112 inline const Aws::String& GetAddressId() const { return m_addressId; }
113 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
114 template<typename AddressIdT = Aws::String>
115 void SetAddressId(AddressIdT&& value) { m_addressIdHasBeenSet = true; m_addressId = std::forward<AddressIdT>(value); }
116 template<typename AddressIdT = Aws::String>
117 UpdateClusterRequest& WithAddressId(AddressIdT&& value) { SetAddressId(std::forward<AddressIdT>(value)); return *this;}
119
121
125 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
126 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
127 inline void SetShippingOption(ShippingOption value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
130
132
135 inline const Notification& GetNotification() const { return m_notification; }
136 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
137 template<typename NotificationT = Notification>
138 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
139 template<typename NotificationT = Notification>
140 UpdateClusterRequest& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
142
144
148 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
149 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
150 template<typename ForwardingAddressIdT = Aws::String>
151 void SetForwardingAddressId(ForwardingAddressIdT&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value); }
152 template<typename ForwardingAddressIdT = Aws::String>
153 UpdateClusterRequest& WithForwardingAddressId(ForwardingAddressIdT&& value) { SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value)); return *this;}
155 private:
156
157 Aws::String m_clusterId;
158 bool m_clusterIdHasBeenSet = false;
159
160 Aws::String m_roleARN;
161 bool m_roleARNHasBeenSet = false;
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165
166 JobResource m_resources;
167 bool m_resourcesHasBeenSet = false;
168
169 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
170 bool m_onDeviceServiceConfigurationHasBeenSet = false;
171
172 Aws::String m_addressId;
173 bool m_addressIdHasBeenSet = false;
174
175 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
176 bool m_shippingOptionHasBeenSet = false;
177
178 Notification m_notification;
179 bool m_notificationHasBeenSet = false;
180
181 Aws::String m_forwardingAddressId;
182 bool m_forwardingAddressIdHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace Snowball
187} // 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