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/m2/MainframeModernization_EXPORTS.h>
8#include <aws/m2/MainframeModernizationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/m2/model/Definition.h>
11#include <aws/m2/model/EngineType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace MainframeModernization
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MAINFRAMEMODERNIZATION_API CreateApplicationRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
35
36 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
37
38
40
46 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline CreateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
61 inline const Definition& GetDefinition() const{ return m_definition; }
62 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
63 inline void SetDefinition(const Definition& value) { m_definitionHasBeenSet = true; m_definition = value; }
64 inline void SetDefinition(Definition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
65 inline CreateApplicationRequest& WithDefinition(const Definition& value) { SetDefinition(value); return *this;}
66 inline CreateApplicationRequest& WithDefinition(Definition&& value) { SetDefinition(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
87 inline const EngineType& GetEngineType() const{ return m_engineType; }
88 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
89 inline void SetEngineType(const EngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
90 inline void SetEngineType(EngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); }
91 inline CreateApplicationRequest& WithEngineType(const EngineType& value) { SetEngineType(value); return *this;}
92 inline CreateApplicationRequest& WithEngineType(EngineType&& value) { SetEngineType(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
100 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
101 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
102 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
103 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
104 inline CreateApplicationRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
105 inline CreateApplicationRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
106 inline CreateApplicationRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
108
110
113 inline const Aws::String& GetName() const{ return m_name; }
114 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
115 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
116 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
117 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
118 inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
119 inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
120 inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
122
124
129 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
130 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
131 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
132 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
133 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
134 inline CreateApplicationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
135 inline CreateApplicationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
136 inline CreateApplicationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
138
140
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 inline CreateApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
149 inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
150 inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
151 inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
152 inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
153 inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
154 inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
155 inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
157 private:
158
159 Aws::String m_clientToken;
160 bool m_clientTokenHasBeenSet = false;
161
162 Definition m_definition;
163 bool m_definitionHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
168 EngineType m_engineType;
169 bool m_engineTypeHasBeenSet = false;
170
171 Aws::String m_kmsKeyId;
172 bool m_kmsKeyIdHasBeenSet = false;
173
174 Aws::String m_name;
175 bool m_nameHasBeenSet = false;
176
177 Aws::String m_roleArn;
178 bool m_roleArnHasBeenSet = false;
179
181 bool m_tagsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace MainframeModernization
186} // namespace Aws
CreateApplicationRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateApplicationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateApplicationRequest & AddTags(const char *key, Aws::String &&value)
CreateApplicationRequest & WithDefinition(const Definition &value)
CreateApplicationRequest & WithKmsKeyId(Aws::String &&value)
CreateApplicationRequest & WithClientToken(Aws::String &&value)
CreateApplicationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateApplicationRequest & AddTags(const char *key, const char *value)
CreateApplicationRequest & WithDescription(const Aws::String &value)
CreateApplicationRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateApplicationRequest & WithName(const Aws::String &value)
CreateApplicationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationRequest & WithRoleArn(Aws::String &&value)
CreateApplicationRequest & WithRoleArn(const Aws::String &value)
CreateApplicationRequest & WithName(Aws::String &&value)
CreateApplicationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateApplicationRequest & WithClientToken(const char *value)
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithClientToken(const Aws::String &value)
CreateApplicationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateApplicationRequest & WithDefinition(Definition &&value)
CreateApplicationRequest & WithEngineType(EngineType &&value)
CreateApplicationRequest & WithDescription(Aws::String &&value)
CreateApplicationRequest & WithDescription(const char *value)
CreateApplicationRequest & WithEngineType(const EngineType &value)
CreateApplicationRequest & WithKmsKeyId(const Aws::String &value)
void SetTags(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