AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetFlagRequest.h
1
6#pragma once
7#include <aws/appconfigcloudextension/AppConfigCloudExtensionRequest.h>
8#include <aws/appconfigcloudextension/AppConfigCloudExtension_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppConfigCloudExtension {
16namespace Model {
17
24 public:
25 AWS_APPCONFIGCLOUDEXTENSION_API GetFlagRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetFlag"; }
32
33 AWS_APPCONFIGCLOUDEXTENSION_API Aws::String SerializePayload() const override;
34
35 AWS_APPCONFIGCLOUDEXTENSION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetApplication() const { return m_application; }
42 inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
43 template <typename ApplicationT = Aws::String>
44 void SetApplication(ApplicationT&& value) {
45 m_applicationHasBeenSet = true;
46 m_application = std::forward<ApplicationT>(value);
47 }
48 template <typename ApplicationT = Aws::String>
49 GetFlagRequest& WithApplication(ApplicationT&& value) {
50 SetApplication(std::forward<ApplicationT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetEnvironment() const { return m_environment; }
61 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
62 template <typename EnvironmentT = Aws::String>
63 void SetEnvironment(EnvironmentT&& value) {
64 m_environmentHasBeenSet = true;
65 m_environment = std::forward<EnvironmentT>(value);
66 }
67 template <typename EnvironmentT = Aws::String>
68 GetFlagRequest& WithEnvironment(EnvironmentT&& value) {
69 SetEnvironment(std::forward<EnvironmentT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetConfiguration() const { return m_configuration; }
79 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
80 template <typename ConfigurationT = Aws::String>
81 void SetConfiguration(ConfigurationT&& value) {
82 m_configurationHasBeenSet = true;
83 m_configuration = std::forward<ConfigurationT>(value);
84 }
85 template <typename ConfigurationT = Aws::String>
86 GetFlagRequest& WithConfiguration(ConfigurationT&& value) {
87 SetConfiguration(std::forward<ConfigurationT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetFlag() const { return m_flag; }
97 inline bool FlagHasBeenSet() const { return m_flagHasBeenSet; }
98 template <typename FlagT = Aws::String>
99 void SetFlag(FlagT&& value) {
100 m_flagHasBeenSet = true;
101 m_flag = std::forward<FlagT>(value);
102 }
103 template <typename FlagT = Aws::String>
104 GetFlagRequest& WithFlag(FlagT&& value) {
105 SetFlag(std::forward<FlagT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
115 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
116 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
117 void SetContext(ContextT&& value) {
118 m_contextHasBeenSet = true;
119 m_context = std::forward<ContextT>(value);
120 }
121 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
122 GetFlagRequest& WithContext(ContextT&& value) {
123 SetContext(std::forward<ContextT>(value));
124 return *this;
125 }
126 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
127 GetFlagRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
128 m_contextHasBeenSet = true;
129 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_application;
135
136 Aws::String m_environment;
137
138 Aws::String m_configuration;
139
140 Aws::String m_flag;
141
143 bool m_applicationHasBeenSet = false;
144 bool m_environmentHasBeenSet = false;
145 bool m_configurationHasBeenSet = false;
146 bool m_flagHasBeenSet = false;
147 bool m_contextHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace AppConfigCloudExtension
152} // namespace Aws
AWS_APPCONFIGCLOUDEXTENSION_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetFlagRequest & AddContext(ContextKeyT &&key, ContextValueT &&value)
GetFlagRequest & WithContext(ContextT &&value)
AWS_APPCONFIGCLOUDEXTENSION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetFlagRequest & WithApplication(ApplicationT &&value)
GetFlagRequest & WithEnvironment(EnvironmentT &&value)
AWS_APPCONFIGCLOUDEXTENSION_API GetFlagRequest()=default
GetFlagRequest & WithConfiguration(ConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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