AWS SDK for C++  1.9.45
AWS SDK for C++
ImportCertificateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/acm/ACM_EXPORTS.h>
8 #include <aws/acm/ACMRequest.h>
10 #include <aws/core/utils/Array.h>
12 #include <aws/acm/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace ACM
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ImportCertificate"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
46  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
47 
54  inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
55 
62  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
63 
70  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
71 
78  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
79 
86  inline ImportCertificateRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
87 
94  inline ImportCertificateRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
95 
102  inline ImportCertificateRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
103 
104 
108  inline const Aws::Utils::ByteBuffer& GetCertificate() const{ return m_certificate; }
109 
113  inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
114 
118  inline void SetCertificate(const Aws::Utils::ByteBuffer& value) { m_certificateHasBeenSet = true; m_certificate = value; }
119 
123  inline void SetCertificate(Aws::Utils::ByteBuffer&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
124 
128  inline ImportCertificateRequest& WithCertificate(const Aws::Utils::ByteBuffer& value) { SetCertificate(value); return *this;}
129 
133  inline ImportCertificateRequest& WithCertificate(Aws::Utils::ByteBuffer&& value) { SetCertificate(std::move(value)); return *this;}
134 
135 
139  inline const Aws::Utils::CryptoBuffer& GetPrivateKey() const{ return m_privateKey; }
140 
144  inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
145 
149  inline void SetPrivateKey(const Aws::Utils::CryptoBuffer& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
150 
154  inline void SetPrivateKey(Aws::Utils::CryptoBuffer&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); }
155 
159  inline ImportCertificateRequest& WithPrivateKey(const Aws::Utils::CryptoBuffer& value) { SetPrivateKey(value); return *this;}
160 
164  inline ImportCertificateRequest& WithPrivateKey(Aws::Utils::CryptoBuffer&& value) { SetPrivateKey(std::move(value)); return *this;}
165 
166 
170  inline const Aws::Utils::ByteBuffer& GetCertificateChain() const{ return m_certificateChain; }
171 
175  inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
176 
180  inline void SetCertificateChain(const Aws::Utils::ByteBuffer& value) { m_certificateChainHasBeenSet = true; m_certificateChain = value; }
181 
185  inline void SetCertificateChain(Aws::Utils::ByteBuffer&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::move(value); }
186 
190  inline ImportCertificateRequest& WithCertificateChain(const Aws::Utils::ByteBuffer& value) { SetCertificateChain(value); return *this;}
191 
195  inline ImportCertificateRequest& WithCertificateChain(Aws::Utils::ByteBuffer&& value) { SetCertificateChain(std::move(value)); return *this;}
196 
197 
202  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
203 
208  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
209 
214  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
215 
220  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
221 
226  inline ImportCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
227 
232  inline ImportCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
233 
238  inline ImportCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
239 
244  inline ImportCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
245 
246  private:
247 
248  Aws::String m_certificateArn;
249  bool m_certificateArnHasBeenSet;
250 
251  Aws::Utils::ByteBuffer m_certificate;
252  bool m_certificateHasBeenSet;
253 
254  Aws::Utils::CryptoBuffer m_privateKey;
255  bool m_privateKeyHasBeenSet;
256 
257  Aws::Utils::ByteBuffer m_certificateChain;
258  bool m_certificateChainHasBeenSet;
259 
260  Aws::Vector<Tag> m_tags;
261  bool m_tagsHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace ACM
266 } // namespace Aws
Aws::ACM::Model::ImportCertificateRequest::AddTags
ImportCertificateRequest & AddTags(Tag &&value)
Definition: ImportCertificateRequest.h:244
Aws::ACM::Model::ImportCertificateRequest::CertificateHasBeenSet
bool CertificateHasBeenSet() const
Definition: ImportCertificateRequest.h:113
Aws::ACM::Model::ImportCertificateRequest::SetCertificateChain
void SetCertificateChain(const Aws::Utils::ByteBuffer &value)
Definition: ImportCertificateRequest.h:180
Aws::ACM::Model::ImportCertificateRequest::SetCertificate
void SetCertificate(Aws::Utils::ByteBuffer &&value)
Definition: ImportCertificateRequest.h:123
Aws::ACM::Model::ImportCertificateRequest::WithPrivateKey
ImportCertificateRequest & WithPrivateKey(Aws::Utils::CryptoBuffer &&value)
Definition: ImportCertificateRequest.h:164
Aws::ACM::Model::ImportCertificateRequest::WithCertificateArn
ImportCertificateRequest & WithCertificateArn(Aws::String &&value)
Definition: ImportCertificateRequest.h:94
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ACM::Model::ImportCertificateRequest::WithTags
ImportCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: ImportCertificateRequest.h:232
Aws::ACM::Model::ImportCertificateRequest::WithCertificateArn
ImportCertificateRequest & WithCertificateArn(const char *value)
Definition: ImportCertificateRequest.h:102
Aws::ACM::Model::ImportCertificateRequest::WithTags
ImportCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: ImportCertificateRequest.h:226
Aws::ACM::Model::ImportCertificateRequest::WithCertificate
ImportCertificateRequest & WithCertificate(Aws::Utils::ByteBuffer &&value)
Definition: ImportCertificateRequest.h:133
Aws::ACM::Model::ImportCertificateRequest::GetCertificateArn
const Aws::String & GetCertificateArn() const
Definition: ImportCertificateRequest.h:46
Aws::ACM::Model::ImportCertificateRequest::WithPrivateKey
ImportCertificateRequest & WithPrivateKey(const Aws::Utils::CryptoBuffer &value)
Definition: ImportCertificateRequest.h:159
Aws::ACM::ACMRequest
Definition: ACMRequest.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ACM::Model::ImportCertificateRequest
Definition: ImportCertificateRequest.h:25
Aws::ACM::Model::ImportCertificateRequest::SetCertificateChain
void SetCertificateChain(Aws::Utils::ByteBuffer &&value)
Definition: ImportCertificateRequest.h:185
Aws::ACM::Model::ImportCertificateRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ImportCertificateRequest.h:220
AWSVector.h
Aws::ACM::Model::ImportCertificateRequest::CertificateArnHasBeenSet
bool CertificateArnHasBeenSet() const
Definition: ImportCertificateRequest.h:54
Aws::ACM::Model::ImportCertificateRequest::SetCertificateArn
void SetCertificateArn(const char *value)
Definition: ImportCertificateRequest.h:78
Aws::ACM::Model::ImportCertificateRequest::GetCertificate
const Aws::Utils::ByteBuffer & GetCertificate() const
Definition: ImportCertificateRequest.h:108
Aws::ACM::Model::ImportCertificateRequest::CertificateChainHasBeenSet
bool CertificateChainHasBeenSet() const
Definition: ImportCertificateRequest.h:175
Aws::ACM::Model::ImportCertificateRequest::WithCertificateChain
ImportCertificateRequest & WithCertificateChain(const Aws::Utils::ByteBuffer &value)
Definition: ImportCertificateRequest.h:190
Aws::ACM::Model::ImportCertificateRequest::WithCertificateChain
ImportCertificateRequest & WithCertificateChain(Aws::Utils::ByteBuffer &&value)
Definition: ImportCertificateRequest.h:195
Aws::ACM::Model::Tag
Definition: Tag.h:33
Aws::ACM::Model::ImportCertificateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Tag.h
Aws::ACM::Model::ImportCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ImportCertificateRequest.h:33
Aws::ACM::Model::ImportCertificateRequest::SetCertificateArn
void SetCertificateArn(const Aws::String &value)
Definition: ImportCertificateRequest.h:62
Aws::ACM::Model::ImportCertificateRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ImportCertificateRequest.h:202
Aws::Utils::Array< unsigned char >
Aws::ACM::Model::ImportCertificateRequest::SetPrivateKey
void SetPrivateKey(const Aws::Utils::CryptoBuffer &value)
Definition: ImportCertificateRequest.h:149
AWSString.h
Aws::ACM::Model::ImportCertificateRequest::SetCertificate
void SetCertificate(const Aws::Utils::ByteBuffer &value)
Definition: ImportCertificateRequest.h:118
ACMRequest.h
Aws::ACM::Model::ImportCertificateRequest::SetCertificateArn
void SetCertificateArn(Aws::String &&value)
Definition: ImportCertificateRequest.h:70
Aws::ACM::Model::ImportCertificateRequest::GetCertificateChain
const Aws::Utils::ByteBuffer & GetCertificateChain() const
Definition: ImportCertificateRequest.h:170
Aws::ACM::Model::ImportCertificateRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ImportCertificateRequest.h:214
Aws::Utils::CryptoBuffer
Definition: Array.h:229
ACM_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::ACM::Model::ImportCertificateRequest::AddTags
ImportCertificateRequest & AddTags(const Tag &value)
Definition: ImportCertificateRequest.h:238
Array.h
Aws::ACM::Model::ImportCertificateRequest::ImportCertificateRequest
ImportCertificateRequest()
Aws::ACM::Model::ImportCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_ACM_API
#define AWS_ACM_API
Definition: ACM_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ACM::Model::ImportCertificateRequest::GetPrivateKey
const Aws::Utils::CryptoBuffer & GetPrivateKey() const
Definition: ImportCertificateRequest.h:139
Aws::ACM::Model::ImportCertificateRequest::SetPrivateKey
void SetPrivateKey(Aws::Utils::CryptoBuffer &&value)
Definition: ImportCertificateRequest.h:154
Aws::ACM::Model::ImportCertificateRequest::PrivateKeyHasBeenSet
bool PrivateKeyHasBeenSet() const
Definition: ImportCertificateRequest.h:144
Aws::ACM::Model::ImportCertificateRequest::WithCertificate
ImportCertificateRequest & WithCertificate(const Aws::Utils::ByteBuffer &value)
Definition: ImportCertificateRequest.h:128
Aws::ACM::Model::ImportCertificateRequest::WithCertificateArn
ImportCertificateRequest & WithCertificateArn(const Aws::String &value)
Definition: ImportCertificateRequest.h:86
Aws::ACM::Model::ImportCertificateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ImportCertificateRequest.h:208