AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UploadServerCertificateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iam/IAMRequest.h>
10#include <aws/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IAM {
17namespace Model {
18
22 public:
23 AWS_IAM_API UploadServerCertificateRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UploadServerCertificate"; }
30
31 AWS_IAM_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
54 inline const Aws::String& GetPath() const { return m_path; }
55 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
56 template <typename PathT = Aws::String>
57 void SetPath(PathT&& value) {
58 m_pathHasBeenSet = true;
59 m_path = std::forward<PathT>(value);
60 }
61 template <typename PathT = Aws::String>
63 SetPath(std::forward<PathT>(value));
64 return *this;
65 }
67
69
77 inline const Aws::String& GetServerCertificateName() const { return m_serverCertificateName; }
78 inline bool ServerCertificateNameHasBeenSet() const { return m_serverCertificateNameHasBeenSet; }
79 template <typename ServerCertificateNameT = Aws::String>
80 void SetServerCertificateName(ServerCertificateNameT&& value) {
81 m_serverCertificateNameHasBeenSet = true;
82 m_serverCertificateName = std::forward<ServerCertificateNameT>(value);
83 }
84 template <typename ServerCertificateNameT = Aws::String>
86 SetServerCertificateName(std::forward<ServerCertificateNameT>(value));
87 return *this;
88 }
90
92
103 inline const Aws::String& GetCertificateBody() const { return m_certificateBody; }
104 inline bool CertificateBodyHasBeenSet() const { return m_certificateBodyHasBeenSet; }
105 template <typename CertificateBodyT = Aws::String>
106 void SetCertificateBody(CertificateBodyT&& value) {
107 m_certificateBodyHasBeenSet = true;
108 m_certificateBody = std::forward<CertificateBodyT>(value);
109 }
110 template <typename CertificateBodyT = Aws::String>
112 SetCertificateBody(std::forward<CertificateBodyT>(value));
113 return *this;
114 }
116
118
129 inline const Aws::String& GetPrivateKey() const { return m_privateKey; }
130 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
131 template <typename PrivateKeyT = Aws::String>
132 void SetPrivateKey(PrivateKeyT&& value) {
133 m_privateKeyHasBeenSet = true;
134 m_privateKey = std::forward<PrivateKeyT>(value);
135 }
136 template <typename PrivateKeyT = Aws::String>
138 SetPrivateKey(std::forward<PrivateKeyT>(value));
139 return *this;
140 }
142
144
156 inline const Aws::String& GetCertificateChain() const { return m_certificateChain; }
157 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
158 template <typename CertificateChainT = Aws::String>
159 void SetCertificateChain(CertificateChainT&& value) {
160 m_certificateChainHasBeenSet = true;
161 m_certificateChain = std::forward<CertificateChainT>(value);
162 }
163 template <typename CertificateChainT = Aws::String>
165 SetCertificateChain(std::forward<CertificateChainT>(value));
166 return *this;
167 }
169
171
180 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
181 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
182 template <typename TagsT = Aws::Vector<Tag>>
183 void SetTags(TagsT&& value) {
184 m_tagsHasBeenSet = true;
185 m_tags = std::forward<TagsT>(value);
186 }
187 template <typename TagsT = Aws::Vector<Tag>>
189 SetTags(std::forward<TagsT>(value));
190 return *this;
191 }
192 template <typename TagsT = Tag>
194 m_tagsHasBeenSet = true;
195 m_tags.emplace_back(std::forward<TagsT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_path;
201
202 Aws::String m_serverCertificateName;
203
204 Aws::String m_certificateBody;
205
206 Aws::String m_privateKey;
207
208 Aws::String m_certificateChain;
209
210 Aws::Vector<Tag> m_tags;
211 bool m_pathHasBeenSet = false;
212 bool m_serverCertificateNameHasBeenSet = false;
213 bool m_certificateBodyHasBeenSet = false;
214 bool m_privateKeyHasBeenSet = false;
215 bool m_certificateChainHasBeenSet = false;
216 bool m_tagsHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace IAM
221} // namespace Aws
UploadServerCertificateRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
UploadServerCertificateRequest & WithCertificateChain(CertificateChainT &&value)
UploadServerCertificateRequest & WithPrivateKey(PrivateKeyT &&value)
UploadServerCertificateRequest & WithPath(PathT &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UploadServerCertificateRequest & WithCertificateBody(CertificateBodyT &&value)
void SetServerCertificateName(ServerCertificateNameT &&value)
UploadServerCertificateRequest & WithTags(TagsT &&value)
UploadServerCertificateRequest & WithServerCertificateName(ServerCertificateNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector