AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeploymentCanarySettings.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APIGATEWAY_API DeploymentCanarySettings();
39 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline double GetPercentTraffic() const{ return m_percentTraffic; }
47 inline bool PercentTrafficHasBeenSet() const { return m_percentTrafficHasBeenSet; }
48 inline void SetPercentTraffic(double value) { m_percentTrafficHasBeenSet = true; m_percentTraffic = value; }
49 inline DeploymentCanarySettings& WithPercentTraffic(double value) { SetPercentTraffic(value); return *this;}
51
53
59 inline const Aws::Map<Aws::String, Aws::String>& GetStageVariableOverrides() const{ return m_stageVariableOverrides; }
60 inline bool StageVariableOverridesHasBeenSet() const { return m_stageVariableOverridesHasBeenSet; }
61 inline void SetStageVariableOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = value; }
62 inline void SetStageVariableOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = std::move(value); }
65 inline DeploymentCanarySettings& AddStageVariableOverrides(const Aws::String& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
66 inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
67 inline DeploymentCanarySettings& AddStageVariableOverrides(const Aws::String& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
68 inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), std::move(value)); return *this; }
69 inline DeploymentCanarySettings& AddStageVariableOverrides(const char* key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
70 inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
71 inline DeploymentCanarySettings& AddStageVariableOverrides(const char* key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
73
75
79 inline bool GetUseStageCache() const{ return m_useStageCache; }
80 inline bool UseStageCacheHasBeenSet() const { return m_useStageCacheHasBeenSet; }
81 inline void SetUseStageCache(bool value) { m_useStageCacheHasBeenSet = true; m_useStageCache = value; }
82 inline DeploymentCanarySettings& WithUseStageCache(bool value) { SetUseStageCache(value); return *this;}
84 private:
85
86 double m_percentTraffic;
87 bool m_percentTrafficHasBeenSet = false;
88
89 Aws::Map<Aws::String, Aws::String> m_stageVariableOverrides;
90 bool m_stageVariableOverridesHasBeenSet = false;
91
92 bool m_useStageCache;
93 bool m_useStageCacheHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace APIGateway
98} // namespace Aws
DeploymentCanarySettings & AddStageVariableOverrides(const char *key, Aws::String &&value)
DeploymentCanarySettings & AddStageVariableOverrides(const char *key, const char *value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentCanarySettings & WithStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
DeploymentCanarySettings & WithStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariableOverrides() const
AWS_APIGATEWAY_API DeploymentCanarySettings(Aws::Utils::Json::JsonView jsonValue)
void SetStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
DeploymentCanarySettings & AddStageVariableOverrides(Aws::String &&key, Aws::String &&value)
DeploymentCanarySettings & AddStageVariableOverrides(const Aws::String &key, Aws::String &&value)
DeploymentCanarySettings & AddStageVariableOverrides(Aws::String &&key, const Aws::String &value)
DeploymentCanarySettings & WithUseStageCache(bool value)
void SetStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APIGATEWAY_API DeploymentCanarySettings & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentCanarySettings & AddStageVariableOverrides(Aws::String &&key, const char *value)
DeploymentCanarySettings & WithPercentTraffic(double value)
DeploymentCanarySettings & AddStageVariableOverrides(const Aws::String &key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue