/** * 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 the instances that belong to the replacement environment in * a blue/green deployment.

See Also:

AWS * API Reference

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

The method used to add instances to a replacement environment.

  • *

    DISCOVER_EXISTING: Use instances that already exist or will be * created manually.

  • COPY_AUTO_SCALING_GROUP: Use * settings from a specified Auto Scaling group to define and create instances in a * new Auto Scaling group.

*/ inline const GreenFleetProvisioningAction& GetAction() const{ return m_action; } /** *

The method used to add instances to a replacement environment.

  • *

    DISCOVER_EXISTING: Use instances that already exist or will be * created manually.

  • COPY_AUTO_SCALING_GROUP: Use * settings from a specified Auto Scaling group to define and create instances in a * new Auto Scaling group.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The method used to add instances to a replacement environment.

  • *

    DISCOVER_EXISTING: Use instances that already exist or will be * created manually.

  • COPY_AUTO_SCALING_GROUP: Use * settings from a specified Auto Scaling group to define and create instances in a * new Auto Scaling group.

*/ inline void SetAction(const GreenFleetProvisioningAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The method used to add instances to a replacement environment.

  • *

    DISCOVER_EXISTING: Use instances that already exist or will be * created manually.

  • COPY_AUTO_SCALING_GROUP: Use * settings from a specified Auto Scaling group to define and create instances in a * new Auto Scaling group.

*/ inline void SetAction(GreenFleetProvisioningAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The method used to add instances to a replacement environment.

  • *

    DISCOVER_EXISTING: Use instances that already exist or will be * created manually.

  • COPY_AUTO_SCALING_GROUP: Use * settings from a specified Auto Scaling group to define and create instances in a * new Auto Scaling group.

*/ inline GreenFleetProvisioningOption& WithAction(const GreenFleetProvisioningAction& value) { SetAction(value); return *this;} /** *

The method used to add instances to a replacement environment.

  • *

    DISCOVER_EXISTING: Use instances that already exist or will be * created manually.

  • COPY_AUTO_SCALING_GROUP: Use * settings from a specified Auto Scaling group to define and create instances in a * new Auto Scaling group.

*/ inline GreenFleetProvisioningOption& WithAction(GreenFleetProvisioningAction&& value) { SetAction(std::move(value)); return *this;} private: GreenFleetProvisioningAction m_action; bool m_actionHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws