AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateComputeNodeGroupRequest.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/pcs/PCSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pcs/model/CustomLaunchTemplate.h>
12#include <aws/pcs/model/PurchaseOption.h>
13#include <aws/pcs/model/SpotOptions.h>
14#include <aws/pcs/model/ScalingConfigurationRequest.h>
15#include <aws/pcs/model/UpdateComputeNodeGroupSlurmConfigurationRequest.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace PCS
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateComputeNodeGroup"; }
38
39 AWS_PCS_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
49 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
50 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
51 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
52 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
54 inline UpdateComputeNodeGroupRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
55 inline UpdateComputeNodeGroupRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
57
59
62 inline const Aws::String& GetComputeNodeGroupIdentifier() const{ return m_computeNodeGroupIdentifier; }
63 inline bool ComputeNodeGroupIdentifierHasBeenSet() const { return m_computeNodeGroupIdentifierHasBeenSet; }
64 inline void SetComputeNodeGroupIdentifier(const Aws::String& value) { m_computeNodeGroupIdentifierHasBeenSet = true; m_computeNodeGroupIdentifier = value; }
65 inline void SetComputeNodeGroupIdentifier(Aws::String&& value) { m_computeNodeGroupIdentifierHasBeenSet = true; m_computeNodeGroupIdentifier = std::move(value); }
66 inline void SetComputeNodeGroupIdentifier(const char* value) { m_computeNodeGroupIdentifierHasBeenSet = true; m_computeNodeGroupIdentifier.assign(value); }
71
73
78 inline const Aws::String& GetAmiId() const{ return m_amiId; }
79 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
80 inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
81 inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
82 inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
83 inline UpdateComputeNodeGroupRequest& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
84 inline UpdateComputeNodeGroupRequest& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
85 inline UpdateComputeNodeGroupRequest& WithAmiId(const char* value) { SetAmiId(value); return *this;}
87
89
93 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
94 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
95 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
96 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
98 inline UpdateComputeNodeGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
99 inline UpdateComputeNodeGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
100 inline UpdateComputeNodeGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
101 inline UpdateComputeNodeGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
103
105
106 inline const CustomLaunchTemplate& GetCustomLaunchTemplate() const{ return m_customLaunchTemplate; }
107 inline bool CustomLaunchTemplateHasBeenSet() const { return m_customLaunchTemplateHasBeenSet; }
108 inline void SetCustomLaunchTemplate(const CustomLaunchTemplate& value) { m_customLaunchTemplateHasBeenSet = true; m_customLaunchTemplate = value; }
109 inline void SetCustomLaunchTemplate(CustomLaunchTemplate&& value) { m_customLaunchTemplateHasBeenSet = true; m_customLaunchTemplate = std::move(value); }
113
115
122 inline const PurchaseOption& GetPurchaseOption() const{ return m_purchaseOption; }
123 inline bool PurchaseOptionHasBeenSet() const { return m_purchaseOptionHasBeenSet; }
124 inline void SetPurchaseOption(const PurchaseOption& value) { m_purchaseOptionHasBeenSet = true; m_purchaseOption = value; }
125 inline void SetPurchaseOption(PurchaseOption&& value) { m_purchaseOptionHasBeenSet = true; m_purchaseOption = std::move(value); }
127 inline UpdateComputeNodeGroupRequest& WithPurchaseOption(PurchaseOption&& value) { SetPurchaseOption(std::move(value)); return *this;}
129
131
132 inline const SpotOptions& GetSpotOptions() const{ return m_spotOptions; }
133 inline bool SpotOptionsHasBeenSet() const { return m_spotOptionsHasBeenSet; }
134 inline void SetSpotOptions(const SpotOptions& value) { m_spotOptionsHasBeenSet = true; m_spotOptions = value; }
135 inline void SetSpotOptions(SpotOptions&& value) { m_spotOptionsHasBeenSet = true; m_spotOptions = std::move(value); }
136 inline UpdateComputeNodeGroupRequest& WithSpotOptions(const SpotOptions& value) { SetSpotOptions(value); return *this;}
137 inline UpdateComputeNodeGroupRequest& WithSpotOptions(SpotOptions&& value) { SetSpotOptions(std::move(value)); return *this;}
139
141
144 inline const ScalingConfigurationRequest& GetScalingConfiguration() const{ return m_scalingConfiguration; }
145 inline bool ScalingConfigurationHasBeenSet() const { return m_scalingConfigurationHasBeenSet; }
146 inline void SetScalingConfiguration(const ScalingConfigurationRequest& value) { m_scalingConfigurationHasBeenSet = true; m_scalingConfiguration = value; }
147 inline void SetScalingConfiguration(ScalingConfigurationRequest&& value) { m_scalingConfigurationHasBeenSet = true; m_scalingConfiguration = std::move(value); }
151
153
165 inline const Aws::String& GetIamInstanceProfileArn() const{ return m_iamInstanceProfileArn; }
166 inline bool IamInstanceProfileArnHasBeenSet() const { return m_iamInstanceProfileArnHasBeenSet; }
167 inline void SetIamInstanceProfileArn(const Aws::String& value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn = value; }
168 inline void SetIamInstanceProfileArn(Aws::String&& value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn = std::move(value); }
169 inline void SetIamInstanceProfileArn(const char* value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn.assign(value); }
172 inline UpdateComputeNodeGroupRequest& WithIamInstanceProfileArn(const char* value) { SetIamInstanceProfileArn(value); return *this;}
174
176
179 inline const UpdateComputeNodeGroupSlurmConfigurationRequest& GetSlurmConfiguration() const{ return m_slurmConfiguration; }
180 inline bool SlurmConfigurationHasBeenSet() const { return m_slurmConfigurationHasBeenSet; }
181 inline void SetSlurmConfiguration(const UpdateComputeNodeGroupSlurmConfigurationRequest& value) { m_slurmConfigurationHasBeenSet = true; m_slurmConfiguration = value; }
182 inline void SetSlurmConfiguration(UpdateComputeNodeGroupSlurmConfigurationRequest&& value) { m_slurmConfigurationHasBeenSet = true; m_slurmConfiguration = std::move(value); }
186
188
197 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
198 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
199 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
200 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
201 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
202 inline UpdateComputeNodeGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
203 inline UpdateComputeNodeGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
204 inline UpdateComputeNodeGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
206 private:
207
208 Aws::String m_clusterIdentifier;
209 bool m_clusterIdentifierHasBeenSet = false;
210
211 Aws::String m_computeNodeGroupIdentifier;
212 bool m_computeNodeGroupIdentifierHasBeenSet = false;
213
214 Aws::String m_amiId;
215 bool m_amiIdHasBeenSet = false;
216
217 Aws::Vector<Aws::String> m_subnetIds;
218 bool m_subnetIdsHasBeenSet = false;
219
220 CustomLaunchTemplate m_customLaunchTemplate;
221 bool m_customLaunchTemplateHasBeenSet = false;
222
223 PurchaseOption m_purchaseOption;
224 bool m_purchaseOptionHasBeenSet = false;
225
226 SpotOptions m_spotOptions;
227 bool m_spotOptionsHasBeenSet = false;
228
229 ScalingConfigurationRequest m_scalingConfiguration;
230 bool m_scalingConfigurationHasBeenSet = false;
231
232 Aws::String m_iamInstanceProfileArn;
233 bool m_iamInstanceProfileArnHasBeenSet = false;
234
236 bool m_slurmConfigurationHasBeenSet = false;
237
238 Aws::String m_clientToken;
239 bool m_clientTokenHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace PCS
244} // namespace Aws
UpdateComputeNodeGroupRequest & WithAmiId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
UpdateComputeNodeGroupRequest & WithAmiId(const char *value)
void SetSlurmConfiguration(UpdateComputeNodeGroupSlurmConfigurationRequest &&value)
void SetScalingConfiguration(ScalingConfigurationRequest &&value)
UpdateComputeNodeGroupRequest & WithClusterIdentifier(const Aws::String &value)
UpdateComputeNodeGroupRequest & WithClusterIdentifier(Aws::String &&value)
const CustomLaunchTemplate & GetCustomLaunchTemplate() const
UpdateComputeNodeGroupRequest & WithScalingConfiguration(ScalingConfigurationRequest &&value)
AWS_PCS_API Aws::String SerializePayload() const override
UpdateComputeNodeGroupRequest & WithClientToken(const Aws::String &value)
const ScalingConfigurationRequest & GetScalingConfiguration() const
void SetCustomLaunchTemplate(const CustomLaunchTemplate &value)
UpdateComputeNodeGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateComputeNodeGroupRequest & WithSlurmConfiguration(UpdateComputeNodeGroupSlurmConfigurationRequest &&value)
UpdateComputeNodeGroupRequest & WithPurchaseOption(const PurchaseOption &value)
UpdateComputeNodeGroupRequest & AddSubnetIds(const Aws::String &value)
UpdateComputeNodeGroupRequest & WithAmiId(const Aws::String &value)
UpdateComputeNodeGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
UpdateComputeNodeGroupRequest & WithClientToken(const char *value)
UpdateComputeNodeGroupRequest & WithClientToken(Aws::String &&value)
UpdateComputeNodeGroupRequest & AddSubnetIds(Aws::String &&value)
UpdateComputeNodeGroupRequest & WithCustomLaunchTemplate(CustomLaunchTemplate &&value)
UpdateComputeNodeGroupRequest & WithIamInstanceProfileArn(const Aws::String &value)
UpdateComputeNodeGroupRequest & WithIamInstanceProfileArn(Aws::String &&value)
UpdateComputeNodeGroupRequest & AddSubnetIds(const char *value)
UpdateComputeNodeGroupRequest & WithCustomLaunchTemplate(const CustomLaunchTemplate &value)
UpdateComputeNodeGroupRequest & WithIamInstanceProfileArn(const char *value)
UpdateComputeNodeGroupRequest & WithSlurmConfiguration(const UpdateComputeNodeGroupSlurmConfigurationRequest &value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateComputeNodeGroupRequest & WithComputeNodeGroupIdentifier(const char *value)
UpdateComputeNodeGroupRequest & WithComputeNodeGroupIdentifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_PCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const UpdateComputeNodeGroupSlurmConfigurationRequest & GetSlurmConfiguration() const
UpdateComputeNodeGroupRequest & WithSpotOptions(const SpotOptions &value)
void SetSlurmConfiguration(const UpdateComputeNodeGroupSlurmConfigurationRequest &value)
UpdateComputeNodeGroupRequest & WithScalingConfiguration(const ScalingConfigurationRequest &value)
UpdateComputeNodeGroupRequest & WithComputeNodeGroupIdentifier(Aws::String &&value)
void SetScalingConfiguration(const ScalingConfigurationRequest &value)
UpdateComputeNodeGroupRequest & WithClusterIdentifier(const char *value)
UpdateComputeNodeGroupRequest & WithSpotOptions(SpotOptions &&value)
UpdateComputeNodeGroupRequest & WithPurchaseOption(PurchaseOption &&value)
void SetSubnetIds(Aws::Vector< 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