/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the percentage of traffic to send to a staging
* distribution.See Also:
AWS
* API Reference
The percentage of traffic to send to a staging distribution, expressed as a * decimal number between 0 and .15.
*/ inline double GetWeight() const{ return m_weight; } /** *The percentage of traffic to send to a staging distribution, expressed as a * decimal number between 0 and .15.
*/ inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; } /** *The percentage of traffic to send to a staging distribution, expressed as a * decimal number between 0 and .15.
*/ inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; } /** *The percentage of traffic to send to a staging distribution, expressed as a * decimal number between 0 and .15.
*/ inline ContinuousDeploymentSingleWeightConfig& WithWeight(double value) { SetWeight(value); return *this;} inline const SessionStickinessConfig& GetSessionStickinessConfig() const{ return m_sessionStickinessConfig; } inline bool SessionStickinessConfigHasBeenSet() const { return m_sessionStickinessConfigHasBeenSet; } inline void SetSessionStickinessConfig(const SessionStickinessConfig& value) { m_sessionStickinessConfigHasBeenSet = true; m_sessionStickinessConfig = value; } inline void SetSessionStickinessConfig(SessionStickinessConfig&& value) { m_sessionStickinessConfigHasBeenSet = true; m_sessionStickinessConfig = std::move(value); } inline ContinuousDeploymentSingleWeightConfig& WithSessionStickinessConfig(const SessionStickinessConfig& value) { SetSessionStickinessConfig(value); return *this;} inline ContinuousDeploymentSingleWeightConfig& WithSessionStickinessConfig(SessionStickinessConfig&& value) { SetSessionStickinessConfig(std::move(value)); return *this;} private: double m_weight; bool m_weightHasBeenSet = false; SessionStickinessConfig m_sessionStickinessConfig; bool m_sessionStickinessConfigHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws