AWS SDK for C++  1.9.16
AWS SDK for C++
DeploymentCanarySettings.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace APIGateway
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline double GetPercentTraffic() const{ return m_percentTraffic; }
46 
50  inline bool PercentTrafficHasBeenSet() const { return m_percentTrafficHasBeenSet; }
51 
55  inline void SetPercentTraffic(double value) { m_percentTrafficHasBeenSet = true; m_percentTraffic = value; }
56 
60  inline DeploymentCanarySettings& WithPercentTraffic(double value) { SetPercentTraffic(value); return *this;}
61 
62 
69  inline const Aws::Map<Aws::String, Aws::String>& GetStageVariableOverrides() const{ return m_stageVariableOverrides; }
70 
77  inline bool StageVariableOverridesHasBeenSet() const { return m_stageVariableOverridesHasBeenSet; }
78 
85  inline void SetStageVariableOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = value; }
86 
93  inline void SetStageVariableOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = std::move(value); }
94 
101  inline DeploymentCanarySettings& WithStageVariableOverrides(const Aws::Map<Aws::String, Aws::String>& value) { SetStageVariableOverrides(value); return *this;}
102 
109  inline DeploymentCanarySettings& WithStageVariableOverrides(Aws::Map<Aws::String, Aws::String>&& value) { SetStageVariableOverrides(std::move(value)); return *this;}
110 
117  inline DeploymentCanarySettings& AddStageVariableOverrides(const Aws::String& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
118 
125  inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
126 
133  inline DeploymentCanarySettings& AddStageVariableOverrides(const Aws::String& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
134 
141  inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), std::move(value)); return *this; }
142 
149  inline DeploymentCanarySettings& AddStageVariableOverrides(const char* key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
150 
157  inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
158 
165  inline DeploymentCanarySettings& AddStageVariableOverrides(const char* key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
166 
167 
172  inline bool GetUseStageCache() const{ return m_useStageCache; }
173 
178  inline bool UseStageCacheHasBeenSet() const { return m_useStageCacheHasBeenSet; }
179 
184  inline void SetUseStageCache(bool value) { m_useStageCacheHasBeenSet = true; m_useStageCache = value; }
185 
190  inline DeploymentCanarySettings& WithUseStageCache(bool value) { SetUseStageCache(value); return *this;}
191 
192  private:
193 
194  double m_percentTraffic;
195  bool m_percentTrafficHasBeenSet;
196 
197  Aws::Map<Aws::String, Aws::String> m_stageVariableOverrides;
198  bool m_stageVariableOverridesHasBeenSet;
199 
200  bool m_useStageCache;
201  bool m_useStageCacheHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace APIGateway
206 } // namespace Aws
Aws::APIGateway::Model::DeploymentCanarySettings::WithUseStageCache
DeploymentCanarySettings & WithUseStageCache(bool value)
Definition: DeploymentCanarySettings.h:190
Aws::APIGateway::Model::DeploymentCanarySettings::operator=
DeploymentCanarySettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::DeploymentCanarySettings::AddStageVariableOverrides
DeploymentCanarySettings & AddStageVariableOverrides(const Aws::String &key, const Aws::String &value)
Definition: DeploymentCanarySettings.h:117
Aws::APIGateway::Model::DeploymentCanarySettings::GetPercentTraffic
double GetPercentTraffic() const
Definition: DeploymentCanarySettings.h:45
Aws::APIGateway::Model::DeploymentCanarySettings::AddStageVariableOverrides
DeploymentCanarySettings & AddStageVariableOverrides(Aws::String &&key, const char *value)
Definition: DeploymentCanarySettings.h:157
Aws::APIGateway::Model::DeploymentCanarySettings::AddStageVariableOverrides
DeploymentCanarySettings & AddStageVariableOverrides(const char *key, Aws::String &&value)
Definition: DeploymentCanarySettings.h:149
Aws::APIGateway::Model::DeploymentCanarySettings::DeploymentCanarySettings
DeploymentCanarySettings(Aws::Utils::Json::JsonView jsonValue)
APIGateway_EXPORTS.h
Aws::APIGateway::Model::DeploymentCanarySettings::SetStageVariableOverrides
void SetStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DeploymentCanarySettings.h:85
Aws::APIGateway::Model::DeploymentCanarySettings::WithStageVariableOverrides
DeploymentCanarySettings & WithStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DeploymentCanarySettings.h:109
Aws::APIGateway::Model::DeploymentCanarySettings::AddStageVariableOverrides
DeploymentCanarySettings & AddStageVariableOverrides(const Aws::String &key, Aws::String &&value)
Definition: DeploymentCanarySettings.h:133
Aws::APIGateway::Model::DeploymentCanarySettings
Definition: DeploymentCanarySettings.h:34
Aws::APIGateway::Model::DeploymentCanarySettings::WithStageVariableOverrides
DeploymentCanarySettings & WithStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DeploymentCanarySettings.h:101
Aws::APIGateway::Model::DeploymentCanarySettings::GetUseStageCache
bool GetUseStageCache() const
Definition: DeploymentCanarySettings.h:172
Aws::APIGateway::Model::DeploymentCanarySettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::DeploymentCanarySettings::UseStageCacheHasBeenSet
bool UseStageCacheHasBeenSet() const
Definition: DeploymentCanarySettings.h:178
Aws::APIGateway::Model::DeploymentCanarySettings::AddStageVariableOverrides
DeploymentCanarySettings & AddStageVariableOverrides(Aws::String &&key, const Aws::String &value)
Definition: DeploymentCanarySettings.h:125
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::DeploymentCanarySettings::DeploymentCanarySettings
DeploymentCanarySettings()
Aws::APIGateway::Model::DeploymentCanarySettings::WithPercentTraffic
DeploymentCanarySettings & WithPercentTraffic(double value)
Definition: DeploymentCanarySettings.h:60
Aws::APIGateway::Model::DeploymentCanarySettings::StageVariableOverridesHasBeenSet
bool StageVariableOverridesHasBeenSet() const
Definition: DeploymentCanarySettings.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::DeploymentCanarySettings::SetPercentTraffic
void SetPercentTraffic(double value)
Definition: DeploymentCanarySettings.h:55
Aws::APIGateway::Model::DeploymentCanarySettings::SetUseStageCache
void SetUseStageCache(bool value)
Definition: DeploymentCanarySettings.h:184
Aws::APIGateway::Model::DeploymentCanarySettings::SetStageVariableOverrides
void SetStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DeploymentCanarySettings.h:93
Aws::APIGateway::Model::DeploymentCanarySettings::AddStageVariableOverrides
DeploymentCanarySettings & AddStageVariableOverrides(const char *key, const char *value)
Definition: DeploymentCanarySettings.h:165
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::DeploymentCanarySettings::PercentTrafficHasBeenSet
bool PercentTrafficHasBeenSet() const
Definition: DeploymentCanarySettings.h:50
AWSMap.h
Aws::APIGateway::Model::DeploymentCanarySettings::AddStageVariableOverrides
DeploymentCanarySettings & AddStageVariableOverrides(Aws::String &&key, Aws::String &&value)
Definition: DeploymentCanarySettings.h:141
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::DeploymentCanarySettings::GetStageVariableOverrides
const Aws::Map< Aws::String, Aws::String > & GetStageVariableOverrides() const
Definition: DeploymentCanarySettings.h:69