AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kinesisanalytics/KinesisAnalyticsRequest.h>
10#include <aws/kinesisanalytics/KinesisAnalytics_EXPORTS.h>
11#include <aws/kinesisanalytics/model/CloudWatchLoggingOption.h>
12#include <aws/kinesisanalytics/model/Input.h>
13#include <aws/kinesisanalytics/model/Output.h>
14#include <aws/kinesisanalytics/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace KinesisAnalytics {
20namespace Model {
21
28 public:
29 AWS_KINESISANALYTICS_API CreateApplicationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
36
37 AWS_KINESISANALYTICS_API Aws::String SerializePayload() const override;
38
39 AWS_KINESISANALYTICS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
46 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
47 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
48 template <typename ApplicationNameT = Aws::String>
49 void SetApplicationName(ApplicationNameT&& value) {
50 m_applicationNameHasBeenSet = true;
51 m_applicationName = std::forward<ApplicationNameT>(value);
52 }
53 template <typename ApplicationNameT = Aws::String>
54 CreateApplicationRequest& WithApplicationName(ApplicationNameT&& value) {
55 SetApplicationName(std::forward<ApplicationNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetApplicationDescription() const { return m_applicationDescription; }
65 inline bool ApplicationDescriptionHasBeenSet() const { return m_applicationDescriptionHasBeenSet; }
66 template <typename ApplicationDescriptionT = Aws::String>
67 void SetApplicationDescription(ApplicationDescriptionT&& value) {
68 m_applicationDescriptionHasBeenSet = true;
69 m_applicationDescription = std::forward<ApplicationDescriptionT>(value);
70 }
71 template <typename ApplicationDescriptionT = Aws::String>
72 CreateApplicationRequest& WithApplicationDescription(ApplicationDescriptionT&& value) {
73 SetApplicationDescription(std::forward<ApplicationDescriptionT>(value));
74 return *this;
75 }
77
79
93 inline const Aws::Vector<Input>& GetInputs() const { return m_inputs; }
94 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
95 template <typename InputsT = Aws::Vector<Input>>
96 void SetInputs(InputsT&& value) {
97 m_inputsHasBeenSet = true;
98 m_inputs = std::forward<InputsT>(value);
99 }
100 template <typename InputsT = Aws::Vector<Input>>
102 SetInputs(std::forward<InputsT>(value));
103 return *this;
104 }
105 template <typename InputsT = Input>
107 m_inputsHasBeenSet = true;
108 m_inputs.emplace_back(std::forward<InputsT>(value));
109 return *this;
110 }
112
114
129 inline const Aws::Vector<Output>& GetOutputs() const { return m_outputs; }
130 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
131 template <typename OutputsT = Aws::Vector<Output>>
132 void SetOutputs(OutputsT&& value) {
133 m_outputsHasBeenSet = true;
134 m_outputs = std::forward<OutputsT>(value);
135 }
136 template <typename OutputsT = Aws::Vector<Output>>
138 SetOutputs(std::forward<OutputsT>(value));
139 return *this;
140 }
141 template <typename OutputsT = Output>
143 m_outputsHasBeenSet = true;
144 m_outputs.emplace_back(std::forward<OutputsT>(value));
145 return *this;
146 }
148
150
156 inline const Aws::Vector<CloudWatchLoggingOption>& GetCloudWatchLoggingOptions() const { return m_cloudWatchLoggingOptions; }
157 inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; }
158 template <typename CloudWatchLoggingOptionsT = Aws::Vector<CloudWatchLoggingOption>>
159 void SetCloudWatchLoggingOptions(CloudWatchLoggingOptionsT&& value) {
160 m_cloudWatchLoggingOptionsHasBeenSet = true;
161 m_cloudWatchLoggingOptions = std::forward<CloudWatchLoggingOptionsT>(value);
162 }
163 template <typename CloudWatchLoggingOptionsT = Aws::Vector<CloudWatchLoggingOption>>
164 CreateApplicationRequest& WithCloudWatchLoggingOptions(CloudWatchLoggingOptionsT&& value) {
165 SetCloudWatchLoggingOptions(std::forward<CloudWatchLoggingOptionsT>(value));
166 return *this;
167 }
168 template <typename CloudWatchLoggingOptionsT = CloudWatchLoggingOption>
169 CreateApplicationRequest& AddCloudWatchLoggingOptions(CloudWatchLoggingOptionsT&& value) {
170 m_cloudWatchLoggingOptionsHasBeenSet = true;
171 m_cloudWatchLoggingOptions.emplace_back(std::forward<CloudWatchLoggingOptionsT>(value));
172 return *this;
173 }
175
177
194 inline const Aws::String& GetApplicationCode() const { return m_applicationCode; }
195 inline bool ApplicationCodeHasBeenSet() const { return m_applicationCodeHasBeenSet; }
196 template <typename ApplicationCodeT = Aws::String>
197 void SetApplicationCode(ApplicationCodeT&& value) {
198 m_applicationCodeHasBeenSet = true;
199 m_applicationCode = std::forward<ApplicationCodeT>(value);
200 }
201 template <typename ApplicationCodeT = Aws::String>
203 SetApplicationCode(std::forward<ApplicationCodeT>(value));
204 return *this;
205 }
207
209
217 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 template <typename TagsT = Aws::Vector<Tag>>
220 void SetTags(TagsT&& value) {
221 m_tagsHasBeenSet = true;
222 m_tags = std::forward<TagsT>(value);
223 }
224 template <typename TagsT = Aws::Vector<Tag>>
226 SetTags(std::forward<TagsT>(value));
227 return *this;
228 }
229 template <typename TagsT = Tag>
231 m_tagsHasBeenSet = true;
232 m_tags.emplace_back(std::forward<TagsT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_applicationName;
238
239 Aws::String m_applicationDescription;
240
241 Aws::Vector<Input> m_inputs;
242
243 Aws::Vector<Output> m_outputs;
244
245 Aws::Vector<CloudWatchLoggingOption> m_cloudWatchLoggingOptions;
246
247 Aws::String m_applicationCode;
248
249 Aws::Vector<Tag> m_tags;
250 bool m_applicationNameHasBeenSet = false;
251 bool m_applicationDescriptionHasBeenSet = false;
252 bool m_inputsHasBeenSet = false;
253 bool m_outputsHasBeenSet = false;
254 bool m_cloudWatchLoggingOptionsHasBeenSet = false;
255 bool m_applicationCodeHasBeenSet = false;
256 bool m_tagsHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace KinesisAnalytics
261} // namespace Aws
AWS_KINESISANALYTICS_API CreateApplicationRequest()=default
CreateApplicationRequest & AddInputs(InputsT &&value)
CreateApplicationRequest & WithApplicationCode(ApplicationCodeT &&value)
CreateApplicationRequest & WithCloudWatchLoggingOptions(CloudWatchLoggingOptionsT &&value)
CreateApplicationRequest & AddCloudWatchLoggingOptions(CloudWatchLoggingOptionsT &&value)
CreateApplicationRequest & WithInputs(InputsT &&value)
CreateApplicationRequest & WithApplicationDescription(ApplicationDescriptionT &&value)
AWS_KINESISANALYTICS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & AddOutputs(OutputsT &&value)
AWS_KINESISANALYTICS_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithApplicationName(ApplicationNameT &&value)
void SetApplicationDescription(ApplicationDescriptionT &&value)
void SetCloudWatchLoggingOptions(CloudWatchLoggingOptionsT &&value)
CreateApplicationRequest & WithOutputs(OutputsT &&value)
const Aws::Vector< CloudWatchLoggingOption > & GetCloudWatchLoggingOptions() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector