/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the parameters for CreateLoadBalancer.See Also:
AWS
* API Reference
The name of the load balancer.
This name must be unique within your * set of load balancers for the region, must have a maximum of 32 characters, must * contain only alphanumeric characters or hyphens, and cannot begin or end with a * hyphen.
*/ inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; } /** *The name of the load balancer.
This name must be unique within your * set of load balancers for the region, must have a maximum of 32 characters, must * contain only alphanumeric characters or hyphens, and cannot begin or end with a * hyphen.
*/ inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; } /** *The name of the load balancer.
This name must be unique within your * set of load balancers for the region, must have a maximum of 32 characters, must * contain only alphanumeric characters or hyphens, and cannot begin or end with a * hyphen.
*/ inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; } /** *The name of the load balancer.
This name must be unique within your * set of load balancers for the region, must have a maximum of 32 characters, must * contain only alphanumeric characters or hyphens, and cannot begin or end with a * hyphen.
*/ inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); } /** *The name of the load balancer.
This name must be unique within your * set of load balancers for the region, must have a maximum of 32 characters, must * contain only alphanumeric characters or hyphens, and cannot begin or end with a * hyphen.
*/ inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); } /** *The name of the load balancer.
This name must be unique within your * set of load balancers for the region, must have a maximum of 32 characters, must * contain only alphanumeric characters or hyphens, and cannot begin or end with a * hyphen.
*/ inline CreateLoadBalancerRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;} /** *The name of the load balancer.
This name must be unique within your * set of load balancers for the region, must have a maximum of 32 characters, must * contain only alphanumeric characters or hyphens, and cannot begin or end with a * hyphen.
*/ inline CreateLoadBalancerRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;} /** *The name of the load balancer.
This name must be unique within your * set of load balancers for the region, must have a maximum of 32 characters, must * contain only alphanumeric characters or hyphens, and cannot begin or end with a * hyphen.
*/ inline CreateLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;} /** *The listeners.
For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.
*/ inline const Aws::VectorThe listeners.
For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.
*/ inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; } /** *The listeners.
For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.
*/ inline void SetListeners(const Aws::VectorThe listeners.
For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.
*/ inline void SetListeners(Aws::VectorThe listeners.
For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.
*/ inline CreateLoadBalancerRequest& WithListeners(const Aws::VectorThe listeners.
For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.
*/ inline CreateLoadBalancerRequest& WithListeners(Aws::VectorThe listeners.
For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.
*/ inline CreateLoadBalancerRequest& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; } /** *The listeners.
For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.
*/ inline CreateLoadBalancerRequest& AddListeners(Listener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; } /** *One or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline const Aws::VectorOne or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *One or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline void SetAvailabilityZones(const Aws::VectorOne or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline void SetAvailabilityZones(Aws::VectorOne or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline CreateLoadBalancerRequest& WithAvailabilityZones(const Aws::VectorOne or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline CreateLoadBalancerRequest& WithAvailabilityZones(Aws::VectorOne or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline CreateLoadBalancerRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *One or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline CreateLoadBalancerRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *One or more Availability Zones from the same region as the load balancer.
*You must specify at least one Availability Zone.
You can add more * Availability Zones after you create the load balancer using * EnableAvailabilityZonesForLoadBalancer.
*/ inline CreateLoadBalancerRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the subnets in your VPC to attach to the load balancer. Specify
* one subnet per Availability Zone specified in
* AvailabilityZones
.
The IDs of the security groups to assign to the load balancer.
*/ inline const Aws::VectorThe IDs of the security groups to assign to the load balancer.
*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *The IDs of the security groups to assign to the load balancer.
*/ inline void SetSecurityGroups(const Aws::VectorThe IDs of the security groups to assign to the load balancer.
*/ inline void SetSecurityGroups(Aws::VectorThe IDs of the security groups to assign to the load balancer.
*/ inline CreateLoadBalancerRequest& WithSecurityGroups(const Aws::VectorThe IDs of the security groups to assign to the load balancer.
*/ inline CreateLoadBalancerRequest& WithSecurityGroups(Aws::VectorThe IDs of the security groups to assign to the load balancer.
*/ inline CreateLoadBalancerRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *The IDs of the security groups to assign to the load balancer.
*/ inline CreateLoadBalancerRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *The IDs of the security groups to assign to the load balancer.
*/ inline CreateLoadBalancerRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *The type of a load balancer. Valid only for load balancers in a VPC.
*By default, Elastic Load Balancing creates an Internet-facing load balancer * with a DNS name that resolves to public IP addresses. For more information about * Internet-facing and Internal load balancers, see Load * Balancer Scheme in the Elastic Load Balancing User Guide.
*Specify internal
to create a load balancer with a DNS name that
* resolves to private IP addresses.
The type of a load balancer. Valid only for load balancers in a VPC.
*By default, Elastic Load Balancing creates an Internet-facing load balancer * with a DNS name that resolves to public IP addresses. For more information about * Internet-facing and Internal load balancers, see Load * Balancer Scheme in the Elastic Load Balancing User Guide.
*Specify internal
to create a load balancer with a DNS name that
* resolves to private IP addresses.
The type of a load balancer. Valid only for load balancers in a VPC.
*By default, Elastic Load Balancing creates an Internet-facing load balancer * with a DNS name that resolves to public IP addresses. For more information about * Internet-facing and Internal load balancers, see Load * Balancer Scheme in the Elastic Load Balancing User Guide.
*Specify internal
to create a load balancer with a DNS name that
* resolves to private IP addresses.
The type of a load balancer. Valid only for load balancers in a VPC.
*By default, Elastic Load Balancing creates an Internet-facing load balancer * with a DNS name that resolves to public IP addresses. For more information about * Internet-facing and Internal load balancers, see Load * Balancer Scheme in the Elastic Load Balancing User Guide.
*Specify internal
to create a load balancer with a DNS name that
* resolves to private IP addresses.
The type of a load balancer. Valid only for load balancers in a VPC.
*By default, Elastic Load Balancing creates an Internet-facing load balancer * with a DNS name that resolves to public IP addresses. For more information about * Internet-facing and Internal load balancers, see Load * Balancer Scheme in the Elastic Load Balancing User Guide.
*Specify internal
to create a load balancer with a DNS name that
* resolves to private IP addresses.
The type of a load balancer. Valid only for load balancers in a VPC.
*By default, Elastic Load Balancing creates an Internet-facing load balancer * with a DNS name that resolves to public IP addresses. For more information about * Internet-facing and Internal load balancers, see Load * Balancer Scheme in the Elastic Load Balancing User Guide.
*Specify internal
to create a load balancer with a DNS name that
* resolves to private IP addresses.
The type of a load balancer. Valid only for load balancers in a VPC.
*By default, Elastic Load Balancing creates an Internet-facing load balancer * with a DNS name that resolves to public IP addresses. For more information about * Internet-facing and Internal load balancers, see Load * Balancer Scheme in the Elastic Load Balancing User Guide.
*Specify internal
to create a load balancer with a DNS name that
* resolves to private IP addresses.
The type of a load balancer. Valid only for load balancers in a VPC.
*By default, Elastic Load Balancing creates an Internet-facing load balancer * with a DNS name that resolves to public IP addresses. For more information about * Internet-facing and Internal load balancers, see Load * Balancer Scheme in the Elastic Load Balancing User Guide.
*Specify internal
to create a load balancer with a DNS name that
* resolves to private IP addresses.
A list of tags to assign to the load balancer.
For more information * about tagging your load balancer, see Tag * Your Classic Load Balancer in the Classic Load Balancers Guide.
*/ inline const Aws::VectorA list of tags to assign to the load balancer.
For more information * about tagging your load balancer, see Tag * Your Classic Load Balancer in the Classic Load Balancers Guide.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *A list of tags to assign to the load balancer.
For more information * about tagging your load balancer, see Tag * Your Classic Load Balancer in the Classic Load Balancers Guide.
*/ inline void SetTags(const Aws::VectorA list of tags to assign to the load balancer.
For more information * about tagging your load balancer, see Tag * Your Classic Load Balancer in the Classic Load Balancers Guide.
*/ inline void SetTags(Aws::VectorA list of tags to assign to the load balancer.
For more information * about tagging your load balancer, see Tag * Your Classic Load Balancer in the Classic Load Balancers Guide.
*/ inline CreateLoadBalancerRequest& WithTags(const Aws::VectorA list of tags to assign to the load balancer.
For more information * about tagging your load balancer, see Tag * Your Classic Load Balancer in the Classic Load Balancers Guide.
*/ inline CreateLoadBalancerRequest& WithTags(Aws::VectorA list of tags to assign to the load balancer.
For more information * about tagging your load balancer, see Tag * Your Classic Load Balancer in the Classic Load Balancers Guide.
*/ inline CreateLoadBalancerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *A list of tags to assign to the load balancer.
For more information * about tagging your load balancer, see Tag * Your Classic Load Balancer in the Classic Load Balancers Guide.
*/ inline CreateLoadBalancerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_loadBalancerName; bool m_loadBalancerNameHasBeenSet = false; Aws::Vector