AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/kinesisanalyticsv2/KinesisAnalyticsV2_EXPORTS.h>
8#include <aws/kinesisanalyticsv2/KinesisAnalyticsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kinesisanalyticsv2/model/RuntimeEnvironment.h>
11#include <aws/kinesisanalyticsv2/model/ApplicationConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/kinesisanalyticsv2/model/ApplicationMode.h>
14#include <aws/kinesisanalyticsv2/model/CloudWatchLoggingOption.h>
15#include <aws/kinesisanalyticsv2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace KinesisAnalyticsV2
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_KINESISANALYTICSV2_API CreateApplicationRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
37
38 AWS_KINESISANALYTICSV2_API Aws::String SerializePayload() const override;
39
40 AWS_KINESISANALYTICSV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
48 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
49 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
50 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
51 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
52 inline CreateApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
53 inline CreateApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
54 inline CreateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
56
58
61 inline const Aws::String& GetApplicationDescription() const{ return m_applicationDescription; }
62 inline bool ApplicationDescriptionHasBeenSet() const { return m_applicationDescriptionHasBeenSet; }
63 inline void SetApplicationDescription(const Aws::String& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = value; }
64 inline void SetApplicationDescription(Aws::String&& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = std::move(value); }
65 inline void SetApplicationDescription(const char* value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription.assign(value); }
68 inline CreateApplicationRequest& WithApplicationDescription(const char* value) { SetApplicationDescription(value); return *this;}
70
72
75 inline const RuntimeEnvironment& GetRuntimeEnvironment() const{ return m_runtimeEnvironment; }
76 inline bool RuntimeEnvironmentHasBeenSet() const { return m_runtimeEnvironmentHasBeenSet; }
77 inline void SetRuntimeEnvironment(const RuntimeEnvironment& value) { m_runtimeEnvironmentHasBeenSet = true; m_runtimeEnvironment = value; }
78 inline void SetRuntimeEnvironment(RuntimeEnvironment&& value) { m_runtimeEnvironmentHasBeenSet = true; m_runtimeEnvironment = std::move(value); }
82
84
89 inline const Aws::String& GetServiceExecutionRole() const{ return m_serviceExecutionRole; }
90 inline bool ServiceExecutionRoleHasBeenSet() const { return m_serviceExecutionRoleHasBeenSet; }
91 inline void SetServiceExecutionRole(const Aws::String& value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole = value; }
92 inline void SetServiceExecutionRole(Aws::String&& value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole = std::move(value); }
93 inline void SetServiceExecutionRole(const char* value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole.assign(value); }
95 inline CreateApplicationRequest& WithServiceExecutionRole(Aws::String&& value) { SetServiceExecutionRole(std::move(value)); return *this;}
96 inline CreateApplicationRequest& WithServiceExecutionRole(const char* value) { SetServiceExecutionRole(value); return *this;}
98
100
103 inline const ApplicationConfiguration& GetApplicationConfiguration() const{ return m_applicationConfiguration; }
104 inline bool ApplicationConfigurationHasBeenSet() const { return m_applicationConfigurationHasBeenSet; }
105 inline void SetApplicationConfiguration(const ApplicationConfiguration& value) { m_applicationConfigurationHasBeenSet = true; m_applicationConfiguration = value; }
106 inline void SetApplicationConfiguration(ApplicationConfiguration&& value) { m_applicationConfigurationHasBeenSet = true; m_applicationConfiguration = std::move(value); }
110
112
116 inline const Aws::Vector<CloudWatchLoggingOption>& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; }
117 inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; }
118 inline void SetCloudWatchLoggingOptions(const Aws::Vector<CloudWatchLoggingOption>& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
119 inline void SetCloudWatchLoggingOptions(Aws::Vector<CloudWatchLoggingOption>&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = std::move(value); }
122 inline CreateApplicationRequest& AddCloudWatchLoggingOptions(const CloudWatchLoggingOption& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions.push_back(value); return *this; }
123 inline CreateApplicationRequest& AddCloudWatchLoggingOptions(CloudWatchLoggingOption&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions.push_back(std::move(value)); return *this; }
125
127
135 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
138 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 inline CreateApplicationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
140 inline CreateApplicationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
141 inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
142 inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
144
146
151 inline const ApplicationMode& GetApplicationMode() const{ return m_applicationMode; }
152 inline bool ApplicationModeHasBeenSet() const { return m_applicationModeHasBeenSet; }
153 inline void SetApplicationMode(const ApplicationMode& value) { m_applicationModeHasBeenSet = true; m_applicationMode = value; }
154 inline void SetApplicationMode(ApplicationMode&& value) { m_applicationModeHasBeenSet = true; m_applicationMode = std::move(value); }
156 inline CreateApplicationRequest& WithApplicationMode(ApplicationMode&& value) { SetApplicationMode(std::move(value)); return *this;}
158 private:
159
160 Aws::String m_applicationName;
161 bool m_applicationNameHasBeenSet = false;
162
163 Aws::String m_applicationDescription;
164 bool m_applicationDescriptionHasBeenSet = false;
165
166 RuntimeEnvironment m_runtimeEnvironment;
167 bool m_runtimeEnvironmentHasBeenSet = false;
168
169 Aws::String m_serviceExecutionRole;
170 bool m_serviceExecutionRoleHasBeenSet = false;
171
172 ApplicationConfiguration m_applicationConfiguration;
173 bool m_applicationConfigurationHasBeenSet = false;
174
175 Aws::Vector<CloudWatchLoggingOption> m_cloudWatchLoggingOptions;
176 bool m_cloudWatchLoggingOptionsHasBeenSet = false;
177
178 Aws::Vector<Tag> m_tags;
179 bool m_tagsHasBeenSet = false;
180
181 ApplicationMode m_applicationMode;
182 bool m_applicationModeHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace KinesisAnalyticsV2
187} // namespace Aws
void SetCloudWatchLoggingOptions(const Aws::Vector< CloudWatchLoggingOption > &value)
const Aws::Vector< CloudWatchLoggingOption > & GetCloudWatchLoggingOptions() const
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateApplicationRequest & WithApplicationConfiguration(const ApplicationConfiguration &value)
CreateApplicationRequest & WithServiceExecutionRole(const Aws::String &value)
void SetCloudWatchLoggingOptions(Aws::Vector< CloudWatchLoggingOption > &&value)
CreateApplicationRequest & WithApplicationName(const Aws::String &value)
void SetApplicationConfiguration(const ApplicationConfiguration &value)
void SetApplicationConfiguration(ApplicationConfiguration &&value)
CreateApplicationRequest & AddCloudWatchLoggingOptions(const CloudWatchLoggingOption &value)
CreateApplicationRequest & WithApplicationMode(ApplicationMode &&value)
CreateApplicationRequest & WithRuntimeEnvironment(RuntimeEnvironment &&value)
AWS_KINESISANALYTICSV2_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithCloudWatchLoggingOptions(Aws::Vector< CloudWatchLoggingOption > &&value)
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateApplicationRequest & WithApplicationMode(const ApplicationMode &value)
CreateApplicationRequest & WithServiceExecutionRole(const char *value)
CreateApplicationRequest & AddCloudWatchLoggingOptions(CloudWatchLoggingOption &&value)
AWS_KINESISANALYTICSV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & WithRuntimeEnvironment(const RuntimeEnvironment &value)
CreateApplicationRequest & WithApplicationDescription(Aws::String &&value)
CreateApplicationRequest & WithApplicationDescription(const char *value)
CreateApplicationRequest & WithApplicationName(Aws::String &&value)
CreateApplicationRequest & WithApplicationDescription(const Aws::String &value)
CreateApplicationRequest & WithApplicationName(const char *value)
CreateApplicationRequest & WithCloudWatchLoggingOptions(const Aws::Vector< CloudWatchLoggingOption > &value)
CreateApplicationRequest & WithApplicationConfiguration(ApplicationConfiguration &&value)
const ApplicationConfiguration & GetApplicationConfiguration() const
CreateApplicationRequest & WithServiceExecutionRole(Aws::String &&value)
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