AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
UpdateClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pcs/PCSRequest.h>
10#include <aws/pcs/PCS_EXPORTS.h>
11#include <aws/pcs/model/UpdateClusterSlurmConfigurationRequest.h>
12#include <aws/pcs/model/UpdateSchedulerRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PCS {
18namespace Model {
19
23 public:
24 AWS_PCS_API UpdateClusterRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateCluster"; }
31
32 AWS_PCS_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
41 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
42 template <typename ClusterIdentifierT = Aws::String>
43 void SetClusterIdentifier(ClusterIdentifierT&& value) {
44 m_clusterIdentifierHasBeenSet = true;
45 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
46 }
47 template <typename ClusterIdentifierT = Aws::String>
48 UpdateClusterRequest& WithClusterIdentifier(ClusterIdentifierT&& value) {
49 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
50 return *this;
51 }
53
55
64 inline const Aws::String& GetClientToken() const { return m_clientToken; }
65 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
66 template <typename ClientTokenT = Aws::String>
67 void SetClientToken(ClientTokenT&& value) {
68 m_clientTokenHasBeenSet = true;
69 m_clientToken = std::forward<ClientTokenT>(value);
70 }
71 template <typename ClientTokenT = Aws::String>
72 UpdateClusterRequest& WithClientToken(ClientTokenT&& value) {
73 SetClientToken(std::forward<ClientTokenT>(value));
74 return *this;
75 }
77
79
82 inline const UpdateClusterSlurmConfigurationRequest& GetSlurmConfiguration() const { return m_slurmConfiguration; }
83 inline bool SlurmConfigurationHasBeenSet() const { return m_slurmConfigurationHasBeenSet; }
84 template <typename SlurmConfigurationT = UpdateClusterSlurmConfigurationRequest>
85 void SetSlurmConfiguration(SlurmConfigurationT&& value) {
86 m_slurmConfigurationHasBeenSet = true;
87 m_slurmConfiguration = std::forward<SlurmConfigurationT>(value);
88 }
89 template <typename SlurmConfigurationT = UpdateClusterSlurmConfigurationRequest>
90 UpdateClusterRequest& WithSlurmConfiguration(SlurmConfigurationT&& value) {
91 SetSlurmConfiguration(std::forward<SlurmConfigurationT>(value));
92 return *this;
93 }
95
97
103 inline const UpdateSchedulerRequest& GetScheduler() const { return m_scheduler; }
104 inline bool SchedulerHasBeenSet() const { return m_schedulerHasBeenSet; }
105 template <typename SchedulerT = UpdateSchedulerRequest>
106 void SetScheduler(SchedulerT&& value) {
107 m_schedulerHasBeenSet = true;
108 m_scheduler = std::forward<SchedulerT>(value);
109 }
110 template <typename SchedulerT = UpdateSchedulerRequest>
111 UpdateClusterRequest& WithScheduler(SchedulerT&& value) {
112 SetScheduler(std::forward<SchedulerT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_clusterIdentifier;
118
120
121 UpdateClusterSlurmConfigurationRequest m_slurmConfiguration;
122
123 UpdateSchedulerRequest m_scheduler;
124 bool m_clusterIdentifierHasBeenSet = false;
125 bool m_clientTokenHasBeenSet = true;
126 bool m_slurmConfigurationHasBeenSet = false;
127 bool m_schedulerHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace PCS
132} // namespace Aws
const Aws::String & GetClientToken() const
void SetClientToken(ClientTokenT &&value)
AWS_PCS_API UpdateClusterRequest()=default
AWS_PCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const UpdateClusterSlurmConfigurationRequest & GetSlurmConfiguration() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClusterIdentifier() const
UpdateClusterRequest & WithScheduler(SchedulerT &&value)
void SetSlurmConfiguration(SlurmConfigurationT &&value)
void SetClusterIdentifier(ClusterIdentifierT &&value)
UpdateClusterRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
const UpdateSchedulerRequest & GetScheduler() const
UpdateClusterRequest & WithClientToken(ClientTokenT &&value)
UpdateClusterRequest & WithSlurmConfiguration(SlurmConfigurationT &&value)
AWS_PCS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String