AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CanarySettings.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.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
33 {
34 public:
35 AWS_APIGATEWAY_API CanarySettings();
36 AWS_APIGATEWAY_API CanarySettings(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API CanarySettings& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline double GetPercentTraffic() const{ return m_percentTraffic; }
46 inline bool PercentTrafficHasBeenSet() const { return m_percentTrafficHasBeenSet; }
47 inline void SetPercentTraffic(double value) { m_percentTrafficHasBeenSet = true; m_percentTraffic = value; }
48 inline CanarySettings& WithPercentTraffic(double value) { SetPercentTraffic(value); return *this;}
50
52
55 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
56 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
57 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
58 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
59 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
60 inline CanarySettings& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
61 inline CanarySettings& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
62 inline CanarySettings& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
64
66
71 inline const Aws::Map<Aws::String, Aws::String>& GetStageVariableOverrides() const{ return m_stageVariableOverrides; }
72 inline bool StageVariableOverridesHasBeenSet() const { return m_stageVariableOverridesHasBeenSet; }
73 inline void SetStageVariableOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = value; }
74 inline void SetStageVariableOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = std::move(value); }
77 inline CanarySettings& AddStageVariableOverrides(const Aws::String& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
78 inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
79 inline CanarySettings& AddStageVariableOverrides(const Aws::String& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
80 inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), std::move(value)); return *this; }
81 inline CanarySettings& AddStageVariableOverrides(const char* key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
82 inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
83 inline CanarySettings& AddStageVariableOverrides(const char* key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
85
87
91 inline bool GetUseStageCache() const{ return m_useStageCache; }
92 inline bool UseStageCacheHasBeenSet() const { return m_useStageCacheHasBeenSet; }
93 inline void SetUseStageCache(bool value) { m_useStageCacheHasBeenSet = true; m_useStageCache = value; }
94 inline CanarySettings& WithUseStageCache(bool value) { SetUseStageCache(value); return *this;}
96 private:
97
98 double m_percentTraffic;
99 bool m_percentTrafficHasBeenSet = false;
100
101 Aws::String m_deploymentId;
102 bool m_deploymentIdHasBeenSet = false;
103
104 Aws::Map<Aws::String, Aws::String> m_stageVariableOverrides;
105 bool m_stageVariableOverridesHasBeenSet = false;
106
107 bool m_useStageCache;
108 bool m_useStageCacheHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace APIGateway
113} // namespace Aws
CanarySettings & WithDeploymentId(const char *value)
CanarySettings & AddStageVariableOverrides(const char *key, Aws::String &&value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
CanarySettings & WithStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
CanarySettings & WithDeploymentId(const Aws::String &value)
CanarySettings & WithUseStageCache(bool value)
AWS_APIGATEWAY_API CanarySettings & operator=(Aws::Utils::Json::JsonView jsonValue)
CanarySettings & AddStageVariableOverrides(Aws::String &&key, Aws::String &&value)
void SetDeploymentId(Aws::String &&value)
void SetStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
CanarySettings & AddStageVariableOverrides(const Aws::String &key, Aws::String &&value)
CanarySettings & AddStageVariableOverrides(Aws::String &&key, const char *value)
CanarySettings & WithStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
void SetStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariableOverrides() const
const Aws::String & GetDeploymentId() const
CanarySettings & AddStageVariableOverrides(const Aws::String &key, const Aws::String &value)
CanarySettings & AddStageVariableOverrides(const char *key, const char *value)
CanarySettings & WithDeploymentId(Aws::String &&value)
CanarySettings & WithPercentTraffic(double value)
void SetDeploymentId(const char *value)
AWS_APIGATEWAY_API CanarySettings(Aws::Utils::Json::JsonView jsonValue)
CanarySettings & AddStageVariableOverrides(Aws::String &&key, const Aws::String &value)
void SetDeploymentId(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