AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsApiGatewayCanarySettings.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API AwsApiGatewayCanarySettings();
39 AWS_SECURITYHUB_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 AwsApiGatewayCanarySettings& WithPercentTraffic(double value) { SetPercentTraffic(value); return *this;}
51
53
56 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
57 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
58 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
59 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
60 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
61 inline AwsApiGatewayCanarySettings& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
62 inline AwsApiGatewayCanarySettings& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
63 inline AwsApiGatewayCanarySettings& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
65
67
73 inline const Aws::Map<Aws::String, Aws::String>& GetStageVariableOverrides() const{ return m_stageVariableOverrides; }
74 inline bool StageVariableOverridesHasBeenSet() const { return m_stageVariableOverridesHasBeenSet; }
75 inline void SetStageVariableOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = value; }
76 inline void SetStageVariableOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = std::move(value); }
79 inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(const Aws::String& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
80 inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(Aws::String&& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
81 inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(const Aws::String& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
82 inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(Aws::String&& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), std::move(value)); return *this; }
83 inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(const char* key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; }
84 inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(Aws::String&& key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; }
85 inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(const char* key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; }
87
89
92 inline bool GetUseStageCache() const{ return m_useStageCache; }
93 inline bool UseStageCacheHasBeenSet() const { return m_useStageCacheHasBeenSet; }
94 inline void SetUseStageCache(bool value) { m_useStageCacheHasBeenSet = true; m_useStageCache = value; }
95 inline AwsApiGatewayCanarySettings& WithUseStageCache(bool value) { SetUseStageCache(value); return *this;}
97 private:
98
99 double m_percentTraffic;
100 bool m_percentTrafficHasBeenSet = false;
101
102 Aws::String m_deploymentId;
103 bool m_deploymentIdHasBeenSet = false;
104
105 Aws::Map<Aws::String, Aws::String> m_stageVariableOverrides;
106 bool m_stageVariableOverridesHasBeenSet = false;
107
108 bool m_useStageCache;
109 bool m_useStageCacheHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SecurityHub
114} // namespace Aws
AwsApiGatewayCanarySettings & AddStageVariableOverrides(const Aws::String &key, const Aws::String &value)
AwsApiGatewayCanarySettings & WithStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
AwsApiGatewayCanarySettings & AddStageVariableOverrides(const Aws::String &key, Aws::String &&value)
AwsApiGatewayCanarySettings & WithDeploymentId(Aws::String &&value)
AwsApiGatewayCanarySettings & AddStageVariableOverrides(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariableOverrides() const
AwsApiGatewayCanarySettings & WithDeploymentId(const char *value)
AwsApiGatewayCanarySettings & AddStageVariableOverrides(Aws::String &&key, Aws::String &&value)
AwsApiGatewayCanarySettings & WithPercentTraffic(double value)
void SetStageVariableOverrides(const Aws::Map< Aws::String, Aws::String > &value)
AWS_SECURITYHUB_API AwsApiGatewayCanarySettings(Aws::Utils::Json::JsonView jsonValue)
AwsApiGatewayCanarySettings & AddStageVariableOverrides(const char *key, const char *value)
AwsApiGatewayCanarySettings & WithStageVariableOverrides(Aws::Map< Aws::String, Aws::String > &&value)
AwsApiGatewayCanarySettings & WithDeploymentId(const Aws::String &value)
AwsApiGatewayCanarySettings & WithUseStageCache(bool value)
AwsApiGatewayCanarySettings & AddStageVariableOverrides(Aws::String &&key, const char *value)
AwsApiGatewayCanarySettings & AddStageVariableOverrides(Aws::String &&key, const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsApiGatewayCanarySettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStageVariableOverrides(Aws::Map< Aws::String, 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