AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportCertificateRequest.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/ACMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/acm/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ACM
18{
19namespace 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_ACM_API Aws::String SerializePayload() const override;
36
38
39
41
47 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
48 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
49 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
50 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
51 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
52 inline ImportCertificateRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
53 inline ImportCertificateRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
54 inline ImportCertificateRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
56
58
61 inline const Aws::Utils::ByteBuffer& GetCertificate() const{ return m_certificate; }
62 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
63 inline void SetCertificate(const Aws::Utils::ByteBuffer& value) { m_certificateHasBeenSet = true; m_certificate = value; }
64 inline void SetCertificate(Aws::Utils::ByteBuffer&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
66 inline ImportCertificateRequest& WithCertificate(Aws::Utils::ByteBuffer&& value) { SetCertificate(std::move(value)); return *this;}
68
70
73 inline const Aws::Utils::CryptoBuffer& GetPrivateKey() const{ return m_privateKey; }
74 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
75 inline void SetPrivateKey(const Aws::Utils::CryptoBuffer& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
76 inline void SetPrivateKey(Aws::Utils::CryptoBuffer&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); }
78 inline ImportCertificateRequest& WithPrivateKey(Aws::Utils::CryptoBuffer&& value) { SetPrivateKey(std::move(value)); return *this;}
80
82
85 inline const Aws::Utils::ByteBuffer& GetCertificateChain() const{ return m_certificateChain; }
86 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
87 inline void SetCertificateChain(const Aws::Utils::ByteBuffer& value) { m_certificateChainHasBeenSet = true; m_certificateChain = value; }
88 inline void SetCertificateChain(Aws::Utils::ByteBuffer&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::move(value); }
92
94
98 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 inline ImportCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
103 inline ImportCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
104 inline ImportCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
105 inline ImportCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
107 private:
108
109 Aws::String m_certificateArn;
110 bool m_certificateArnHasBeenSet = false;
111
112 Aws::Utils::ByteBuffer m_certificate;
113 bool m_certificateHasBeenSet = false;
114
115 Aws::Utils::CryptoBuffer m_privateKey;
116 bool m_privateKeyHasBeenSet = false;
117
118 Aws::Utils::ByteBuffer m_certificateChain;
119 bool m_certificateChainHasBeenSet = false;
120
121 Aws::Vector<Tag> m_tags;
122 bool m_tagsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ACM
127} // namespace Aws
AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportCertificateRequest & WithPrivateKey(Aws::Utils::CryptoBuffer &&value)
void SetCertificate(Aws::Utils::ByteBuffer &&value)
const Aws::Utils::ByteBuffer & GetCertificateChain() const
void SetCertificateChain(const Aws::Utils::ByteBuffer &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_ACM_API Aws::String SerializePayload() const override
ImportCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::ByteBuffer & GetCertificate() const
ImportCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
ImportCertificateRequest & WithCertificateChain(Aws::Utils::ByteBuffer &&value)
ImportCertificateRequest & WithCertificateChain(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::CryptoBuffer & GetPrivateKey() const
ImportCertificateRequest & AddTags(Tag &&value)
ImportCertificateRequest & AddTags(const Tag &value)
ImportCertificateRequest & WithCertificateArn(const Aws::String &value)
void SetPrivateKey(Aws::Utils::CryptoBuffer &&value)
ImportCertificateRequest & WithCertificate(Aws::Utils::ByteBuffer &&value)
void SetCertificate(const Aws::Utils::ByteBuffer &value)
virtual const char * GetServiceRequestName() const override
ImportCertificateRequest & WithPrivateKey(const Aws::Utils::CryptoBuffer &value)
void SetCertificateChain(Aws::Utils::ByteBuffer &&value)
void SetPrivateKey(const Aws::Utils::CryptoBuffer &value)
ImportCertificateRequest & WithCertificate(const Aws::Utils::ByteBuffer &value)
ImportCertificateRequest & WithCertificateArn(const char *value)
ImportCertificateRequest & WithCertificateArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector