This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codedeploy/include/aws/codedeploy/model/TrafficRoutingConfig.h

194 lines
8.1 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/codedeploy/model/TrafficRoutingType.h>
#include <aws/codedeploy/model/TimeBasedCanary.h>
#include <aws/codedeploy/model/TimeBasedLinear.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>The configuration that specifies how traffic is shifted from one version of a
* Lambda function to another version during an AWS Lambda deployment, or from one
* Amazon ECS task set to another during an Amazon ECS deployment.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TrafficRoutingConfig">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API TrafficRoutingConfig
{
public:
TrafficRoutingConfig();
TrafficRoutingConfig(Aws::Utils::Json::JsonView jsonValue);
TrafficRoutingConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of traffic shifting (<code>TimeBasedCanary</code> or
* <code>TimeBasedLinear</code>) used by a deployment configuration.</p>
*/
inline const TrafficRoutingType& GetType() const{ return m_type; }
/**
* <p>The type of traffic shifting (<code>TimeBasedCanary</code> or
* <code>TimeBasedLinear</code>) used by a deployment configuration.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of traffic shifting (<code>TimeBasedCanary</code> or
* <code>TimeBasedLinear</code>) used by a deployment configuration.</p>
*/
inline void SetType(const TrafficRoutingType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of traffic shifting (<code>TimeBasedCanary</code> or
* <code>TimeBasedLinear</code>) used by a deployment configuration.</p>
*/
inline void SetType(TrafficRoutingType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of traffic shifting (<code>TimeBasedCanary</code> or
* <code>TimeBasedLinear</code>) used by a deployment configuration.</p>
*/
inline TrafficRoutingConfig& WithType(const TrafficRoutingType& value) { SetType(value); return *this;}
/**
* <p>The type of traffic shifting (<code>TimeBasedCanary</code> or
* <code>TimeBasedLinear</code>) used by a deployment configuration.</p>
*/
inline TrafficRoutingConfig& WithType(TrafficRoutingType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in two increments. The original and target Lambda
* function versions or ECS task sets are specified in the deployment's AppSpec
* file.</p>
*/
inline const TimeBasedCanary& GetTimeBasedCanary() const{ return m_timeBasedCanary; }
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in two increments. The original and target Lambda
* function versions or ECS task sets are specified in the deployment's AppSpec
* file.</p>
*/
inline bool TimeBasedCanaryHasBeenSet() const { return m_timeBasedCanaryHasBeenSet; }
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in two increments. The original and target Lambda
* function versions or ECS task sets are specified in the deployment's AppSpec
* file.</p>
*/
inline void SetTimeBasedCanary(const TimeBasedCanary& value) { m_timeBasedCanaryHasBeenSet = true; m_timeBasedCanary = value; }
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in two increments. The original and target Lambda
* function versions or ECS task sets are specified in the deployment's AppSpec
* file.</p>
*/
inline void SetTimeBasedCanary(TimeBasedCanary&& value) { m_timeBasedCanaryHasBeenSet = true; m_timeBasedCanary = std::move(value); }
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in two increments. The original and target Lambda
* function versions or ECS task sets are specified in the deployment's AppSpec
* file.</p>
*/
inline TrafficRoutingConfig& WithTimeBasedCanary(const TimeBasedCanary& value) { SetTimeBasedCanary(value); return *this;}
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in two increments. The original and target Lambda
* function versions or ECS task sets are specified in the deployment's AppSpec
* file.</p>
*/
inline TrafficRoutingConfig& WithTimeBasedCanary(TimeBasedCanary&& value) { SetTimeBasedCanary(std::move(value)); return *this;}
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in equal increments, with an equal number of minutes
* between each increment. The original and target Lambda function versions or ECS
* task sets are specified in the deployment's AppSpec file.</p>
*/
inline const TimeBasedLinear& GetTimeBasedLinear() const{ return m_timeBasedLinear; }
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in equal increments, with an equal number of minutes
* between each increment. The original and target Lambda function versions or ECS
* task sets are specified in the deployment's AppSpec file.</p>
*/
inline bool TimeBasedLinearHasBeenSet() const { return m_timeBasedLinearHasBeenSet; }
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in equal increments, with an equal number of minutes
* between each increment. The original and target Lambda function versions or ECS
* task sets are specified in the deployment's AppSpec file.</p>
*/
inline void SetTimeBasedLinear(const TimeBasedLinear& value) { m_timeBasedLinearHasBeenSet = true; m_timeBasedLinear = value; }
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in equal increments, with an equal number of minutes
* between each increment. The original and target Lambda function versions or ECS
* task sets are specified in the deployment's AppSpec file.</p>
*/
inline void SetTimeBasedLinear(TimeBasedLinear&& value) { m_timeBasedLinearHasBeenSet = true; m_timeBasedLinear = std::move(value); }
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in equal increments, with an equal number of minutes
* between each increment. The original and target Lambda function versions or ECS
* task sets are specified in the deployment's AppSpec file.</p>
*/
inline TrafficRoutingConfig& WithTimeBasedLinear(const TimeBasedLinear& value) { SetTimeBasedLinear(value); return *this;}
/**
* <p>A configuration that shifts traffic from one version of a Lambda function or
* ECS task set to another in equal increments, with an equal number of minutes
* between each increment. The original and target Lambda function versions or ECS
* task sets are specified in the deployment's AppSpec file.</p>
*/
inline TrafficRoutingConfig& WithTimeBasedLinear(TimeBasedLinear&& value) { SetTimeBasedLinear(std::move(value)); return *this;}
private:
TrafficRoutingType m_type;
bool m_typeHasBeenSet;
TimeBasedCanary m_timeBasedCanary;
bool m_timeBasedCanaryHasBeenSet;
TimeBasedLinear m_timeBasedLinear;
bool m_timeBasedLinearHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws