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

Information about a load balancer in Elastic Load Balancing to use in a * deployment. Instances are registered directly with a load balancer, and traffic * is routed to the load balancer.

See Also:

AWS * API Reference

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

For blue/green deployments, the name of the load balancer that is used to * route traffic from original instances to replacement instances in a blue/green * deployment. For in-place deployments, the name of the load balancer that * instances are deregistered from so they are not serving traffic during a * deployment, and then re-registered with after the deployment is complete.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

For blue/green deployments, the name of the load balancer that is used to * route traffic from original instances to replacement instances in a blue/green * deployment. For in-place deployments, the name of the load balancer that * instances are deregistered from so they are not serving traffic during a * deployment, and then re-registered with after the deployment is complete.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

For blue/green deployments, the name of the load balancer that is used to * route traffic from original instances to replacement instances in a blue/green * deployment. For in-place deployments, the name of the load balancer that * instances are deregistered from so they are not serving traffic during a * deployment, and then re-registered with after the deployment is complete.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

For blue/green deployments, the name of the load balancer that is used to * route traffic from original instances to replacement instances in a blue/green * deployment. For in-place deployments, the name of the load balancer that * instances are deregistered from so they are not serving traffic during a * deployment, and then re-registered with after the deployment is complete.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

For blue/green deployments, the name of the load balancer that is used to * route traffic from original instances to replacement instances in a blue/green * deployment. For in-place deployments, the name of the load balancer that * instances are deregistered from so they are not serving traffic during a * deployment, and then re-registered with after the deployment is complete.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

For blue/green deployments, the name of the load balancer that is used to * route traffic from original instances to replacement instances in a blue/green * deployment. For in-place deployments, the name of the load balancer that * instances are deregistered from so they are not serving traffic during a * deployment, and then re-registered with after the deployment is complete.

*/ inline ELBInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

For blue/green deployments, the name of the load balancer that is used to * route traffic from original instances to replacement instances in a blue/green * deployment. For in-place deployments, the name of the load balancer that * instances are deregistered from so they are not serving traffic during a * deployment, and then re-registered with after the deployment is complete.

*/ inline ELBInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

For blue/green deployments, the name of the load balancer that is used to * route traffic from original instances to replacement instances in a blue/green * deployment. For in-place deployments, the name of the load balancer that * instances are deregistered from so they are not serving traffic during a * deployment, and then re-registered with after the deployment is complete.

*/ inline ELBInfo& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws