131 lines
5.5 KiB
C
131 lines
5.5 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace CodeDeploy
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TargetGroupInfo">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_CODEDEPLOY_API TargetGroupInfo
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
TargetGroupInfo();
|
|||
|
|
TargetGroupInfo(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
TargetGroupInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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. </p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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. </p>
|
|||
|
|
*/
|
|||
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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. </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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. </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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. </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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. </p>
|
|||
|
|
*/
|
|||
|
|
inline TargetGroupInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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. </p>
|
|||
|
|
*/
|
|||
|
|
inline TargetGroupInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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. </p>
|
|||
|
|
*/
|
|||
|
|
inline TargetGroupInfo& WithName(const char* value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_name;
|
|||
|
|
bool m_nameHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace CodeDeploy
|
|||
|
|
} // namespace Aws
|