AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
13#include <utility>
14
15namespace Aws {
16namespace PCS {
17namespace Model {
18
22 public:
23 AWS_PCS_API UpdateClusterRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateCluster"; }
30
31 AWS_PCS_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
40 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
41 template <typename ClusterIdentifierT = Aws::String>
42 void SetClusterIdentifier(ClusterIdentifierT&& value) {
43 m_clusterIdentifierHasBeenSet = true;
44 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
45 }
46 template <typename ClusterIdentifierT = Aws::String>
47 UpdateClusterRequest& WithClusterIdentifier(ClusterIdentifierT&& value) {
48 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
49 return *this;
50 }
52
54
63 inline const Aws::String& GetClientToken() const { return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 template <typename ClientTokenT = Aws::String>
66 void SetClientToken(ClientTokenT&& value) {
67 m_clientTokenHasBeenSet = true;
68 m_clientToken = std::forward<ClientTokenT>(value);
69 }
70 template <typename ClientTokenT = Aws::String>
71 UpdateClusterRequest& WithClientToken(ClientTokenT&& value) {
72 SetClientToken(std::forward<ClientTokenT>(value));
73 return *this;
74 }
76
78
81 inline const UpdateClusterSlurmConfigurationRequest& GetSlurmConfiguration() const { return m_slurmConfiguration; }
82 inline bool SlurmConfigurationHasBeenSet() const { return m_slurmConfigurationHasBeenSet; }
83 template <typename SlurmConfigurationT = UpdateClusterSlurmConfigurationRequest>
84 void SetSlurmConfiguration(SlurmConfigurationT&& value) {
85 m_slurmConfigurationHasBeenSet = true;
86 m_slurmConfiguration = std::forward<SlurmConfigurationT>(value);
87 }
88 template <typename SlurmConfigurationT = UpdateClusterSlurmConfigurationRequest>
89 UpdateClusterRequest& WithSlurmConfiguration(SlurmConfigurationT&& value) {
90 SetSlurmConfiguration(std::forward<SlurmConfigurationT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_clusterIdentifier;
96
98
99 UpdateClusterSlurmConfigurationRequest m_slurmConfiguration;
100 bool m_clusterIdentifierHasBeenSet = false;
101 bool m_clientTokenHasBeenSet = true;
102 bool m_slurmConfigurationHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace PCS
107} // 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
void SetSlurmConfiguration(SlurmConfigurationT &&value)
void SetClusterIdentifier(ClusterIdentifierT &&value)
UpdateClusterRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
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