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

Describes a load balancer target.

See Also:

AWS * API Reference

*/ class AnalysisLoadBalancerTarget { public: AWS_EC2_API AnalysisLoadBalancerTarget(); AWS_EC2_API AnalysisLoadBalancerTarget(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AnalysisLoadBalancerTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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