AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
UpdateAliasRoutingRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/GradualRolloutConfig.h>
10#include <aws/amplifygen3/model/RoutingConfigEntry.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AmplifyGen3 {
18namespace Model {
19
23 public:
24 AWS_AMPLIFYGEN3_API UpdateAliasRoutingRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateAliasRouting"; }
31
32 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetAppName() const { return m_appName; }
39 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
40 template <typename AppNameT = Aws::String>
41 void SetAppName(AppNameT&& value) {
42 m_appNameHasBeenSet = true;
43 m_appName = std::forward<AppNameT>(value);
44 }
45 template <typename AppNameT = Aws::String>
47 SetAppName(std::forward<AppNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
57 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
58 template <typename EnvironmentNameT = Aws::String>
59 void SetEnvironmentName(EnvironmentNameT&& value) {
60 m_environmentNameHasBeenSet = true;
61 m_environmentName = std::forward<EnvironmentNameT>(value);
62 }
63 template <typename EnvironmentNameT = Aws::String>
65 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAliasName() const { return m_aliasName; }
75 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
76 template <typename AliasNameT = Aws::String>
77 void SetAliasName(AliasNameT&& value) {
78 m_aliasNameHasBeenSet = true;
79 m_aliasName = std::forward<AliasNameT>(value);
80 }
81 template <typename AliasNameT = Aws::String>
83 SetAliasName(std::forward<AliasNameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<RoutingConfigEntry>& GetRoutingConfig() const { return m_routingConfig; }
93 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
94 template <typename RoutingConfigT = Aws::Vector<RoutingConfigEntry>>
95 void SetRoutingConfig(RoutingConfigT&& value) {
96 m_routingConfigHasBeenSet = true;
97 m_routingConfig = std::forward<RoutingConfigT>(value);
98 }
99 template <typename RoutingConfigT = Aws::Vector<RoutingConfigEntry>>
101 SetRoutingConfig(std::forward<RoutingConfigT>(value));
102 return *this;
103 }
104 template <typename RoutingConfigT = RoutingConfigEntry>
106 m_routingConfigHasBeenSet = true;
107 m_routingConfig.emplace_back(std::forward<RoutingConfigT>(value));
108 return *this;
109 }
111
113
116 inline const GradualRolloutConfig& GetGradualRolloutConfig() const { return m_gradualRolloutConfig; }
117 inline bool GradualRolloutConfigHasBeenSet() const { return m_gradualRolloutConfigHasBeenSet; }
118 template <typename GradualRolloutConfigT = GradualRolloutConfig>
119 void SetGradualRolloutConfig(GradualRolloutConfigT&& value) {
120 m_gradualRolloutConfigHasBeenSet = true;
121 m_gradualRolloutConfig = std::forward<GradualRolloutConfigT>(value);
122 }
123 template <typename GradualRolloutConfigT = GradualRolloutConfig>
124 UpdateAliasRoutingRequest& WithGradualRolloutConfig(GradualRolloutConfigT&& value) {
125 SetGradualRolloutConfig(std::forward<GradualRolloutConfigT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_appName;
131
132 Aws::String m_environmentName;
133
134 Aws::String m_aliasName;
135
136 Aws::Vector<RoutingConfigEntry> m_routingConfig;
137
138 GradualRolloutConfig m_gradualRolloutConfig;
139 bool m_appNameHasBeenSet = false;
140 bool m_environmentNameHasBeenSet = false;
141 bool m_aliasNameHasBeenSet = false;
142 bool m_routingConfigHasBeenSet = false;
143 bool m_gradualRolloutConfigHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace AmplifyGen3
148} // namespace Aws
AWS_AMPLIFYGEN3_API UpdateAliasRoutingRequest()=default
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateAliasRoutingRequest & WithRoutingConfig(RoutingConfigT &&value)
UpdateAliasRoutingRequest & WithGradualRolloutConfig(GradualRolloutConfigT &&value)
UpdateAliasRoutingRequest & WithAliasName(AliasNameT &&value)
UpdateAliasRoutingRequest & WithEnvironmentName(EnvironmentNameT &&value)
UpdateAliasRoutingRequest & AddRoutingConfig(RoutingConfigT &&value)
const Aws::Vector< RoutingConfigEntry > & GetRoutingConfig() const
UpdateAliasRoutingRequest & WithAppName(AppNameT &&value)
const GradualRolloutConfig & GetGradualRolloutConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector