AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
RegisterApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm-sap/SsmSapRequest.h>
11#include <aws/ssm-sap/SsmSap_EXPORTS.h>
12#include <aws/ssm-sap/model/ApplicationCredential.h>
13#include <aws/ssm-sap/model/ApplicationType.h>
14#include <aws/ssm-sap/model/ComponentInfo.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SsmSap {
20namespace Model {
21
25 public:
26 AWS_SSMSAP_API RegisterApplicationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RegisterApplication"; }
33
34 AWS_SSMSAP_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
42 template <typename ApplicationIdT = Aws::String>
43 void SetApplicationId(ApplicationIdT&& value) {
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline ApplicationType GetApplicationType() const { return m_applicationType; }
59 inline bool ApplicationTypeHasBeenSet() const { return m_applicationTypeHasBeenSet; }
61 m_applicationTypeHasBeenSet = true;
62 m_applicationType = value;
63 }
65 SetApplicationType(value);
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetInstances() const { return m_instances; }
75 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
76 template <typename InstancesT = Aws::Vector<Aws::String>>
77 void SetInstances(InstancesT&& value) {
78 m_instancesHasBeenSet = true;
79 m_instances = std::forward<InstancesT>(value);
80 }
81 template <typename InstancesT = Aws::Vector<Aws::String>>
83 SetInstances(std::forward<InstancesT>(value));
84 return *this;
85 }
86 template <typename InstancesT = Aws::String>
88 m_instancesHasBeenSet = true;
89 m_instances.emplace_back(std::forward<InstancesT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetSapInstanceNumber() const { return m_sapInstanceNumber; }
99 inline bool SapInstanceNumberHasBeenSet() const { return m_sapInstanceNumberHasBeenSet; }
100 template <typename SapInstanceNumberT = Aws::String>
101 void SetSapInstanceNumber(SapInstanceNumberT&& value) {
102 m_sapInstanceNumberHasBeenSet = true;
103 m_sapInstanceNumber = std::forward<SapInstanceNumberT>(value);
104 }
105 template <typename SapInstanceNumberT = Aws::String>
107 SetSapInstanceNumber(std::forward<SapInstanceNumberT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetSid() const { return m_sid; }
117 inline bool SidHasBeenSet() const { return m_sidHasBeenSet; }
118 template <typename SidT = Aws::String>
119 void SetSid(SidT&& value) {
120 m_sidHasBeenSet = true;
121 m_sid = std::forward<SidT>(value);
122 }
123 template <typename SidT = Aws::String>
125 SetSid(std::forward<SidT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 RegisterApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<ApplicationCredential>& GetCredentials() const { return m_credentials; }
159 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
160 template <typename CredentialsT = Aws::Vector<ApplicationCredential>>
161 void SetCredentials(CredentialsT&& value) {
162 m_credentialsHasBeenSet = true;
163 m_credentials = std::forward<CredentialsT>(value);
164 }
165 template <typename CredentialsT = Aws::Vector<ApplicationCredential>>
167 SetCredentials(std::forward<CredentialsT>(value));
168 return *this;
169 }
170 template <typename CredentialsT = ApplicationCredential>
172 m_credentialsHasBeenSet = true;
173 m_credentials.emplace_back(std::forward<CredentialsT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetDatabaseArn() const { return m_databaseArn; }
183 inline bool DatabaseArnHasBeenSet() const { return m_databaseArnHasBeenSet; }
184 template <typename DatabaseArnT = Aws::String>
185 void SetDatabaseArn(DatabaseArnT&& value) {
186 m_databaseArnHasBeenSet = true;
187 m_databaseArn = std::forward<DatabaseArnT>(value);
188 }
189 template <typename DatabaseArnT = Aws::String>
191 SetDatabaseArn(std::forward<DatabaseArnT>(value));
192 return *this;
193 }
195
197
202 inline const Aws::Vector<ComponentInfo>& GetComponentsInfo() const { return m_componentsInfo; }
203 inline bool ComponentsInfoHasBeenSet() const { return m_componentsInfoHasBeenSet; }
204 template <typename ComponentsInfoT = Aws::Vector<ComponentInfo>>
205 void SetComponentsInfo(ComponentsInfoT&& value) {
206 m_componentsInfoHasBeenSet = true;
207 m_componentsInfo = std::forward<ComponentsInfoT>(value);
208 }
209 template <typename ComponentsInfoT = Aws::Vector<ComponentInfo>>
211 SetComponentsInfo(std::forward<ComponentsInfoT>(value));
212 return *this;
213 }
214 template <typename ComponentsInfoT = ComponentInfo>
216 m_componentsInfoHasBeenSet = true;
217 m_componentsInfo.emplace_back(std::forward<ComponentsInfoT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_applicationId;
223
224 ApplicationType m_applicationType{ApplicationType::NOT_SET};
225
226 Aws::Vector<Aws::String> m_instances;
227
228 Aws::String m_sapInstanceNumber;
229
230 Aws::String m_sid;
231
233
235
236 Aws::String m_databaseArn;
237
238 Aws::Vector<ComponentInfo> m_componentsInfo;
239 bool m_applicationIdHasBeenSet = false;
240 bool m_applicationTypeHasBeenSet = false;
241 bool m_instancesHasBeenSet = false;
242 bool m_sapInstanceNumberHasBeenSet = false;
243 bool m_sidHasBeenSet = false;
244 bool m_tagsHasBeenSet = false;
245 bool m_credentialsHasBeenSet = false;
246 bool m_databaseArnHasBeenSet = false;
247 bool m_componentsInfoHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace SsmSap
252} // namespace Aws
AWS_SSMSAP_API Aws::String SerializePayload() const override
RegisterApplicationRequest & WithSapInstanceNumber(SapInstanceNumberT &&value)
RegisterApplicationRequest & WithCredentials(CredentialsT &&value)
RegisterApplicationRequest & WithInstances(InstancesT &&value)
virtual const char * GetServiceRequestName() const override
RegisterApplicationRequest & AddCredentials(CredentialsT &&value)
RegisterApplicationRequest & WithApplicationType(ApplicationType value)
RegisterApplicationRequest & WithSid(SidT &&value)
RegisterApplicationRequest & WithApplicationId(ApplicationIdT &&value)
const Aws::Vector< ComponentInfo > & GetComponentsInfo() const
RegisterApplicationRequest & WithComponentsInfo(ComponentsInfoT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< ApplicationCredential > & GetCredentials() const
RegisterApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RegisterApplicationRequest & WithDatabaseArn(DatabaseArnT &&value)
AWS_SSMSAP_API RegisterApplicationRequest()=default
RegisterApplicationRequest & AddComponentsInfo(ComponentsInfoT &&value)
RegisterApplicationRequest & WithTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetInstances() const
RegisterApplicationRequest & AddInstances(InstancesT &&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
std::vector< T, Aws::Allocator< T > > Vector