AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
UpdateExpressGatewayServiceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/ExpressGatewayContainer.h>
11#include <aws/ecs/model/ExpressGatewayScalingTarget.h>
12#include <aws/ecs/model/ExpressGatewayServiceNetworkConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ECS {
18namespace Model {
19
23 public:
24 AWS_ECS_API UpdateExpressGatewayServiceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateExpressGatewayService"; }
31
32 AWS_ECS_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
41 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
42 template <typename ServiceArnT = Aws::String>
43 void SetServiceArn(ServiceArnT&& value) {
44 m_serviceArnHasBeenSet = true;
45 m_serviceArn = std::forward<ServiceArnT>(value);
46 }
47 template <typename ServiceArnT = Aws::String>
49 SetServiceArn(std::forward<ServiceArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
60 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
61 template <typename ExecutionRoleArnT = Aws::String>
62 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
63 m_executionRoleArnHasBeenSet = true;
64 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
65 }
66 template <typename ExecutionRoleArnT = Aws::String>
68 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
78 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
79 template <typename HealthCheckPathT = Aws::String>
80 void SetHealthCheckPath(HealthCheckPathT&& value) {
81 m_healthCheckPathHasBeenSet = true;
82 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
83 }
84 template <typename HealthCheckPathT = Aws::String>
86 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
87 return *this;
88 }
90
92
95 inline const ExpressGatewayContainer& GetPrimaryContainer() const { return m_primaryContainer; }
96 inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
97 template <typename PrimaryContainerT = ExpressGatewayContainer>
98 void SetPrimaryContainer(PrimaryContainerT&& value) {
99 m_primaryContainerHasBeenSet = true;
100 m_primaryContainer = std::forward<PrimaryContainerT>(value);
101 }
102 template <typename PrimaryContainerT = ExpressGatewayContainer>
104 SetPrimaryContainer(std::forward<PrimaryContainerT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetTaskRoleArn() const { return m_taskRoleArn; }
115 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
116 template <typename TaskRoleArnT = Aws::String>
117 void SetTaskRoleArn(TaskRoleArnT&& value) {
118 m_taskRoleArnHasBeenSet = true;
119 m_taskRoleArn = std::forward<TaskRoleArnT>(value);
120 }
121 template <typename TaskRoleArnT = Aws::String>
123 SetTaskRoleArn(std::forward<TaskRoleArnT>(value));
124 return *this;
125 }
127
129
133 inline const ExpressGatewayServiceNetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
134 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
135 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
136 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
137 m_networkConfigurationHasBeenSet = true;
138 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
139 }
140 template <typename NetworkConfigurationT = ExpressGatewayServiceNetworkConfiguration>
142 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetCpu() const { return m_cpu; }
152 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
153 template <typename CpuT = Aws::String>
154 void SetCpu(CpuT&& value) {
155 m_cpuHasBeenSet = true;
156 m_cpu = std::forward<CpuT>(value);
157 }
158 template <typename CpuT = Aws::String>
160 SetCpu(std::forward<CpuT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetMemory() const { return m_memory; }
170 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
171 template <typename MemoryT = Aws::String>
172 void SetMemory(MemoryT&& value) {
173 m_memoryHasBeenSet = true;
174 m_memory = std::forward<MemoryT>(value);
175 }
176 template <typename MemoryT = Aws::String>
178 SetMemory(std::forward<MemoryT>(value));
179 return *this;
180 }
182
184
187 inline const ExpressGatewayScalingTarget& GetScalingTarget() const { return m_scalingTarget; }
188 inline bool ScalingTargetHasBeenSet() const { return m_scalingTargetHasBeenSet; }
189 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
190 void SetScalingTarget(ScalingTargetT&& value) {
191 m_scalingTargetHasBeenSet = true;
192 m_scalingTarget = std::forward<ScalingTargetT>(value);
193 }
194 template <typename ScalingTargetT = ExpressGatewayScalingTarget>
196 SetScalingTarget(std::forward<ScalingTargetT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_serviceArn;
202
203 Aws::String m_executionRoleArn;
204
205 Aws::String m_healthCheckPath;
206
207 ExpressGatewayContainer m_primaryContainer;
208
209 Aws::String m_taskRoleArn;
210
211 ExpressGatewayServiceNetworkConfiguration m_networkConfiguration;
212
213 Aws::String m_cpu;
214
215 Aws::String m_memory;
216
217 ExpressGatewayScalingTarget m_scalingTarget;
218 bool m_serviceArnHasBeenSet = false;
219 bool m_executionRoleArnHasBeenSet = false;
220 bool m_healthCheckPathHasBeenSet = false;
221 bool m_primaryContainerHasBeenSet = false;
222 bool m_taskRoleArnHasBeenSet = false;
223 bool m_networkConfigurationHasBeenSet = false;
224 bool m_cpuHasBeenSet = false;
225 bool m_memoryHasBeenSet = false;
226 bool m_scalingTargetHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace ECS
231} // namespace Aws
const ExpressGatewayServiceNetworkConfiguration & GetNetworkConfiguration() const
UpdateExpressGatewayServiceRequest & WithTaskRoleArn(TaskRoleArnT &&value)
UpdateExpressGatewayServiceRequest & WithPrimaryContainer(PrimaryContainerT &&value)
UpdateExpressGatewayServiceRequest & WithServiceArn(ServiceArnT &&value)
UpdateExpressGatewayServiceRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
UpdateExpressGatewayServiceRequest & WithHealthCheckPath(HealthCheckPathT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateExpressGatewayServiceRequest & WithScalingTarget(ScalingTargetT &&value)
UpdateExpressGatewayServiceRequest & WithMemory(MemoryT &&value)
UpdateExpressGatewayServiceRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
UpdateExpressGatewayServiceRequest & WithCpu(CpuT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String