/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a load balancer that the service uses.See
* Also:
AWS
* API Reference
The name of the container to associate with the load balancer.
*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *The name of the container to associate with the load balancer.
*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *The name of the container to associate with the load balancer.
*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *The name of the container to associate with the load balancer.
*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *The name of the container to associate with the load balancer.
*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *The name of the container to associate with the load balancer.
*/ inline AwsEcsServiceLoadBalancersDetails& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *The name of the container to associate with the load balancer.
*/ inline AwsEcsServiceLoadBalancersDetails& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *The name of the container to associate with the load balancer.
*/ inline AwsEcsServiceLoadBalancersDetails& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *The port on the container to associate with the load balancer. This port must
* correspond to a containerPort
in the task definition the tasks in
* the service are using. For tasks that use the EC2 launch type, the container
* instance they are launched on must allow ingress traffic on the
* hostPort
of the port mapping.
The port on the container to associate with the load balancer. This port must
* correspond to a containerPort
in the task definition the tasks in
* the service are using. For tasks that use the EC2 launch type, the container
* instance they are launched on must allow ingress traffic on the
* hostPort
of the port mapping.
The port on the container to associate with the load balancer. This port must
* correspond to a containerPort
in the task definition the tasks in
* the service are using. For tasks that use the EC2 launch type, the container
* instance they are launched on must allow ingress traffic on the
* hostPort
of the port mapping.
The port on the container to associate with the load balancer. This port must
* correspond to a containerPort
in the task definition the tasks in
* the service are using. For tasks that use the EC2 launch type, the container
* instance they are launched on must allow ingress traffic on the
* hostPort
of the port mapping.
The name of the load balancer to associate with the Amazon ECS service or * task set.
Only specified when using a Classic Load Balancer. For an * Application Load Balancer or a Network Load Balancer, the load balancer name is * omitted.
*/ inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; } /** *The name of the load balancer to associate with the Amazon ECS service or * task set.
Only specified when using a Classic Load Balancer. For an * Application Load Balancer or a Network Load Balancer, the load balancer name is * omitted.
*/ inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; } /** *The name of the load balancer to associate with the Amazon ECS service or * task set.
Only specified when using a Classic Load Balancer. For an * Application Load Balancer or a Network Load Balancer, the load balancer name is * omitted.
*/ inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; } /** *The name of the load balancer to associate with the Amazon ECS service or * task set.
Only specified when using a Classic Load Balancer. For an * Application Load Balancer or a Network Load Balancer, the load balancer name is * omitted.
*/ inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); } /** *The name of the load balancer to associate with the Amazon ECS service or * task set.
Only specified when using a Classic Load Balancer. For an * Application Load Balancer or a Network Load Balancer, the load balancer name is * omitted.
*/ inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); } /** *The name of the load balancer to associate with the Amazon ECS service or * task set.
Only specified when using a Classic Load Balancer. For an * Application Load Balancer or a Network Load Balancer, the load balancer name is * omitted.
*/ inline AwsEcsServiceLoadBalancersDetails& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;} /** *The name of the load balancer to associate with the Amazon ECS service or * task set.
Only specified when using a Classic Load Balancer. For an * Application Load Balancer or a Network Load Balancer, the load balancer name is * omitted.
*/ inline AwsEcsServiceLoadBalancersDetails& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;} /** *The name of the load balancer to associate with the Amazon ECS service or * task set.
Only specified when using a Classic Load Balancer. For an * Application Load Balancer or a Network Load Balancer, the load balancer name is * omitted.
*/ inline AwsEcsServiceLoadBalancersDetails& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;} /** *The ARN of the Elastic Load Balancing target group or groups associated with * a service or task set.
Only specified when using an Application Load * Balancer or a Network Load Balancer. For a Classic Load Balancer, the target * group ARN is omitted.
*/ inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; } /** *The ARN of the Elastic Load Balancing target group or groups associated with * a service or task set.
Only specified when using an Application Load * Balancer or a Network Load Balancer. For a Classic Load Balancer, the target * group ARN is omitted.
*/ inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; } /** *The ARN of the Elastic Load Balancing target group or groups associated with * a service or task set.
Only specified when using an Application Load * Balancer or a Network Load Balancer. For a Classic Load Balancer, the target * group ARN is omitted.
*/ inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; } /** *The ARN of the Elastic Load Balancing target group or groups associated with * a service or task set.
Only specified when using an Application Load * Balancer or a Network Load Balancer. For a Classic Load Balancer, the target * group ARN is omitted.
*/ inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); } /** *The ARN of the Elastic Load Balancing target group or groups associated with * a service or task set.
Only specified when using an Application Load * Balancer or a Network Load Balancer. For a Classic Load Balancer, the target * group ARN is omitted.
*/ inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); } /** *The ARN of the Elastic Load Balancing target group or groups associated with * a service or task set.
Only specified when using an Application Load * Balancer or a Network Load Balancer. For a Classic Load Balancer, the target * group ARN is omitted.
*/ inline AwsEcsServiceLoadBalancersDetails& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;} /** *The ARN of the Elastic Load Balancing target group or groups associated with * a service or task set.
Only specified when using an Application Load * Balancer or a Network Load Balancer. For a Classic Load Balancer, the target * group ARN is omitted.
*/ inline AwsEcsServiceLoadBalancersDetails& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;} /** *The ARN of the Elastic Load Balancing target group or groups associated with * a service or task set.
Only specified when using an Application Load * Balancer or a Network Load Balancer. For a Classic Load Balancer, the target * group ARN is omitted.
*/ inline AwsEcsServiceLoadBalancersDetails& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;} private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; int m_containerPort; bool m_containerPortHasBeenSet = false; Aws::String m_loadBalancerName; bool m_loadBalancerNameHasBeenSet = false; Aws::String m_targetGroupArn; bool m_targetGroupArnHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws