/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpsWorks { namespace Model { /** *

Describes an Elastic Load Balancing instance.

See Also:

AWS * API Reference

*/ class ElasticLoadBalancer { public: AWS_OPSWORKS_API ElasticLoadBalancer(); AWS_OPSWORKS_API ElasticLoadBalancer(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API ElasticLoadBalancer& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Elastic Load Balancing instance's name.

*/ inline const Aws::String& GetElasticLoadBalancerName() const{ return m_elasticLoadBalancerName; } /** *

The Elastic Load Balancing instance's name.

*/ inline bool ElasticLoadBalancerNameHasBeenSet() const { return m_elasticLoadBalancerNameHasBeenSet; } /** *

The Elastic Load Balancing instance's name.

*/ inline void SetElasticLoadBalancerName(const Aws::String& value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName = value; } /** *

The Elastic Load Balancing instance's name.

*/ inline void SetElasticLoadBalancerName(Aws::String&& value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName = std::move(value); } /** *

The Elastic Load Balancing instance's name.

*/ inline void SetElasticLoadBalancerName(const char* value) { m_elasticLoadBalancerNameHasBeenSet = true; m_elasticLoadBalancerName.assign(value); } /** *

The Elastic Load Balancing instance's name.

*/ inline ElasticLoadBalancer& WithElasticLoadBalancerName(const Aws::String& value) { SetElasticLoadBalancerName(value); return *this;} /** *

The Elastic Load Balancing instance's name.

*/ inline ElasticLoadBalancer& WithElasticLoadBalancerName(Aws::String&& value) { SetElasticLoadBalancerName(std::move(value)); return *this;} /** *

The Elastic Load Balancing instance's name.

*/ inline ElasticLoadBalancer& WithElasticLoadBalancerName(const char* value) { SetElasticLoadBalancerName(value); return *this;} /** *

The instance's AWS region.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The instance's AWS region.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The instance's AWS region.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The instance's AWS region.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The instance's AWS region.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The instance's AWS region.

*/ inline ElasticLoadBalancer& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The instance's AWS region.

*/ inline ElasticLoadBalancer& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The instance's AWS region.

*/ inline ElasticLoadBalancer& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

The instance's public DNS name.

*/ inline const Aws::String& GetDnsName() const{ return m_dnsName; } /** *

The instance's public DNS name.

*/ inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; } /** *

The instance's public DNS name.

*/ inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; } /** *

The instance's public DNS name.

*/ inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); } /** *

The instance's public DNS name.

*/ inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); } /** *

The instance's public DNS name.

*/ inline ElasticLoadBalancer& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;} /** *

The instance's public DNS name.

*/ inline ElasticLoadBalancer& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;} /** *

The instance's public DNS name.

*/ inline ElasticLoadBalancer& WithDnsName(const char* value) { SetDnsName(value); return *this;} /** *

The ID of the stack that the instance is associated with.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The ID of the stack that the instance is associated with.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The ID of the stack that the instance is associated with.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

The ID of the stack that the instance is associated with.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

The ID of the stack that the instance is associated with.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

The ID of the stack that the instance is associated with.

*/ inline ElasticLoadBalancer& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The ID of the stack that the instance is associated with.

*/ inline ElasticLoadBalancer& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The ID of the stack that the instance is associated with.

*/ inline ElasticLoadBalancer& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

The ID of the layer that the instance is attached to.

*/ inline const Aws::String& GetLayerId() const{ return m_layerId; } /** *

The ID of the layer that the instance is attached to.

*/ inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; } /** *

The ID of the layer that the instance is attached to.

*/ inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; } /** *

The ID of the layer that the instance is attached to.

*/ inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); } /** *

The ID of the layer that the instance is attached to.

*/ inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); } /** *

The ID of the layer that the instance is attached to.

*/ inline ElasticLoadBalancer& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;} /** *

The ID of the layer that the instance is attached to.

*/ inline ElasticLoadBalancer& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;} /** *

The ID of the layer that the instance is attached to.

*/ inline ElasticLoadBalancer& WithLayerId(const char* value) { SetLayerId(value); return *this;} /** *

The VPC ID.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The VPC ID.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The VPC ID.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The VPC ID.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The VPC ID.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The VPC ID.

*/ inline ElasticLoadBalancer& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The VPC ID.

*/ inline ElasticLoadBalancer& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The VPC ID.

*/ inline ElasticLoadBalancer& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

A list of Availability Zones.

*/ inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** *

A list of Availability Zones.

*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *

A list of Availability Zones.

*/ inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** *

A list of Availability Zones.

*/ inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** *

A list of Availability Zones.

*/ inline ElasticLoadBalancer& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** *

A list of Availability Zones.

*/ inline ElasticLoadBalancer& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;} /** *

A list of Availability Zones.

*/ inline ElasticLoadBalancer& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

A list of Availability Zones.

*/ inline ElasticLoadBalancer& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *

A list of Availability Zones.

*/ inline ElasticLoadBalancer& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline ElasticLoadBalancer& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline ElasticLoadBalancer& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline ElasticLoadBalancer& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline ElasticLoadBalancer& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

A list of subnet IDs, if the stack is running in a VPC.

*/ inline ElasticLoadBalancer& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline const Aws::Vector& GetEc2InstanceIds() const{ return m_ec2InstanceIds; } /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline bool Ec2InstanceIdsHasBeenSet() const { return m_ec2InstanceIdsHasBeenSet; } /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline void SetEc2InstanceIds(const Aws::Vector& value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds = value; } /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline void SetEc2InstanceIds(Aws::Vector&& value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds = std::move(value); } /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline ElasticLoadBalancer& WithEc2InstanceIds(const Aws::Vector& value) { SetEc2InstanceIds(value); return *this;} /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline ElasticLoadBalancer& WithEc2InstanceIds(Aws::Vector&& value) { SetEc2InstanceIds(std::move(value)); return *this;} /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline ElasticLoadBalancer& AddEc2InstanceIds(const Aws::String& value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds.push_back(value); return *this; } /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline ElasticLoadBalancer& AddEc2InstanceIds(Aws::String&& value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds.push_back(std::move(value)); return *this; } /** *

A list of the EC2 instances that the Elastic Load Balancing instance is * managing traffic for.

*/ inline ElasticLoadBalancer& AddEc2InstanceIds(const char* value) { m_ec2InstanceIdsHasBeenSet = true; m_ec2InstanceIds.push_back(value); return *this; } private: Aws::String m_elasticLoadBalancerName; bool m_elasticLoadBalancerNameHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_dnsName; bool m_dnsNameHasBeenSet = false; Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_layerId; bool m_layerIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Vector m_ec2InstanceIds; bool m_ec2InstanceIdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws