/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace AutoScaling { namespace Model { /** *

Describes the state of a target group.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the target group.

*/ inline const Aws::String& GetLoadBalancerTargetGroupARN() const{ return m_loadBalancerTargetGroupARN; } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline bool LoadBalancerTargetGroupARNHasBeenSet() const { return m_loadBalancerTargetGroupARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline void SetLoadBalancerTargetGroupARN(const Aws::String& value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN = value; } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline void SetLoadBalancerTargetGroupARN(Aws::String&& value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline void SetLoadBalancerTargetGroupARN(const char* value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(const Aws::String& value) { SetLoadBalancerTargetGroupARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(Aws::String&& value) { SetLoadBalancerTargetGroupARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(const char* value) { SetLoadBalancerTargetGroupARN(value); return *this;} /** *

The state of the target group.

  • Adding - The * Auto Scaling instances are being registered with the target group.

  • *
  • Added - All Auto Scaling instances are registered with the * target group.

  • InService - At least one Auto * Scaling instance passed an ELB health check.

  • * Removing - The Auto Scaling instances are being deregistered from * the target group. If connection draining is enabled, Elastic Load Balancing * waits for in-flight requests to complete before deregistering the instances.

    *
  • Removed - All Auto Scaling instances are * deregistered from the target group.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The state of the target group.

  • Adding - The * Auto Scaling instances are being registered with the target group.

  • *
  • Added - All Auto Scaling instances are registered with the * target group.

  • InService - At least one Auto * Scaling instance passed an ELB health check.

  • * Removing - The Auto Scaling instances are being deregistered from * the target group. If connection draining is enabled, Elastic Load Balancing * waits for in-flight requests to complete before deregistering the instances.

    *
  • Removed - All Auto Scaling instances are * deregistered from the target group.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the target group.

  • Adding - The * Auto Scaling instances are being registered with the target group.

  • *
  • Added - All Auto Scaling instances are registered with the * target group.

  • InService - At least one Auto * Scaling instance passed an ELB health check.

  • * Removing - The Auto Scaling instances are being deregistered from * the target group. If connection draining is enabled, Elastic Load Balancing * waits for in-flight requests to complete before deregistering the instances.

    *
  • Removed - All Auto Scaling instances are * deregistered from the target group.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the target group.

  • Adding - The * Auto Scaling instances are being registered with the target group.

  • *
  • Added - All Auto Scaling instances are registered with the * target group.

  • InService - At least one Auto * Scaling instance passed an ELB health check.

  • * Removing - The Auto Scaling instances are being deregistered from * the target group. If connection draining is enabled, Elastic Load Balancing * waits for in-flight requests to complete before deregistering the instances.

    *
  • Removed - All Auto Scaling instances are * deregistered from the target group.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the target group.

  • Adding - The * Auto Scaling instances are being registered with the target group.

  • *
  • Added - All Auto Scaling instances are registered with the * target group.

  • InService - At least one Auto * Scaling instance passed an ELB health check.

  • * Removing - The Auto Scaling instances are being deregistered from * the target group. If connection draining is enabled, Elastic Load Balancing * waits for in-flight requests to complete before deregistering the instances.

    *
  • Removed - All Auto Scaling instances are * deregistered from the target group.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The state of the target group.

  • Adding - The * Auto Scaling instances are being registered with the target group.

  • *
  • Added - All Auto Scaling instances are registered with the * target group.

  • InService - At least one Auto * Scaling instance passed an ELB health check.

  • * Removing - The Auto Scaling instances are being deregistered from * the target group. If connection draining is enabled, Elastic Load Balancing * waits for in-flight requests to complete before deregistering the instances.

    *
  • Removed - All Auto Scaling instances are * deregistered from the target group.

*/ inline LoadBalancerTargetGroupState& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The state of the target group.

  • Adding - The * Auto Scaling instances are being registered with the target group.

  • *
  • Added - All Auto Scaling instances are registered with the * target group.

  • InService - At least one Auto * Scaling instance passed an ELB health check.

  • * Removing - The Auto Scaling instances are being deregistered from * the target group. If connection draining is enabled, Elastic Load Balancing * waits for in-flight requests to complete before deregistering the instances.

    *
  • Removed - All Auto Scaling instances are * deregistered from the target group.

*/ inline LoadBalancerTargetGroupState& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The state of the target group.

  • Adding - The * Auto Scaling instances are being registered with the target group.

  • *
  • Added - All Auto Scaling instances are registered with the * target group.

  • InService - At least one Auto * Scaling instance passed an ELB health check.

  • * Removing - The Auto Scaling instances are being deregistered from * the target group. If connection draining is enabled, Elastic Load Balancing * waits for in-flight requests to complete before deregistering the instances.

    *
  • Removed - All Auto Scaling instances are * deregistered from the target group.

*/ inline LoadBalancerTargetGroupState& WithState(const char* value) { SetState(value); return *this;} private: Aws::String m_loadBalancerTargetGroupARN; bool m_loadBalancerTargetGroupARNHasBeenSet; Aws::String m_state; bool m_stateHasBeenSet; }; } // namespace Model } // namespace AutoScaling } // namespace Aws