AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UploadServerCertificateRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iam/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IAM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IAM_API UploadServerCertificateRequest() = 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 "UploadServerCertificate"; }
33
34 AWS_IAM_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
58 inline const Aws::String& GetPath() const { return m_path; }
59 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
60 template<typename PathT = Aws::String>
61 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
62 template<typename PathT = Aws::String>
63 UploadServerCertificateRequest& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
65
67
75 inline const Aws::String& GetServerCertificateName() const { return m_serverCertificateName; }
76 inline bool ServerCertificateNameHasBeenSet() const { return m_serverCertificateNameHasBeenSet; }
77 template<typename ServerCertificateNameT = Aws::String>
78 void SetServerCertificateName(ServerCertificateNameT&& value) { m_serverCertificateNameHasBeenSet = true; m_serverCertificateName = std::forward<ServerCertificateNameT>(value); }
79 template<typename ServerCertificateNameT = Aws::String>
80 UploadServerCertificateRequest& WithServerCertificateName(ServerCertificateNameT&& value) { SetServerCertificateName(std::forward<ServerCertificateNameT>(value)); return *this;}
82
84
95 inline const Aws::String& GetCertificateBody() const { return m_certificateBody; }
96 inline bool CertificateBodyHasBeenSet() const { return m_certificateBodyHasBeenSet; }
97 template<typename CertificateBodyT = Aws::String>
98 void SetCertificateBody(CertificateBodyT&& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = std::forward<CertificateBodyT>(value); }
99 template<typename CertificateBodyT = Aws::String>
100 UploadServerCertificateRequest& WithCertificateBody(CertificateBodyT&& value) { SetCertificateBody(std::forward<CertificateBodyT>(value)); return *this;}
102
104
115 inline const Aws::String& GetPrivateKey() const { return m_privateKey; }
116 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
117 template<typename PrivateKeyT = Aws::String>
118 void SetPrivateKey(PrivateKeyT&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::forward<PrivateKeyT>(value); }
119 template<typename PrivateKeyT = Aws::String>
120 UploadServerCertificateRequest& WithPrivateKey(PrivateKeyT&& value) { SetPrivateKey(std::forward<PrivateKeyT>(value)); return *this;}
122
124
136 inline const Aws::String& GetCertificateChain() const { return m_certificateChain; }
137 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
138 template<typename CertificateChainT = Aws::String>
139 void SetCertificateChain(CertificateChainT&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::forward<CertificateChainT>(value); }
140 template<typename CertificateChainT = Aws::String>
141 UploadServerCertificateRequest& WithCertificateChain(CertificateChainT&& value) { SetCertificateChain(std::forward<CertificateChainT>(value)); return *this;}
143
145
154 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template<typename TagsT = Aws::Vector<Tag>>
157 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
158 template<typename TagsT = Aws::Vector<Tag>>
159 UploadServerCertificateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
160 template<typename TagsT = Tag>
161 UploadServerCertificateRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
163 private:
164
165 Aws::String m_path;
166 bool m_pathHasBeenSet = false;
167
168 Aws::String m_serverCertificateName;
169 bool m_serverCertificateNameHasBeenSet = false;
170
171 Aws::String m_certificateBody;
172 bool m_certificateBodyHasBeenSet = false;
173
174 Aws::String m_privateKey;
175 bool m_privateKeyHasBeenSet = false;
176
177 Aws::String m_certificateChain;
178 bool m_certificateChainHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace IAM
186} // 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