AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterApplicationRequest.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/ssm-sap/SsmSapRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm-sap/model/ApplicationType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/ssm-sap/model/ApplicationCredential.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SsmSap
19{
20namespace Model
21{
22
26 {
27 public:
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 "RegisterApplication"; }
35
36 AWS_SSMSAP_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
44 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
45 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
46 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
47 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
48 inline RegisterApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
49 inline RegisterApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
50 inline RegisterApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
52
54
57 inline const ApplicationType& GetApplicationType() const{ return m_applicationType; }
58 inline bool ApplicationTypeHasBeenSet() const { return m_applicationTypeHasBeenSet; }
59 inline void SetApplicationType(const ApplicationType& value) { m_applicationTypeHasBeenSet = true; m_applicationType = value; }
60 inline void SetApplicationType(ApplicationType&& value) { m_applicationTypeHasBeenSet = true; m_applicationType = std::move(value); }
62 inline RegisterApplicationRequest& WithApplicationType(ApplicationType&& value) { SetApplicationType(std::move(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetInstances() const{ return m_instances; }
70 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
71 inline void SetInstances(const Aws::Vector<Aws::String>& value) { m_instancesHasBeenSet = true; m_instances = value; }
72 inline void SetInstances(Aws::Vector<Aws::String>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
74 inline RegisterApplicationRequest& WithInstances(Aws::Vector<Aws::String>&& value) { SetInstances(std::move(value)); return *this;}
75 inline RegisterApplicationRequest& AddInstances(const Aws::String& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
76 inline RegisterApplicationRequest& AddInstances(Aws::String&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
77 inline RegisterApplicationRequest& AddInstances(const char* value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
79
81
84 inline const Aws::String& GetSapInstanceNumber() const{ return m_sapInstanceNumber; }
85 inline bool SapInstanceNumberHasBeenSet() const { return m_sapInstanceNumberHasBeenSet; }
86 inline void SetSapInstanceNumber(const Aws::String& value) { m_sapInstanceNumberHasBeenSet = true; m_sapInstanceNumber = value; }
87 inline void SetSapInstanceNumber(Aws::String&& value) { m_sapInstanceNumberHasBeenSet = true; m_sapInstanceNumber = std::move(value); }
88 inline void SetSapInstanceNumber(const char* value) { m_sapInstanceNumberHasBeenSet = true; m_sapInstanceNumber.assign(value); }
90 inline RegisterApplicationRequest& WithSapInstanceNumber(Aws::String&& value) { SetSapInstanceNumber(std::move(value)); return *this;}
91 inline RegisterApplicationRequest& WithSapInstanceNumber(const char* value) { SetSapInstanceNumber(value); return *this;}
93
95
98 inline const Aws::String& GetSid() const{ return m_sid; }
99 inline bool SidHasBeenSet() const { return m_sidHasBeenSet; }
100 inline void SetSid(const Aws::String& value) { m_sidHasBeenSet = true; m_sid = value; }
101 inline void SetSid(Aws::String&& value) { m_sidHasBeenSet = true; m_sid = std::move(value); }
102 inline void SetSid(const char* value) { m_sidHasBeenSet = true; m_sid.assign(value); }
103 inline RegisterApplicationRequest& WithSid(const Aws::String& value) { SetSid(value); return *this;}
104 inline RegisterApplicationRequest& WithSid(Aws::String&& value) { SetSid(std::move(value)); return *this;}
105 inline RegisterApplicationRequest& WithSid(const char* value) { SetSid(value); return *this;}
107
109
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
115 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline RegisterApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
118 inline RegisterApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
119 inline RegisterApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
120 inline RegisterApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
121 inline RegisterApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
122 inline RegisterApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
123 inline RegisterApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline RegisterApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
126
128
131 inline const Aws::Vector<ApplicationCredential>& GetCredentials() const{ return m_credentials; }
132 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
133 inline void SetCredentials(const Aws::Vector<ApplicationCredential>& value) { m_credentialsHasBeenSet = true; m_credentials = value; }
134 inline void SetCredentials(Aws::Vector<ApplicationCredential>&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); }
137 inline RegisterApplicationRequest& AddCredentials(const ApplicationCredential& value) { m_credentialsHasBeenSet = true; m_credentials.push_back(value); return *this; }
138 inline RegisterApplicationRequest& AddCredentials(ApplicationCredential&& value) { m_credentialsHasBeenSet = true; m_credentials.push_back(std::move(value)); return *this; }
140
142
145 inline const Aws::String& GetDatabaseArn() const{ return m_databaseArn; }
146 inline bool DatabaseArnHasBeenSet() const { return m_databaseArnHasBeenSet; }
147 inline void SetDatabaseArn(const Aws::String& value) { m_databaseArnHasBeenSet = true; m_databaseArn = value; }
148 inline void SetDatabaseArn(Aws::String&& value) { m_databaseArnHasBeenSet = true; m_databaseArn = std::move(value); }
149 inline void SetDatabaseArn(const char* value) { m_databaseArnHasBeenSet = true; m_databaseArn.assign(value); }
150 inline RegisterApplicationRequest& WithDatabaseArn(const Aws::String& value) { SetDatabaseArn(value); return *this;}
151 inline RegisterApplicationRequest& WithDatabaseArn(Aws::String&& value) { SetDatabaseArn(std::move(value)); return *this;}
152 inline RegisterApplicationRequest& WithDatabaseArn(const char* value) { SetDatabaseArn(value); return *this;}
154 private:
155
156 Aws::String m_applicationId;
157 bool m_applicationIdHasBeenSet = false;
158
159 ApplicationType m_applicationType;
160 bool m_applicationTypeHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_instances;
163 bool m_instancesHasBeenSet = false;
164
165 Aws::String m_sapInstanceNumber;
166 bool m_sapInstanceNumberHasBeenSet = false;
167
168 Aws::String m_sid;
169 bool m_sidHasBeenSet = false;
170
172 bool m_tagsHasBeenSet = false;
173
175 bool m_credentialsHasBeenSet = false;
176
177 Aws::String m_databaseArn;
178 bool m_databaseArnHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace SsmSap
183} // namespace Aws
RegisterApplicationRequest & WithApplicationId(const Aws::String &value)
RegisterApplicationRequest & WithDatabaseArn(Aws::String &&value)
AWS_SSMSAP_API Aws::String SerializePayload() const override
RegisterApplicationRequest & AddTags(Aws::String &&key, Aws::String &&value)
RegisterApplicationRequest & AddTags(const char *key, const char *value)
RegisterApplicationRequest & AddTags(Aws::String &&key, const Aws::String &value)
RegisterApplicationRequest & WithApplicationId(Aws::String &&value)
RegisterApplicationRequest & WithSapInstanceNumber(const Aws::String &value)
void SetInstances(const Aws::Vector< Aws::String > &value)
RegisterApplicationRequest & AddTags(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
RegisterApplicationRequest & AddInstances(Aws::String &&value)
RegisterApplicationRequest & AddInstances(const Aws::String &value)
RegisterApplicationRequest & WithDatabaseArn(const Aws::String &value)
RegisterApplicationRequest & WithSid(const char *value)
RegisterApplicationRequest & WithInstances(Aws::Vector< Aws::String > &&value)
RegisterApplicationRequest & WithDatabaseArn(const char *value)
RegisterApplicationRequest & WithSid(const Aws::String &value)
RegisterApplicationRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
RegisterApplicationRequest & WithSapInstanceNumber(const char *value)
RegisterApplicationRequest & AddCredentials(const ApplicationCredential &value)
RegisterApplicationRequest & WithCredentials(Aws::Vector< ApplicationCredential > &&value)
RegisterApplicationRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< ApplicationCredential > & GetCredentials() const
void SetCredentials(const Aws::Vector< ApplicationCredential > &value)
RegisterApplicationRequest & WithInstances(const Aws::Vector< Aws::String > &value)
RegisterApplicationRequest & WithApplicationType(ApplicationType &&value)
RegisterApplicationRequest & AddTags(const Aws::String &key, Aws::String &&value)
RegisterApplicationRequest & WithCredentials(const Aws::Vector< ApplicationCredential > &value)
RegisterApplicationRequest & AddCredentials(ApplicationCredential &&value)
RegisterApplicationRequest & AddInstances(const char *value)
RegisterApplicationRequest & WithApplicationType(const ApplicationType &value)
void SetInstances(Aws::Vector< Aws::String > &&value)
RegisterApplicationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
RegisterApplicationRequest & WithApplicationId(const char *value)
RegisterApplicationRequest & WithSid(Aws::String &&value)
RegisterApplicationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCredentials(Aws::Vector< ApplicationCredential > &&value)
const Aws::Vector< Aws::String > & GetInstances() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
RegisterApplicationRequest & WithSapInstanceNumber(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
std::vector< T, Aws::Allocator< T > > Vector