/** * 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 target group in Elastic Load Balancing to use in a * deployment. Instances are registered as targets in a target group, and traffic * is routed to the target group.

See Also:

AWS * API Reference

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

For blue/green deployments, the name of the target group that instances in * the original environment are deregistered from, and instances in the replacement * environment are registered with. For in-place deployments, the name of the * target group 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 target group that instances in * the original environment are deregistered from, and instances in the replacement * environment are registered with. For in-place deployments, the name of the * target group 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 target group that instances in * the original environment are deregistered from, and instances in the replacement * environment are registered with. For in-place deployments, the name of the * target group 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 target group that instances in * the original environment are deregistered from, and instances in the replacement * environment are registered with. For in-place deployments, the name of the * target group 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 target group that instances in * the original environment are deregistered from, and instances in the replacement * environment are registered with. For in-place deployments, the name of the * target group 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 target group that instances in * the original environment are deregistered from, and instances in the replacement * environment are registered with. For in-place deployments, the name of the * target group 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 TargetGroupInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

For blue/green deployments, the name of the target group that instances in * the original environment are deregistered from, and instances in the replacement * environment are registered with. For in-place deployments, the name of the * target group 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 TargetGroupInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

For blue/green deployments, the name of the target group that instances in * the original environment are deregistered from, and instances in the replacement * environment are registered with. For in-place deployments, the name of the * target group 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 TargetGroupInfo& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws