AWS SDK for C++  1.9.18
AWS SDK for C++
CanarySettings.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 
33  {
34  public:
39 
40 
44  inline double GetPercentTraffic() const{ return m_percentTraffic; }
45 
49  inline bool PercentTrafficHasBeenSet() const { return m_percentTrafficHasBeenSet; }
50 
54  inline void SetPercentTraffic(double value) { m_percentTrafficHasBeenSet = true; m_percentTraffic = value; }
55 
59  inline CanarySettings& WithPercentTraffic(double value) { SetPercentTraffic(value); return *this;}
60 
61 
65  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
66 
70  inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
71 
75  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
76 
80  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
81 
85  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
86 
90  inline CanarySettings& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
91 
95  inline CanarySettings& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
96 
100  inline CanarySettings& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
101 
102 
108  inline const Aws::Map<Aws::String, Aws::String>& GetStageVariableOverrides() const{ return m_stageVariableOverrides; }
109 
115  inline bool StageVariableOverridesHasBeenSet() const { return m_stageVariableOverridesHasBeenSet; }
116 
122  inline void SetStageVariableOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = value; }
123 
129  inline void SetStageVariableOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = std::move(value); }
130 
136  inline CanarySettings& WithStageVariableOverrides(const Aws::Map<Aws::String, Aws::String>& value) { SetStageVariableOverrides(value); return *this;}
137 
143  inline CanarySettings& WithStageVariableOverrides(Aws::Map<Aws::String, Aws::String>&& value) { SetStageVariableOverrides(std::move(value)); return *this;}
144 
150  inline CanarySettings& AddStageVariableOverrides(const Aws::String& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
151 
157  inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
158 
164  inline CanarySettings& AddStageVariableOverrides(const Aws::String& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
165 
171  inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), std::move(value)); return *this; }
172 
178  inline CanarySettings& AddStageVariableOverrides(const char* key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
179 
185  inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
186 
192  inline CanarySettings& AddStageVariableOverrides(const char* key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
193 
194 
199  inline bool GetUseStageCache() const{ return m_useStageCache; }
200 
205  inline bool UseStageCacheHasBeenSet() const { return m_useStageCacheHasBeenSet; }
206 
211  inline void SetUseStageCache(bool value) { m_useStageCacheHasBeenSet = true; m_useStageCache = value; }
212 
217  inline CanarySettings& WithUseStageCache(bool value) { SetUseStageCache(value); return *this;}
218 
219  private:
220 
221  double m_percentTraffic;
222  bool m_percentTrafficHasBeenSet;
223 
224  Aws::String m_deploymentId;
225  bool m_deploymentIdHasBeenSet;
226 
227  Aws::Map<Aws::String, Aws::String> m_stageVariableOverrides;
228  bool m_stageVariableOverridesHasBeenSet;
229 
230  bool m_useStageCache;
231  bool m_useStageCacheHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace APIGateway
236 } // namespace Aws
Aws::APIGateway::Model::CanarySettings::SetDeploymentId
void SetDeploymentId(const char *value)
Definition: CanarySettings.h:85
Aws::APIGateway::Model::CanarySettings::SetDeploymentId
void SetDeploymentId(const Aws::String &value)
Definition: CanarySettings.h:75
Aws::APIGateway::Model::CanarySettings::WithStageVariableOverrides
CanarySettings & WithStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CanarySettings.h:143
Aws::APIGateway::Model::CanarySettings::WithPercentTraffic
CanarySettings & WithPercentTraffic(double value)
Definition: CanarySettings.h:59
Aws::APIGateway::Model::CanarySettings::StageVariableOverridesHasBeenSet
bool StageVariableOverridesHasBeenSet() const
Definition: CanarySettings.h:115
Aws::APIGateway::Model::CanarySettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::CanarySettings::operator=
CanarySettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::CanarySettings::AddStageVariableOverrides
CanarySettings & AddStageVariableOverrides(Aws::String &&key, const Aws::String &value)
Definition: CanarySettings.h:157
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CanarySettings::SetDeploymentId
void SetDeploymentId(Aws::String &&value)
Definition: CanarySettings.h:80
Aws::APIGateway::Model::CanarySettings::CanarySettings
CanarySettings()
Aws::APIGateway::Model::CanarySettings::GetStageVariableOverrides
const Aws::Map< Aws::String, Aws::String > & GetStageVariableOverrides() const
Definition: CanarySettings.h:108
Aws::APIGateway::Model::CanarySettings::AddStageVariableOverrides
CanarySettings & AddStageVariableOverrides(Aws::String &&key, const char *value)
Definition: CanarySettings.h:185
Aws::APIGateway::Model::CanarySettings::DeploymentIdHasBeenSet
bool DeploymentIdHasBeenSet() const
Definition: CanarySettings.h:70
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CanarySettings::WithDeploymentId
CanarySettings & WithDeploymentId(const Aws::String &value)
Definition: CanarySettings.h:90
Aws::APIGateway::Model::CanarySettings::SetPercentTraffic
void SetPercentTraffic(double value)
Definition: CanarySettings.h:54
Aws::APIGateway::Model::CanarySettings::SetStageVariableOverrides
void SetStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CanarySettings.h:122
Aws::APIGateway::Model::CanarySettings::SetStageVariableOverrides
void SetStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CanarySettings.h:129
Aws::APIGateway::Model::CanarySettings::CanarySettings
CanarySettings(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::CanarySettings::WithStageVariableOverrides
CanarySettings & WithStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CanarySettings.h:136
Aws::APIGateway::Model::CanarySettings::GetPercentTraffic
double GetPercentTraffic() const
Definition: CanarySettings.h:44
Aws::APIGateway::Model::CanarySettings::AddStageVariableOverrides
CanarySettings & AddStageVariableOverrides(const Aws::String &key, Aws::String &&value)
Definition: CanarySettings.h:164
Aws::APIGateway::Model::CanarySettings::AddStageVariableOverrides
CanarySettings & AddStageVariableOverrides(const char *key, Aws::String &&value)
Definition: CanarySettings.h:178
Aws::APIGateway::Model::CanarySettings::PercentTrafficHasBeenSet
bool PercentTrafficHasBeenSet() const
Definition: CanarySettings.h:49
Aws::APIGateway::Model::CanarySettings::SetUseStageCache
void SetUseStageCache(bool value)
Definition: CanarySettings.h:211
Aws::APIGateway::Model::CanarySettings::WithDeploymentId
CanarySettings & WithDeploymentId(const char *value)
Definition: CanarySettings.h:100
Aws::APIGateway::Model::CanarySettings::WithDeploymentId
CanarySettings & WithDeploymentId(Aws::String &&value)
Definition: CanarySettings.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::CanarySettings
Definition: CanarySettings.h:33
Aws::APIGateway::Model::CanarySettings::AddStageVariableOverrides
CanarySettings & AddStageVariableOverrides(Aws::String &&key, Aws::String &&value)
Definition: CanarySettings.h:171
Aws::APIGateway::Model::CanarySettings::AddStageVariableOverrides
CanarySettings & AddStageVariableOverrides(const char *key, const char *value)
Definition: CanarySettings.h:192
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CanarySettings::UseStageCacheHasBeenSet
bool UseStageCacheHasBeenSet() const
Definition: CanarySettings.h:205
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CanarySettings::AddStageVariableOverrides
CanarySettings & AddStageVariableOverrides(const Aws::String &key, const Aws::String &value)
Definition: CanarySettings.h:150
Aws::APIGateway::Model::CanarySettings::GetUseStageCache
bool GetUseStageCache() const
Definition: CanarySettings.h:199
Aws::APIGateway::Model::CanarySettings::WithUseStageCache
CanarySettings & WithUseStageCache(bool value)
Definition: CanarySettings.h:217
AWSMap.h
Aws::APIGateway::Model::CanarySettings::GetDeploymentId
const Aws::String & GetDeploymentId() const
Definition: CanarySettings.h:65
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19