7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
48 inline void SetPercentTraffic(
double value) { m_percentTrafficHasBeenSet =
true; m_percentTraffic = value; }
61 template<
typename StageVariableOverr
idesT = Aws::Map<Aws::String, Aws::String>>
62 void SetStageVariableOverrides(StageVariableOverridesT&& value) { m_stageVariableOverridesHasBeenSet =
true; m_stageVariableOverrides = std::forward<StageVariableOverridesT>(value); }
63 template<
typename StageVariableOverr
idesT = Aws::Map<Aws::String, Aws::String>>
65 template<
typename StageVariableOverr
idesKeyT = Aws::String,
typename StageVariableOverr
idesValueT = Aws::String>
67 m_stageVariableOverridesHasBeenSet =
true; m_stageVariableOverrides.emplace(std::forward<StageVariableOverridesKeyT>(key), std::forward<StageVariableOverridesValueT>(value));
return *
this;
78 inline void SetUseStageCache(
bool value) { m_useStageCacheHasBeenSet =
true; m_useStageCache = value; }
83 double m_percentTraffic{0.0};
84 bool m_percentTrafficHasBeenSet =
false;
87 bool m_stageVariableOverridesHasBeenSet =
false;
89 bool m_useStageCache{
false};
90 bool m_useStageCacheHasBeenSet =
false;
void SetUseStageCache(bool value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool PercentTrafficHasBeenSet() const
bool GetUseStageCache() const
void SetPercentTraffic(double value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariableOverrides() const
DeploymentCanarySettings & AddStageVariableOverrides(StageVariableOverridesKeyT &&key, StageVariableOverridesValueT &&value)
AWS_APIGATEWAY_API DeploymentCanarySettings(Aws::Utils::Json::JsonView jsonValue)
double GetPercentTraffic() const
DeploymentCanarySettings & WithUseStageCache(bool value)
AWS_APIGATEWAY_API DeploymentCanarySettings()=default
bool StageVariableOverridesHasBeenSet() const
AWS_APIGATEWAY_API DeploymentCanarySettings & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UseStageCacheHasBeenSet() const
DeploymentCanarySettings & WithStageVariableOverrides(StageVariableOverridesT &&value)
void SetStageVariableOverrides(StageVariableOverridesT &&value)
DeploymentCanarySettings & WithPercentTraffic(double value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue