AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFleetRequest.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 <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace deadline
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DEADLINE_API UpdateFleetRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleet"; }
33
34 AWS_DEADLINE_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline UpdateFleetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline UpdateFleetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline UpdateFleetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
58 inline const Aws::String& GetFarmId() const{ return m_farmId; }
59 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
60 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
61 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
62 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
63 inline UpdateFleetRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
64 inline UpdateFleetRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
65 inline UpdateFleetRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
67
69
72 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
73 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
74 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
75 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
76 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
77 inline UpdateFleetRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
78 inline UpdateFleetRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
79 inline UpdateFleetRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
81
83
89 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
90 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
91 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
92 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
93 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
94 inline UpdateFleetRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
95 inline UpdateFleetRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
96 inline UpdateFleetRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
98
100
106 inline const Aws::String& GetDescription() const{ return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
111 inline UpdateFleetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 inline UpdateFleetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 inline UpdateFleetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115
117
120 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
121 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
122 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
123 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
124 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
125 inline UpdateFleetRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
126 inline UpdateFleetRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
127 inline UpdateFleetRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
129
131
134 inline int GetMinWorkerCount() const{ return m_minWorkerCount; }
135 inline bool MinWorkerCountHasBeenSet() const { return m_minWorkerCountHasBeenSet; }
136 inline void SetMinWorkerCount(int value) { m_minWorkerCountHasBeenSet = true; m_minWorkerCount = value; }
137 inline UpdateFleetRequest& WithMinWorkerCount(int value) { SetMinWorkerCount(value); return *this;}
139
141
144 inline int GetMaxWorkerCount() const{ return m_maxWorkerCount; }
145 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
146 inline void SetMaxWorkerCount(int value) { m_maxWorkerCountHasBeenSet = true; m_maxWorkerCount = value; }
147 inline UpdateFleetRequest& WithMaxWorkerCount(int value) { SetMaxWorkerCount(value); return *this;}
149
151
154 inline const FleetConfiguration& GetConfiguration() const{ return m_configuration; }
155 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
156 inline void SetConfiguration(const FleetConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
157 inline void SetConfiguration(FleetConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
158 inline UpdateFleetRequest& WithConfiguration(const FleetConfiguration& value) { SetConfiguration(value); return *this;}
159 inline UpdateFleetRequest& WithConfiguration(FleetConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
161 private:
162
163 Aws::String m_clientToken;
164 bool m_clientTokenHasBeenSet = false;
165
166 Aws::String m_farmId;
167 bool m_farmIdHasBeenSet = false;
168
169 Aws::String m_fleetId;
170 bool m_fleetIdHasBeenSet = false;
171
172 Aws::String m_displayName;
173 bool m_displayNameHasBeenSet = false;
174
175 Aws::String m_description;
176 bool m_descriptionHasBeenSet = false;
177
178 Aws::String m_roleArn;
179 bool m_roleArnHasBeenSet = false;
180
181 int m_minWorkerCount;
182 bool m_minWorkerCountHasBeenSet = false;
183
184 int m_maxWorkerCount;
185 bool m_maxWorkerCountHasBeenSet = false;
186
187 FleetConfiguration m_configuration;
188 bool m_configurationHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace deadline
193} // namespace Aws
UpdateFleetRequest & WithFarmId(const Aws::String &value)
UpdateFleetRequest & WithMaxWorkerCount(int value)
const Aws::String & GetDisplayName() const
UpdateFleetRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateFleetRequest & WithFarmId(Aws::String &&value)
UpdateFleetRequest & WithConfiguration(FleetConfiguration &&value)
UpdateFleetRequest & WithDescription(const Aws::String &value)
UpdateFleetRequest & WithMinWorkerCount(int value)
UpdateFleetRequest & WithConfiguration(const FleetConfiguration &value)
UpdateFleetRequest & WithFleetId(const Aws::String &value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFleetRequest & WithFleetId(Aws::String &&value)
void SetRoleArn(const Aws::String &value)
UpdateFleetRequest & WithDisplayName(const char *value)
void SetFleetId(const Aws::String &value)
UpdateFleetRequest & WithDisplayName(Aws::String &&value)
UpdateFleetRequest & WithRoleArn(const char *value)
UpdateFleetRequest & WithFleetId(const char *value)
UpdateFleetRequest & WithFarmId(const char *value)
void SetFarmId(const Aws::String &value)
void SetConfiguration(const FleetConfiguration &value)
UpdateFleetRequest & WithRoleArn(Aws::String &&value)
void SetClientToken(const Aws::String &value)
const Aws::String & GetClientToken() const
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateFleetRequest & WithRoleArn(const Aws::String &value)
void SetConfiguration(FleetConfiguration &&value)
void SetDescription(const Aws::String &value)
UpdateFleetRequest & WithClientToken(const char *value)
UpdateFleetRequest & WithDescription(const char *value)
void SetDisplayName(const Aws::String &value)
UpdateFleetRequest & WithDescription(Aws::String &&value)
UpdateFleetRequest & WithDisplayName(const Aws::String &value)
const FleetConfiguration & GetConfiguration() const
UpdateFleetRequest & WithClientToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String