AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <aws/ssm-sap/model/ComponentInfo.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SsmSap
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SSMSAP_API RegisterApplicationRequest() = 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 "RegisterApplication"; }
36
37 AWS_SSMSAP_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
45 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
46 template<typename ApplicationIdT = Aws::String>
47 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
48 template<typename ApplicationIdT = Aws::String>
49 RegisterApplicationRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
51
53
56 inline ApplicationType GetApplicationType() const { return m_applicationType; }
57 inline bool ApplicationTypeHasBeenSet() const { return m_applicationTypeHasBeenSet; }
58 inline void SetApplicationType(ApplicationType value) { m_applicationTypeHasBeenSet = true; m_applicationType = value; }
61
63
66 inline const Aws::Vector<Aws::String>& GetInstances() const { return m_instances; }
67 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
68 template<typename InstancesT = Aws::Vector<Aws::String>>
69 void SetInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances = std::forward<InstancesT>(value); }
70 template<typename InstancesT = Aws::Vector<Aws::String>>
71 RegisterApplicationRequest& WithInstances(InstancesT&& value) { SetInstances(std::forward<InstancesT>(value)); return *this;}
72 template<typename InstancesT = Aws::String>
73 RegisterApplicationRequest& AddInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances.emplace_back(std::forward<InstancesT>(value)); return *this; }
75
77
80 inline const Aws::String& GetSapInstanceNumber() const { return m_sapInstanceNumber; }
81 inline bool SapInstanceNumberHasBeenSet() const { return m_sapInstanceNumberHasBeenSet; }
82 template<typename SapInstanceNumberT = Aws::String>
83 void SetSapInstanceNumber(SapInstanceNumberT&& value) { m_sapInstanceNumberHasBeenSet = true; m_sapInstanceNumber = std::forward<SapInstanceNumberT>(value); }
84 template<typename SapInstanceNumberT = Aws::String>
85 RegisterApplicationRequest& WithSapInstanceNumber(SapInstanceNumberT&& value) { SetSapInstanceNumber(std::forward<SapInstanceNumberT>(value)); return *this;}
87
89
92 inline const Aws::String& GetSid() const { return m_sid; }
93 inline bool SidHasBeenSet() const { return m_sidHasBeenSet; }
94 template<typename SidT = Aws::String>
95 void SetSid(SidT&& value) { m_sidHasBeenSet = true; m_sid = std::forward<SidT>(value); }
96 template<typename SidT = Aws::String>
97 RegisterApplicationRequest& WithSid(SidT&& value) { SetSid(std::forward<SidT>(value)); return *this;}
99
101
104 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 RegisterApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
110 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
111 RegisterApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
112 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
113 }
115
117
120 inline const Aws::Vector<ApplicationCredential>& GetCredentials() const { return m_credentials; }
121 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
122 template<typename CredentialsT = Aws::Vector<ApplicationCredential>>
123 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
124 template<typename CredentialsT = Aws::Vector<ApplicationCredential>>
125 RegisterApplicationRequest& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
126 template<typename CredentialsT = ApplicationCredential>
127 RegisterApplicationRequest& AddCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials.emplace_back(std::forward<CredentialsT>(value)); return *this; }
129
131
134 inline const Aws::String& GetDatabaseArn() const { return m_databaseArn; }
135 inline bool DatabaseArnHasBeenSet() const { return m_databaseArnHasBeenSet; }
136 template<typename DatabaseArnT = Aws::String>
137 void SetDatabaseArn(DatabaseArnT&& value) { m_databaseArnHasBeenSet = true; m_databaseArn = std::forward<DatabaseArnT>(value); }
138 template<typename DatabaseArnT = Aws::String>
139 RegisterApplicationRequest& WithDatabaseArn(DatabaseArnT&& value) { SetDatabaseArn(std::forward<DatabaseArnT>(value)); return *this;}
141
143
148 inline const Aws::Vector<ComponentInfo>& GetComponentsInfo() const { return m_componentsInfo; }
149 inline bool ComponentsInfoHasBeenSet() const { return m_componentsInfoHasBeenSet; }
150 template<typename ComponentsInfoT = Aws::Vector<ComponentInfo>>
151 void SetComponentsInfo(ComponentsInfoT&& value) { m_componentsInfoHasBeenSet = true; m_componentsInfo = std::forward<ComponentsInfoT>(value); }
152 template<typename ComponentsInfoT = Aws::Vector<ComponentInfo>>
153 RegisterApplicationRequest& WithComponentsInfo(ComponentsInfoT&& value) { SetComponentsInfo(std::forward<ComponentsInfoT>(value)); return *this;}
154 template<typename ComponentsInfoT = ComponentInfo>
155 RegisterApplicationRequest& AddComponentsInfo(ComponentsInfoT&& value) { m_componentsInfoHasBeenSet = true; m_componentsInfo.emplace_back(std::forward<ComponentsInfoT>(value)); return *this; }
157 private:
158
159 Aws::String m_applicationId;
160 bool m_applicationIdHasBeenSet = false;
161
162 ApplicationType m_applicationType{ApplicationType::NOT_SET};
163 bool m_applicationTypeHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_instances;
166 bool m_instancesHasBeenSet = false;
167
168 Aws::String m_sapInstanceNumber;
169 bool m_sapInstanceNumberHasBeenSet = false;
170
171 Aws::String m_sid;
172 bool m_sidHasBeenSet = false;
173
175 bool m_tagsHasBeenSet = false;
176
178 bool m_credentialsHasBeenSet = false;
179
180 Aws::String m_databaseArn;
181 bool m_databaseArnHasBeenSet = false;
182
183 Aws::Vector<ComponentInfo> m_componentsInfo;
184 bool m_componentsInfoHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace SsmSap
189} // 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