AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
61 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
62 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
63 inline UploadServerCertificateRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
64 inline UploadServerCertificateRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
65 inline UploadServerCertificateRequest& WithPath(const char* value) { SetPath(value); return *this;}
67
69
77 inline const Aws::String& GetServerCertificateName() const{ return m_serverCertificateName; }
78 inline bool ServerCertificateNameHasBeenSet() const { return m_serverCertificateNameHasBeenSet; }
79 inline void SetServerCertificateName(const Aws::String& value) { m_serverCertificateNameHasBeenSet = true; m_serverCertificateName = value; }
80 inline void SetServerCertificateName(Aws::String&& value) { m_serverCertificateNameHasBeenSet = true; m_serverCertificateName = std::move(value); }
81 inline void SetServerCertificateName(const char* value) { m_serverCertificateNameHasBeenSet = true; m_serverCertificateName.assign(value); }
84 inline UploadServerCertificateRequest& WithServerCertificateName(const char* value) { SetServerCertificateName(value); return *this;}
86
88
99 inline const Aws::String& GetCertificateBody() const{ return m_certificateBody; }
100 inline bool CertificateBodyHasBeenSet() const { return m_certificateBodyHasBeenSet; }
101 inline void SetCertificateBody(const Aws::String& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = value; }
102 inline void SetCertificateBody(Aws::String&& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = std::move(value); }
103 inline void SetCertificateBody(const char* value) { m_certificateBodyHasBeenSet = true; m_certificateBody.assign(value); }
105 inline UploadServerCertificateRequest& WithCertificateBody(Aws::String&& value) { SetCertificateBody(std::move(value)); return *this;}
106 inline UploadServerCertificateRequest& WithCertificateBody(const char* value) { SetCertificateBody(value); return *this;}
108
110
121 inline const Aws::String& GetPrivateKey() const{ return m_privateKey; }
122 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
123 inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
124 inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); }
125 inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); }
126 inline UploadServerCertificateRequest& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;}
127 inline UploadServerCertificateRequest& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;}
128 inline UploadServerCertificateRequest& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;}
130
132
144 inline const Aws::String& GetCertificateChain() const{ return m_certificateChain; }
145 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
146 inline void SetCertificateChain(const Aws::String& value) { m_certificateChainHasBeenSet = true; m_certificateChain = value; }
147 inline void SetCertificateChain(Aws::String&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::move(value); }
148 inline void SetCertificateChain(const char* value) { m_certificateChainHasBeenSet = true; m_certificateChain.assign(value); }
150 inline UploadServerCertificateRequest& WithCertificateChain(Aws::String&& value) { SetCertificateChain(std::move(value)); return *this;}
151 inline UploadServerCertificateRequest& WithCertificateChain(const char* value) { SetCertificateChain(value); return *this;}
153
155
164 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
167 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
168 inline UploadServerCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
169 inline UploadServerCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
170 inline UploadServerCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
171 inline UploadServerCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
173 private:
174
175 Aws::String m_path;
176 bool m_pathHasBeenSet = false;
177
178 Aws::String m_serverCertificateName;
179 bool m_serverCertificateNameHasBeenSet = false;
180
181 Aws::String m_certificateBody;
182 bool m_certificateBodyHasBeenSet = false;
183
184 Aws::String m_privateKey;
185 bool m_privateKeyHasBeenSet = false;
186
187 Aws::String m_certificateChain;
188 bool m_certificateChainHasBeenSet = false;
189
190 Aws::Vector<Tag> m_tags;
191 bool m_tagsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace IAM
196} // namespace Aws
UploadServerCertificateRequest & WithPrivateKey(const char *value)
UploadServerCertificateRequest & WithCertificateChain(const Aws::String &value)
UploadServerCertificateRequest & WithCertificateChain(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
UploadServerCertificateRequest & WithCertificateBody(Aws::String &&value)
UploadServerCertificateRequest & WithCertificateBody(const char *value)
UploadServerCertificateRequest & WithPath(const char *value)
UploadServerCertificateRequest & AddTags(Tag &&value)
UploadServerCertificateRequest & WithPath(Aws::String &&value)
UploadServerCertificateRequest & AddTags(const Tag &value)
UploadServerCertificateRequest & WithServerCertificateName(Aws::String &&value)
UploadServerCertificateRequest & WithCertificateBody(const Aws::String &value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UploadServerCertificateRequest & WithServerCertificateName(const char *value)
UploadServerCertificateRequest & WithServerCertificateName(const Aws::String &value)
UploadServerCertificateRequest & WithPrivateKey(Aws::String &&value)
UploadServerCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
UploadServerCertificateRequest & WithPrivateKey(const Aws::String &value)
UploadServerCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
UploadServerCertificateRequest & WithPath(const Aws::String &value)
UploadServerCertificateRequest & WithCertificateChain(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector