/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a load balancer target.See Also:
AWS
* API Reference
The IP address.
*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *The IP address.
*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *The IP address.
*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *The IP address.
*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *The IP address.
*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *The IP address.
*/ inline AnalysisLoadBalancerTarget& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *The IP address.
*/ inline AnalysisLoadBalancerTarget& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *The IP address.
*/ inline AnalysisLoadBalancerTarget& WithAddress(const char* value) { SetAddress(value); return *this;} /** *The Availability Zone.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Availability Zone.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Availability Zone.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Availability Zone.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Availability Zone.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Availability Zone.
*/ inline AnalysisLoadBalancerTarget& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone.
*/ inline AnalysisLoadBalancerTarget& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone.
*/ inline AnalysisLoadBalancerTarget& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *Information about the instance.
*/ inline const AnalysisComponent& GetInstance() const{ return m_instance; } /** *Information about the instance.
*/ inline bool InstanceHasBeenSet() const { return m_instanceHasBeenSet; } /** *Information about the instance.
*/ inline void SetInstance(const AnalysisComponent& value) { m_instanceHasBeenSet = true; m_instance = value; } /** *Information about the instance.
*/ inline void SetInstance(AnalysisComponent&& value) { m_instanceHasBeenSet = true; m_instance = std::move(value); } /** *Information about the instance.
*/ inline AnalysisLoadBalancerTarget& WithInstance(const AnalysisComponent& value) { SetInstance(value); return *this;} /** *Information about the instance.
*/ inline AnalysisLoadBalancerTarget& WithInstance(AnalysisComponent&& value) { SetInstance(std::move(value)); return *this;} /** *The port on which the target is listening.
*/ inline int GetPort() const{ return m_port; } /** *The port on which the target is listening.
*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *The port on which the target is listening.
*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *The port on which the target is listening.
*/ inline AnalysisLoadBalancerTarget& WithPort(int value) { SetPort(value); return *this;} private: Aws::String m_address; bool m_addressHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; AnalysisComponent m_instance; bool m_instanceHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws