/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace ElasticLoadBalancing { namespace Model { /** *

Contains the parameters for CreateLoadBalancer.

See Also:

AWS * API Reference

*/ class CreateLoadBalancerRequest : public ElasticLoadBalancingRequest { public: AWS_ELASTICLOADBALANCING_API CreateLoadBalancerRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateLoadBalancer"; } AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override; protected: AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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::Vector& GetListeners() const{ return m_listeners; } /** *

The 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::Vector& value) { m_listenersHasBeenSet = true; m_listeners = value; } /** *

The listeners.

For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.

*/ inline void SetListeners(Aws::Vector&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); } /** *

The listeners.

For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.

*/ inline CreateLoadBalancerRequest& WithListeners(const Aws::Vector& value) { SetListeners(value); return *this;} /** *

The listeners.

For more information, see Listeners * for Your Classic Load Balancer in the Classic Load Balancers * Guide.

*/ inline CreateLoadBalancerRequest& WithListeners(Aws::Vector&& value) { SetListeners(std::move(value)); return *this;} /** *

The 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::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** *

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 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::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** *

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(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** *

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& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(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& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(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 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.

*/ inline const Aws::Vector& GetSubnets() const{ return m_subnets; } /** *

The IDs of the subnets in your VPC to attach to the load balancer. Specify * one subnet per Availability Zone specified in * AvailabilityZones.

*/ inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } /** *

The IDs of the subnets in your VPC to attach to the load balancer. Specify * one subnet per Availability Zone specified in * AvailabilityZones.

*/ inline void SetSubnets(const Aws::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } /** *

The IDs of the subnets in your VPC to attach to the load balancer. Specify * one subnet per Availability Zone specified in * AvailabilityZones.

*/ inline void SetSubnets(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } /** *

The IDs of the subnets in your VPC to attach to the load balancer. Specify * one subnet per Availability Zone specified in * AvailabilityZones.

*/ inline CreateLoadBalancerRequest& WithSubnets(const Aws::Vector& value) { SetSubnets(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.

*/ inline CreateLoadBalancerRequest& WithSubnets(Aws::Vector&& value) { SetSubnets(std::move(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.

*/ inline CreateLoadBalancerRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.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.

*/ inline CreateLoadBalancerRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(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.

*/ inline CreateLoadBalancerRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *

The IDs of the security groups to assign to the load balancer.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

The 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::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

The IDs of the security groups to assign to the load balancer.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

The IDs of the security groups to assign to the load balancer.

*/ inline CreateLoadBalancerRequest& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

The IDs of the security groups to assign to the load balancer.

*/ inline CreateLoadBalancerRequest& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

The 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.

*/ inline const Aws::String& GetScheme() const{ return m_scheme; } /** *

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.

*/ inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; } /** *

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.

*/ inline void SetScheme(const Aws::String& value) { m_schemeHasBeenSet = true; m_scheme = value; } /** *

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.

*/ inline void SetScheme(Aws::String&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); } /** *

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.

*/ inline void SetScheme(const char* value) { m_schemeHasBeenSet = true; m_scheme.assign(value); } /** *

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.

*/ inline CreateLoadBalancerRequest& WithScheme(const Aws::String& value) { SetScheme(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.

*/ inline CreateLoadBalancerRequest& WithScheme(Aws::String&& value) { SetScheme(std::move(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.

*/ inline CreateLoadBalancerRequest& WithScheme(const char* value) { SetScheme(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 const Aws::Vector& GetTags() const{ return m_tags; } /** *

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 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::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

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(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

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& WithTags(const Aws::Vector& value) { SetTags(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& WithTags(Aws::Vector&& value) { SetTags(std::move(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(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 m_listeners; bool m_listenersHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; Aws::String m_scheme; bool m_schemeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancing } // namespace Aws