AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFleetRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/FleetConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace deadline
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DEADLINE_API CreateFleetRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateFleet"; }
34
35 AWS_DEADLINE_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreateFleetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreateFleetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreateFleetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
59 inline const Aws::String& GetFarmId() const{ return m_farmId; }
60 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
61 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
62 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
63 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
64 inline CreateFleetRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
65 inline CreateFleetRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
66 inline CreateFleetRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
68
70
75 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
76 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
77 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
78 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
79 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
80 inline CreateFleetRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
81 inline CreateFleetRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
82 inline CreateFleetRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
84
86
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline CreateFleetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline CreateFleetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline CreateFleetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
105 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
106 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
107 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
108 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
109 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
110 inline CreateFleetRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
111 inline CreateFleetRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
112 inline CreateFleetRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
114
116
119 inline int GetMinWorkerCount() const{ return m_minWorkerCount; }
120 inline bool MinWorkerCountHasBeenSet() const { return m_minWorkerCountHasBeenSet; }
121 inline void SetMinWorkerCount(int value) { m_minWorkerCountHasBeenSet = true; m_minWorkerCount = value; }
122 inline CreateFleetRequest& WithMinWorkerCount(int value) { SetMinWorkerCount(value); return *this;}
124
126
129 inline int GetMaxWorkerCount() const{ return m_maxWorkerCount; }
130 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
131 inline void SetMaxWorkerCount(int value) { m_maxWorkerCountHasBeenSet = true; m_maxWorkerCount = value; }
132 inline CreateFleetRequest& WithMaxWorkerCount(int value) { SetMaxWorkerCount(value); return *this;}
134
136
141 inline const FleetConfiguration& GetConfiguration() const{ return m_configuration; }
142 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
143 inline void SetConfiguration(const FleetConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
144 inline void SetConfiguration(FleetConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
145 inline CreateFleetRequest& WithConfiguration(const FleetConfiguration& value) { SetConfiguration(value); return *this;}
146 inline CreateFleetRequest& WithConfiguration(FleetConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
148
150
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
157 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
158 inline CreateFleetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
159 inline CreateFleetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
160 inline CreateFleetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
161 inline CreateFleetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
162 inline CreateFleetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
163 inline CreateFleetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
164 inline CreateFleetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
165 inline CreateFleetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
166 inline CreateFleetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
168 private:
169
170 Aws::String m_clientToken;
171 bool m_clientTokenHasBeenSet = false;
172
173 Aws::String m_farmId;
174 bool m_farmIdHasBeenSet = false;
175
176 Aws::String m_displayName;
177 bool m_displayNameHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 Aws::String m_roleArn;
183 bool m_roleArnHasBeenSet = false;
184
185 int m_minWorkerCount;
186 bool m_minWorkerCountHasBeenSet = false;
187
188 int m_maxWorkerCount;
189 bool m_maxWorkerCountHasBeenSet = false;
190
191 FleetConfiguration m_configuration;
192 bool m_configurationHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace deadline
200} // namespace Aws
CreateFleetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateFleetRequest & AddTags(const char *key, const char *value)
CreateFleetRequest & WithDescription(Aws::String &&value)
CreateFleetRequest & WithDisplayName(const Aws::String &value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRoleArn(const Aws::String &value)
const Aws::String & GetDescription() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFleetRequest & WithDisplayName(Aws::String &&value)
CreateFleetRequest & WithClientToken(const Aws::String &value)
CreateFleetRequest & AddTags(Aws::String &&key, const char *value)
CreateFleetRequest & WithMinWorkerCount(int value)
CreateFleetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateFleetRequest & WithRoleArn(const char *value)
CreateFleetRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateFleetRequest & WithMaxWorkerCount(int value)
CreateFleetRequest & WithFarmId(const char *value)
void SetDisplayName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateFleetRequest & WithConfiguration(FleetConfiguration &&value)
CreateFleetRequest & WithClientToken(Aws::String &&value)
void SetConfiguration(FleetConfiguration &&value)
const Aws::String & GetDisplayName() const
CreateFleetRequest & WithDescription(const char *value)
void SetDescription(const Aws::String &value)
void SetConfiguration(const FleetConfiguration &value)
CreateFleetRequest & WithFarmId(Aws::String &&value)
CreateFleetRequest & AddTags(const char *key, Aws::String &&value)
const Aws::String & GetClientToken() const
CreateFleetRequest & WithClientToken(const char *value)
CreateFleetRequest & WithFarmId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetClientToken(const Aws::String &value)
CreateFleetRequest & WithRoleArn(const Aws::String &value)
CreateFleetRequest & WithDescription(const Aws::String &value)
CreateFleetRequest & AddTags(Aws::String &&key, const Aws::String &value)
const FleetConfiguration & GetConfiguration() const
void SetFarmId(const Aws::String &value)
CreateFleetRequest & WithRoleArn(Aws::String &&value)
CreateFleetRequest & WithDisplayName(const char *value)
CreateFleetRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateFleetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateFleetRequest & WithConfiguration(const FleetConfiguration &value)
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