AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterRequest.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/pcs/model/SchedulerRequest.h>
11#include <aws/pcs/model/Size.h>
12#include <aws/pcs/model/NetworkingRequest.h>
13#include <aws/pcs/model/ClusterSlurmConfigurationRequest.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace PCS
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_PCS_API CreateClusterRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
37
38 AWS_PCS_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
48 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
49 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
50 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
51 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
52 inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
53 inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
54 inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
56
58
62 inline const SchedulerRequest& GetScheduler() const{ return m_scheduler; }
63 inline bool SchedulerHasBeenSet() const { return m_schedulerHasBeenSet; }
64 inline void SetScheduler(const SchedulerRequest& value) { m_schedulerHasBeenSet = true; m_scheduler = value; }
65 inline void SetScheduler(SchedulerRequest&& value) { m_schedulerHasBeenSet = true; m_scheduler = std::move(value); }
66 inline CreateClusterRequest& WithScheduler(const SchedulerRequest& value) { SetScheduler(value); return *this;}
67 inline CreateClusterRequest& WithScheduler(SchedulerRequest&& value) { SetScheduler(std::move(value)); return *this;}
69
71
78 inline const Size& GetSize() const{ return m_size; }
79 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
80 inline void SetSize(const Size& value) { m_sizeHasBeenSet = true; m_size = value; }
81 inline void SetSize(Size&& value) { m_sizeHasBeenSet = true; m_size = std::move(value); }
82 inline CreateClusterRequest& WithSize(const Size& value) { SetSize(value); return *this;}
83 inline CreateClusterRequest& WithSize(Size&& value) { SetSize(std::move(value)); return *this;}
85
87
90 inline const NetworkingRequest& GetNetworking() const{ return m_networking; }
91 inline bool NetworkingHasBeenSet() const { return m_networkingHasBeenSet; }
92 inline void SetNetworking(const NetworkingRequest& value) { m_networkingHasBeenSet = true; m_networking = value; }
93 inline void SetNetworking(NetworkingRequest&& value) { m_networkingHasBeenSet = true; m_networking = std::move(value); }
94 inline CreateClusterRequest& WithNetworking(const NetworkingRequest& value) { SetNetworking(value); return *this;}
95 inline CreateClusterRequest& WithNetworking(NetworkingRequest&& value) { SetNetworking(std::move(value)); return *this;}
97
99
102 inline const ClusterSlurmConfigurationRequest& GetSlurmConfiguration() const{ return m_slurmConfiguration; }
103 inline bool SlurmConfigurationHasBeenSet() const { return m_slurmConfigurationHasBeenSet; }
104 inline void SetSlurmConfiguration(const ClusterSlurmConfigurationRequest& value) { m_slurmConfigurationHasBeenSet = true; m_slurmConfiguration = value; }
105 inline void SetSlurmConfiguration(ClusterSlurmConfigurationRequest&& value) { m_slurmConfigurationHasBeenSet = true; m_slurmConfiguration = std::move(value); }
109
111
120 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
121 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
122 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
123 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
124 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
125 inline CreateClusterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
126 inline CreateClusterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
127 inline CreateClusterRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
129
131
135 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
138 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 inline CreateClusterRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
140 inline CreateClusterRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
141 inline CreateClusterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
142 inline CreateClusterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
143 inline CreateClusterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
144 inline CreateClusterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
145 inline CreateClusterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
146 inline CreateClusterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
147 inline CreateClusterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
149 private:
150
151 Aws::String m_clusterName;
152 bool m_clusterNameHasBeenSet = false;
153
154 SchedulerRequest m_scheduler;
155 bool m_schedulerHasBeenSet = false;
156
157 Size m_size;
158 bool m_sizeHasBeenSet = false;
159
160 NetworkingRequest m_networking;
161 bool m_networkingHasBeenSet = false;
162
163 ClusterSlurmConfigurationRequest m_slurmConfiguration;
164 bool m_slurmConfigurationHasBeenSet = false;
165
166 Aws::String m_clientToken;
167 bool m_clientTokenHasBeenSet = false;
168
170 bool m_tagsHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace PCS
175} // namespace Aws
CreateClusterRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetNetworking(const NetworkingRequest &value)
CreateClusterRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateClusterRequest & WithSlurmConfiguration(ClusterSlurmConfigurationRequest &&value)
CreateClusterRequest & WithClusterName(Aws::String &&value)
AWS_PCS_API Aws::String SerializePayload() const override
CreateClusterRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetClusterName(const Aws::String &value)
void SetNetworking(NetworkingRequest &&value)
CreateClusterRequest & WithClientToken(const char *value)
CreateClusterRequest & AddTags(const char *key, const char *value)
void SetScheduler(SchedulerRequest &&value)
const NetworkingRequest & GetNetworking() const
CreateClusterRequest & WithScheduler(const SchedulerRequest &value)
CreateClusterRequest & AddTags(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithClusterName(const Aws::String &value)
CreateClusterRequest & WithClientToken(const Aws::String &value)
CreateClusterRequest & WithSize(const Size &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterRequest & AddTags(Aws::String &&key, const char *value)
CreateClusterRequest & WithNetworking(NetworkingRequest &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetClusterName() const
CreateClusterRequest & WithClientToken(Aws::String &&value)
CreateClusterRequest & WithNetworking(const NetworkingRequest &value)
void SetSlurmConfiguration(ClusterSlurmConfigurationRequest &&value)
CreateClusterRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateClusterRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateClusterRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::String & GetClientToken() const
const SchedulerRequest & GetScheduler() const
void SetSlurmConfiguration(const ClusterSlurmConfigurationRequest &value)
void SetScheduler(const SchedulerRequest &value)
CreateClusterRequest & WithClusterName(const char *value)
CreateClusterRequest & WithSlurmConfiguration(const ClusterSlurmConfigurationRequest &value)
void SetClientToken(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateClusterRequest & WithSize(Size &&value)
CreateClusterRequest & WithScheduler(SchedulerRequest &&value)
const ClusterSlurmConfigurationRequest & GetSlurmConfiguration() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String