AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceRevision.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/LaunchType.h>
11#include <aws/ecs/model/NetworkConfiguration.h>
12#include <aws/ecs/model/ServiceConnectConfiguration.h>
13#include <aws/ecs/model/DeploymentEphemeralStorage.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/ecs/model/ResolvedConfiguration.h>
16#include <aws/ecs/model/CapacityProviderStrategyItem.h>
17#include <aws/ecs/model/LoadBalancer.h>
18#include <aws/ecs/model/ServiceRegistry.h>
19#include <aws/ecs/model/ContainerImage.h>
20#include <aws/ecs/model/ServiceVolumeConfiguration.h>
21#include <aws/ecs/model/VpcLatticeConfiguration.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31 class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace ECS
35{
36namespace Model
37{
38
52 {
53 public:
54 AWS_ECS_API ServiceRevision() = default;
58
59
61
64 inline const Aws::String& GetServiceRevisionArn() const { return m_serviceRevisionArn; }
65 inline bool ServiceRevisionArnHasBeenSet() const { return m_serviceRevisionArnHasBeenSet; }
66 template<typename ServiceRevisionArnT = Aws::String>
67 void SetServiceRevisionArn(ServiceRevisionArnT&& value) { m_serviceRevisionArnHasBeenSet = true; m_serviceRevisionArn = std::forward<ServiceRevisionArnT>(value); }
68 template<typename ServiceRevisionArnT = Aws::String>
69 ServiceRevision& WithServiceRevisionArn(ServiceRevisionArnT&& value) { SetServiceRevisionArn(std::forward<ServiceRevisionArnT>(value)); return *this;}
71
73
76 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
77 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
78 template<typename ServiceArnT = Aws::String>
79 void SetServiceArn(ServiceArnT&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::forward<ServiceArnT>(value); }
80 template<typename ServiceArnT = Aws::String>
81 ServiceRevision& WithServiceArn(ServiceArnT&& value) { SetServiceArn(std::forward<ServiceArnT>(value)); return *this;}
83
85
88 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
89 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
90 template<typename ClusterArnT = Aws::String>
91 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
92 template<typename ClusterArnT = Aws::String>
93 ServiceRevision& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
95
97
100 inline const Aws::String& GetTaskDefinition() const { return m_taskDefinition; }
101 inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; }
102 template<typename TaskDefinitionT = Aws::String>
103 void SetTaskDefinition(TaskDefinitionT&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = std::forward<TaskDefinitionT>(value); }
104 template<typename TaskDefinitionT = Aws::String>
105 ServiceRevision& WithTaskDefinition(TaskDefinitionT&& value) { SetTaskDefinition(std::forward<TaskDefinitionT>(value)); return *this;}
107
109
112 inline const Aws::Vector<CapacityProviderStrategyItem>& GetCapacityProviderStrategy() const { return m_capacityProviderStrategy; }
113 inline bool CapacityProviderStrategyHasBeenSet() const { return m_capacityProviderStrategyHasBeenSet; }
114 template<typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
115 void SetCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy = std::forward<CapacityProviderStrategyT>(value); }
116 template<typename CapacityProviderStrategyT = Aws::Vector<CapacityProviderStrategyItem>>
117 ServiceRevision& WithCapacityProviderStrategy(CapacityProviderStrategyT&& value) { SetCapacityProviderStrategy(std::forward<CapacityProviderStrategyT>(value)); return *this;}
118 template<typename CapacityProviderStrategyT = CapacityProviderStrategyItem>
119 ServiceRevision& AddCapacityProviderStrategy(CapacityProviderStrategyT&& value) { m_capacityProviderStrategyHasBeenSet = true; m_capacityProviderStrategy.emplace_back(std::forward<CapacityProviderStrategyT>(value)); return *this; }
121
123
126 inline LaunchType GetLaunchType() const { return m_launchType; }
127 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
128 inline void SetLaunchType(LaunchType value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
129 inline ServiceRevision& WithLaunchType(LaunchType value) { SetLaunchType(value); return *this;}
131
133
137 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
138 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
139 template<typename PlatformVersionT = Aws::String>
140 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
141 template<typename PlatformVersionT = Aws::String>
142 ServiceRevision& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
144
146
149 inline const Aws::String& GetPlatformFamily() const { return m_platformFamily; }
150 inline bool PlatformFamilyHasBeenSet() const { return m_platformFamilyHasBeenSet; }
151 template<typename PlatformFamilyT = Aws::String>
152 void SetPlatformFamily(PlatformFamilyT&& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = std::forward<PlatformFamilyT>(value); }
153 template<typename PlatformFamilyT = Aws::String>
154 ServiceRevision& WithPlatformFamily(PlatformFamilyT&& value) { SetPlatformFamily(std::forward<PlatformFamilyT>(value)); return *this;}
156
158
161 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const { return m_loadBalancers; }
162 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
163 template<typename LoadBalancersT = Aws::Vector<LoadBalancer>>
164 void SetLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::forward<LoadBalancersT>(value); }
165 template<typename LoadBalancersT = Aws::Vector<LoadBalancer>>
166 ServiceRevision& WithLoadBalancers(LoadBalancersT&& value) { SetLoadBalancers(std::forward<LoadBalancersT>(value)); return *this;}
167 template<typename LoadBalancersT = LoadBalancer>
168 ServiceRevision& AddLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value)); return *this; }
170
172
175 inline const Aws::Vector<ServiceRegistry>& GetServiceRegistries() const { return m_serviceRegistries; }
176 inline bool ServiceRegistriesHasBeenSet() const { return m_serviceRegistriesHasBeenSet; }
177 template<typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
178 void SetServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries = std::forward<ServiceRegistriesT>(value); }
179 template<typename ServiceRegistriesT = Aws::Vector<ServiceRegistry>>
180 ServiceRevision& WithServiceRegistries(ServiceRegistriesT&& value) { SetServiceRegistries(std::forward<ServiceRegistriesT>(value)); return *this;}
181 template<typename ServiceRegistriesT = ServiceRegistry>
182 ServiceRevision& AddServiceRegistries(ServiceRegistriesT&& value) { m_serviceRegistriesHasBeenSet = true; m_serviceRegistries.emplace_back(std::forward<ServiceRegistriesT>(value)); return *this; }
184
186
187 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
188 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
189 template<typename NetworkConfigurationT = NetworkConfiguration>
190 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
191 template<typename NetworkConfigurationT = NetworkConfiguration>
192 ServiceRevision& WithNetworkConfiguration(NetworkConfigurationT&& value) { SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value)); return *this;}
194
196
199 inline const Aws::Vector<ContainerImage>& GetContainerImages() const { return m_containerImages; }
200 inline bool ContainerImagesHasBeenSet() const { return m_containerImagesHasBeenSet; }
201 template<typename ContainerImagesT = Aws::Vector<ContainerImage>>
202 void SetContainerImages(ContainerImagesT&& value) { m_containerImagesHasBeenSet = true; m_containerImages = std::forward<ContainerImagesT>(value); }
203 template<typename ContainerImagesT = Aws::Vector<ContainerImage>>
204 ServiceRevision& WithContainerImages(ContainerImagesT&& value) { SetContainerImages(std::forward<ContainerImagesT>(value)); return *this;}
205 template<typename ContainerImagesT = ContainerImage>
206 ServiceRevision& AddContainerImages(ContainerImagesT&& value) { m_containerImagesHasBeenSet = true; m_containerImages.emplace_back(std::forward<ContainerImagesT>(value)); return *this; }
208
210
213 inline bool GetGuardDutyEnabled() const { return m_guardDutyEnabled; }
214 inline bool GuardDutyEnabledHasBeenSet() const { return m_guardDutyEnabledHasBeenSet; }
215 inline void SetGuardDutyEnabled(bool value) { m_guardDutyEnabledHasBeenSet = true; m_guardDutyEnabled = value; }
216 inline ServiceRevision& WithGuardDutyEnabled(bool value) { SetGuardDutyEnabled(value); return *this;}
218
220
221 inline const ServiceConnectConfiguration& GetServiceConnectConfiguration() const { return m_serviceConnectConfiguration; }
222 inline bool ServiceConnectConfigurationHasBeenSet() const { return m_serviceConnectConfigurationHasBeenSet; }
223 template<typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
224 void SetServiceConnectConfiguration(ServiceConnectConfigurationT&& value) { m_serviceConnectConfigurationHasBeenSet = true; m_serviceConnectConfiguration = std::forward<ServiceConnectConfigurationT>(value); }
225 template<typename ServiceConnectConfigurationT = ServiceConnectConfiguration>
226 ServiceRevision& WithServiceConnectConfiguration(ServiceConnectConfigurationT&& value) { SetServiceConnectConfiguration(std::forward<ServiceConnectConfigurationT>(value)); return *this;}
228
230
234 inline const Aws::Vector<ServiceVolumeConfiguration>& GetVolumeConfigurations() const { return m_volumeConfigurations; }
235 inline bool VolumeConfigurationsHasBeenSet() const { return m_volumeConfigurationsHasBeenSet; }
236 template<typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
237 void SetVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations = std::forward<VolumeConfigurationsT>(value); }
238 template<typename VolumeConfigurationsT = Aws::Vector<ServiceVolumeConfiguration>>
239 ServiceRevision& WithVolumeConfigurations(VolumeConfigurationsT&& value) { SetVolumeConfigurations(std::forward<VolumeConfigurationsT>(value)); return *this;}
240 template<typename VolumeConfigurationsT = ServiceVolumeConfiguration>
241 ServiceRevision& AddVolumeConfigurations(VolumeConfigurationsT&& value) { m_volumeConfigurationsHasBeenSet = true; m_volumeConfigurations.emplace_back(std::forward<VolumeConfigurationsT>(value)); return *this; }
243
245
246 inline const DeploymentEphemeralStorage& GetFargateEphemeralStorage() const { return m_fargateEphemeralStorage; }
247 inline bool FargateEphemeralStorageHasBeenSet() const { return m_fargateEphemeralStorageHasBeenSet; }
248 template<typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
249 void SetFargateEphemeralStorage(FargateEphemeralStorageT&& value) { m_fargateEphemeralStorageHasBeenSet = true; m_fargateEphemeralStorage = std::forward<FargateEphemeralStorageT>(value); }
250 template<typename FargateEphemeralStorageT = DeploymentEphemeralStorage>
251 ServiceRevision& WithFargateEphemeralStorage(FargateEphemeralStorageT&& value) { SetFargateEphemeralStorage(std::forward<FargateEphemeralStorageT>(value)); return *this;}
253
255
259 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
260 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
261 template<typename CreatedAtT = Aws::Utils::DateTime>
262 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
263 template<typename CreatedAtT = Aws::Utils::DateTime>
264 ServiceRevision& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
266
268
271 inline const Aws::Vector<VpcLatticeConfiguration>& GetVpcLatticeConfigurations() const { return m_vpcLatticeConfigurations; }
272 inline bool VpcLatticeConfigurationsHasBeenSet() const { return m_vpcLatticeConfigurationsHasBeenSet; }
273 template<typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
274 void SetVpcLatticeConfigurations(VpcLatticeConfigurationsT&& value) { m_vpcLatticeConfigurationsHasBeenSet = true; m_vpcLatticeConfigurations = std::forward<VpcLatticeConfigurationsT>(value); }
275 template<typename VpcLatticeConfigurationsT = Aws::Vector<VpcLatticeConfiguration>>
276 ServiceRevision& WithVpcLatticeConfigurations(VpcLatticeConfigurationsT&& value) { SetVpcLatticeConfigurations(std::forward<VpcLatticeConfigurationsT>(value)); return *this;}
277 template<typename VpcLatticeConfigurationsT = VpcLatticeConfiguration>
278 ServiceRevision& AddVpcLatticeConfigurations(VpcLatticeConfigurationsT&& value) { m_vpcLatticeConfigurationsHasBeenSet = true; m_vpcLatticeConfigurations.emplace_back(std::forward<VpcLatticeConfigurationsT>(value)); return *this; }
280
282
287 inline const ResolvedConfiguration& GetResolvedConfiguration() const { return m_resolvedConfiguration; }
288 inline bool ResolvedConfigurationHasBeenSet() const { return m_resolvedConfigurationHasBeenSet; }
289 template<typename ResolvedConfigurationT = ResolvedConfiguration>
290 void SetResolvedConfiguration(ResolvedConfigurationT&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration = std::forward<ResolvedConfigurationT>(value); }
291 template<typename ResolvedConfigurationT = ResolvedConfiguration>
292 ServiceRevision& WithResolvedConfiguration(ResolvedConfigurationT&& value) { SetResolvedConfiguration(std::forward<ResolvedConfigurationT>(value)); return *this;}
294 private:
295
296 Aws::String m_serviceRevisionArn;
297 bool m_serviceRevisionArnHasBeenSet = false;
298
299 Aws::String m_serviceArn;
300 bool m_serviceArnHasBeenSet = false;
301
302 Aws::String m_clusterArn;
303 bool m_clusterArnHasBeenSet = false;
304
305 Aws::String m_taskDefinition;
306 bool m_taskDefinitionHasBeenSet = false;
307
308 Aws::Vector<CapacityProviderStrategyItem> m_capacityProviderStrategy;
309 bool m_capacityProviderStrategyHasBeenSet = false;
310
311 LaunchType m_launchType{LaunchType::NOT_SET};
312 bool m_launchTypeHasBeenSet = false;
313
314 Aws::String m_platformVersion;
315 bool m_platformVersionHasBeenSet = false;
316
317 Aws::String m_platformFamily;
318 bool m_platformFamilyHasBeenSet = false;
319
320 Aws::Vector<LoadBalancer> m_loadBalancers;
321 bool m_loadBalancersHasBeenSet = false;
322
323 Aws::Vector<ServiceRegistry> m_serviceRegistries;
324 bool m_serviceRegistriesHasBeenSet = false;
325
326 NetworkConfiguration m_networkConfiguration;
327 bool m_networkConfigurationHasBeenSet = false;
328
329 Aws::Vector<ContainerImage> m_containerImages;
330 bool m_containerImagesHasBeenSet = false;
331
332 bool m_guardDutyEnabled{false};
333 bool m_guardDutyEnabledHasBeenSet = false;
334
335 ServiceConnectConfiguration m_serviceConnectConfiguration;
336 bool m_serviceConnectConfigurationHasBeenSet = false;
337
338 Aws::Vector<ServiceVolumeConfiguration> m_volumeConfigurations;
339 bool m_volumeConfigurationsHasBeenSet = false;
340
341 DeploymentEphemeralStorage m_fargateEphemeralStorage;
342 bool m_fargateEphemeralStorageHasBeenSet = false;
343
344 Aws::Utils::DateTime m_createdAt{};
345 bool m_createdAtHasBeenSet = false;
346
347 Aws::Vector<VpcLatticeConfiguration> m_vpcLatticeConfigurations;
348 bool m_vpcLatticeConfigurationsHasBeenSet = false;
349
350 ResolvedConfiguration m_resolvedConfiguration;
351 bool m_resolvedConfigurationHasBeenSet = false;
352 };
353
354} // namespace Model
355} // namespace ECS
356} // namespace Aws
AWS_ECS_API ServiceRevision()=default
ServiceRevision & AddVolumeConfigurations(VolumeConfigurationsT &&value)
const ResolvedConfiguration & GetResolvedConfiguration() const
const Aws::String & GetTaskDefinition() const
const Aws::String & GetPlatformVersion() const
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceRevision & WithServiceRegistries(ServiceRegistriesT &&value)
const DeploymentEphemeralStorage & GetFargateEphemeralStorage() const
void SetResolvedConfiguration(ResolvedConfigurationT &&value)
const Aws::String & GetClusterArn() const
void SetPlatformVersion(PlatformVersionT &&value)
ServiceRevision & WithCapacityProviderStrategy(CapacityProviderStrategyT &&value)
const Aws::Vector< CapacityProviderStrategyItem > & GetCapacityProviderStrategy() const
void SetServiceRegistries(ServiceRegistriesT &&value)
ServiceRevision & WithServiceConnectConfiguration(ServiceConnectConfigurationT &&value)
const Aws::String & GetPlatformFamily() const
ServiceRevision & WithPlatformVersion(PlatformVersionT &&value)
const NetworkConfiguration & GetNetworkConfiguration() const
ServiceRevision & WithClusterArn(ClusterArnT &&value)
ServiceRevision & WithGuardDutyEnabled(bool value)
ServiceRevision & AddContainerImages(ContainerImagesT &&value)
const Aws::Vector< VpcLatticeConfiguration > & GetVpcLatticeConfigurations() const
ServiceRevision & WithTaskDefinition(TaskDefinitionT &&value)
ServiceRevision & AddLoadBalancers(LoadBalancersT &&value)
ServiceRevision & WithNetworkConfiguration(NetworkConfigurationT &&value)
void SetContainerImages(ContainerImagesT &&value)
ServiceRevision & WithCreatedAt(CreatedAtT &&value)
ServiceRevision & AddCapacityProviderStrategy(CapacityProviderStrategyT &&value)
const Aws::String & GetServiceRevisionArn() const
void SetPlatformFamily(PlatformFamilyT &&value)
ServiceRevision & AddVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
void SetFargateEphemeralStorage(FargateEphemeralStorageT &&value)
void SetServiceRevisionArn(ServiceRevisionArnT &&value)
AWS_ECS_API ServiceRevision(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ServiceVolumeConfiguration > & GetVolumeConfigurations() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ServiceRegistry > & GetServiceRegistries() const
AWS_ECS_API ServiceRevision & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceRevision & WithContainerImages(ContainerImagesT &&value)
const Aws::Vector< LoadBalancer > & GetLoadBalancers() const
ServiceRevision & WithServiceRevisionArn(ServiceRevisionArnT &&value)
void SetVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
void SetLoadBalancers(LoadBalancersT &&value)
void SetVolumeConfigurations(VolumeConfigurationsT &&value)
void SetNetworkConfiguration(NetworkConfigurationT &&value)
void SetServiceArn(ServiceArnT &&value)
ServiceRevision & WithLaunchType(LaunchType value)
ServiceRevision & WithVpcLatticeConfigurations(VpcLatticeConfigurationsT &&value)
const Aws::Vector< ContainerImage > & GetContainerImages() const
ServiceRevision & WithFargateEphemeralStorage(FargateEphemeralStorageT &&value)
void SetCapacityProviderStrategy(CapacityProviderStrategyT &&value)
ServiceRevision & WithServiceArn(ServiceArnT &&value)
void SetTaskDefinition(TaskDefinitionT &&value)
ServiceRevision & WithPlatformFamily(PlatformFamilyT &&value)
void SetClusterArn(ClusterArnT &&value)
const ServiceConnectConfiguration & GetServiceConnectConfiguration() const
const Aws::String & GetServiceArn() const
void SetCreatedAt(CreatedAtT &&value)
void SetServiceConnectConfiguration(ServiceConnectConfigurationT &&value)
ServiceRevision & WithVolumeConfigurations(VolumeConfigurationsT &&value)
ServiceRevision & WithResolvedConfiguration(ResolvedConfigurationT &&value)
ServiceRevision & WithLoadBalancers(LoadBalancersT &&value)
void SetLaunchType(LaunchType value)
ServiceRevision & AddServiceRegistries(ServiceRegistriesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue