AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
UpdateQueueRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pcs/PCSRequest.h>
11#include <aws/pcs/PCS_EXPORTS.h>
12#include <aws/pcs/model/ComputeNodeGroupConfiguration.h>
13#include <aws/pcs/model/UpdateQueueSlurmConfigurationRequest.h>
14
15#include <utility>
16
17namespace Aws {
18namespace PCS {
19namespace Model {
20
24 public:
25 AWS_PCS_API UpdateQueueRequest() = 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 "UpdateQueue"; }
32
33 AWS_PCS_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
42 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
43 template <typename ClusterIdentifierT = Aws::String>
44 void SetClusterIdentifier(ClusterIdentifierT&& value) {
45 m_clusterIdentifierHasBeenSet = true;
46 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
47 }
48 template <typename ClusterIdentifierT = Aws::String>
49 UpdateQueueRequest& WithClusterIdentifier(ClusterIdentifierT&& value) {
50 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetQueueIdentifier() const { return m_queueIdentifier; }
60 inline bool QueueIdentifierHasBeenSet() const { return m_queueIdentifierHasBeenSet; }
61 template <typename QueueIdentifierT = Aws::String>
62 void SetQueueIdentifier(QueueIdentifierT&& value) {
63 m_queueIdentifierHasBeenSet = true;
64 m_queueIdentifier = std::forward<QueueIdentifierT>(value);
65 }
66 template <typename QueueIdentifierT = Aws::String>
67 UpdateQueueRequest& WithQueueIdentifier(QueueIdentifierT&& value) {
68 SetQueueIdentifier(std::forward<QueueIdentifierT>(value));
69 return *this;
70 }
72
74
79 return m_computeNodeGroupConfigurations;
80 }
81 inline bool ComputeNodeGroupConfigurationsHasBeenSet() const { return m_computeNodeGroupConfigurationsHasBeenSet; }
82 template <typename ComputeNodeGroupConfigurationsT = Aws::Vector<ComputeNodeGroupConfiguration>>
83 void SetComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) {
84 m_computeNodeGroupConfigurationsHasBeenSet = true;
85 m_computeNodeGroupConfigurations = std::forward<ComputeNodeGroupConfigurationsT>(value);
86 }
87 template <typename ComputeNodeGroupConfigurationsT = Aws::Vector<ComputeNodeGroupConfiguration>>
88 UpdateQueueRequest& WithComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) {
89 SetComputeNodeGroupConfigurations(std::forward<ComputeNodeGroupConfigurationsT>(value));
90 return *this;
91 }
92 template <typename ComputeNodeGroupConfigurationsT = ComputeNodeGroupConfiguration>
93 UpdateQueueRequest& AddComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) {
94 m_computeNodeGroupConfigurationsHasBeenSet = true;
95 m_computeNodeGroupConfigurations.emplace_back(std::forward<ComputeNodeGroupConfigurationsT>(value));
96 return *this;
97 }
99
101
104 inline const UpdateQueueSlurmConfigurationRequest& GetSlurmConfiguration() const { return m_slurmConfiguration; }
105 inline bool SlurmConfigurationHasBeenSet() const { return m_slurmConfigurationHasBeenSet; }
106 template <typename SlurmConfigurationT = UpdateQueueSlurmConfigurationRequest>
107 void SetSlurmConfiguration(SlurmConfigurationT&& value) {
108 m_slurmConfigurationHasBeenSet = true;
109 m_slurmConfiguration = std::forward<SlurmConfigurationT>(value);
110 }
111 template <typename SlurmConfigurationT = UpdateQueueSlurmConfigurationRequest>
112 UpdateQueueRequest& WithSlurmConfiguration(SlurmConfigurationT&& value) {
113 SetSlurmConfiguration(std::forward<SlurmConfigurationT>(value));
114 return *this;
115 }
117
119
128 inline const Aws::String& GetClientToken() const { return m_clientToken; }
129 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
130 template <typename ClientTokenT = Aws::String>
131 void SetClientToken(ClientTokenT&& value) {
132 m_clientTokenHasBeenSet = true;
133 m_clientToken = std::forward<ClientTokenT>(value);
134 }
135 template <typename ClientTokenT = Aws::String>
136 UpdateQueueRequest& WithClientToken(ClientTokenT&& value) {
137 SetClientToken(std::forward<ClientTokenT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_clusterIdentifier;
143
144 Aws::String m_queueIdentifier;
145
146 Aws::Vector<ComputeNodeGroupConfiguration> m_computeNodeGroupConfigurations;
147
148 UpdateQueueSlurmConfigurationRequest m_slurmConfiguration;
149
151 bool m_clusterIdentifierHasBeenSet = false;
152 bool m_queueIdentifierHasBeenSet = false;
153 bool m_computeNodeGroupConfigurationsHasBeenSet = false;
154 bool m_slurmConfigurationHasBeenSet = false;
155 bool m_clientTokenHasBeenSet = true;
156};
157
158} // namespace Model
159} // namespace PCS
160} // namespace Aws
AWS_PCS_API UpdateQueueRequest()=default
void SetQueueIdentifier(QueueIdentifierT &&value)
AWS_PCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateQueueRequest & AddComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
void SetSlurmConfiguration(SlurmConfigurationT &&value)
UpdateQueueRequest & WithComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
const Aws::String & GetClusterIdentifier() const
virtual const char * GetServiceRequestName() const override
UpdateQueueRequest & WithClientToken(ClientTokenT &&value)
void SetComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetQueueIdentifier() const
UpdateQueueRequest & WithQueueIdentifier(QueueIdentifierT &&value)
UpdateQueueRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
UpdateQueueRequest & WithSlurmConfiguration(SlurmConfigurationT &&value)
AWS_PCS_API Aws::String SerializePayload() const override
void SetClusterIdentifier(ClusterIdentifierT &&value)
const UpdateQueueSlurmConfigurationRequest & GetSlurmConfiguration() const
const Aws::Vector< ComputeNodeGroupConfiguration > & GetComputeNodeGroupConfigurations() const
const Aws::String & GetClientToken() const
static Aws::Utils::UUID PseudoRandomUUID()
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