AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
ImportCertificateRequest.h
1
6#pragma once
7#include <aws/acm/ACMRequest.h>
8#include <aws/acm/ACM_EXPORTS.h>
9#include <aws/acm/model/Tag.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ACM {
18namespace Model {
19
23 public:
24 AWS_ACM_API ImportCertificateRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ImportCertificate"; }
31
32 AWS_ACM_API Aws::String SerializePayload() const override;
33
35
39 AWS_ACM_API EndpointParameters GetEndpointContextParams() const override;
40
42
48 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
49 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
50 template <typename CertificateArnT = Aws::String>
51 void SetCertificateArn(CertificateArnT&& value) {
52 m_certificateArnHasBeenSet = true;
53 m_certificateArn = std::forward<CertificateArnT>(value);
54 }
55 template <typename CertificateArnT = Aws::String>
56 ImportCertificateRequest& WithCertificateArn(CertificateArnT&& value) {
57 SetCertificateArn(std::forward<CertificateArnT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Utils::ByteBuffer& GetCertificate() const { return m_certificate; }
67 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
68 template <typename CertificateT = Aws::Utils::ByteBuffer>
69 void SetCertificate(CertificateT&& value) {
70 m_certificateHasBeenSet = true;
71 m_certificate = std::forward<CertificateT>(value);
72 }
73 template <typename CertificateT = Aws::Utils::ByteBuffer>
75 SetCertificate(std::forward<CertificateT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Utils::CryptoBuffer& GetPrivateKey() const { return m_privateKey; }
85 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
86 template <typename PrivateKeyT = Aws::Utils::CryptoBuffer>
87 void SetPrivateKey(PrivateKeyT&& value) {
88 m_privateKeyHasBeenSet = true;
89 m_privateKey = std::forward<PrivateKeyT>(value);
90 }
91 template <typename PrivateKeyT = Aws::Utils::CryptoBuffer>
93 SetPrivateKey(std::forward<PrivateKeyT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::ByteBuffer& GetCertificateChain() const { return m_certificateChain; }
103 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
104 template <typename CertificateChainT = Aws::Utils::ByteBuffer>
105 void SetCertificateChain(CertificateChainT&& value) {
106 m_certificateChainHasBeenSet = true;
107 m_certificateChain = std::forward<CertificateChainT>(value);
108 }
109 template <typename CertificateChainT = Aws::Utils::ByteBuffer>
110 ImportCertificateRequest& WithCertificateChain(CertificateChainT&& value) {
111 SetCertificateChain(std::forward<CertificateChainT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template <typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Vector<Tag>>
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsT = Tag>
135 m_tagsHasBeenSet = true;
136 m_tags.emplace_back(std::forward<TagsT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_certificateArn;
142
143 Aws::Utils::ByteBuffer m_certificate{};
144
145 Aws::Utils::CryptoBuffer m_privateKey{};
146
147 Aws::Utils::ByteBuffer m_certificateChain{};
148
149 Aws::Vector<Tag> m_tags;
150 bool m_certificateArnHasBeenSet = false;
151 bool m_certificateHasBeenSet = false;
152 bool m_privateKeyHasBeenSet = false;
153 bool m_certificateChainHasBeenSet = false;
154 bool m_tagsHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace ACM
159} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
Definition ACMRequest.h:18
AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportCertificateRequest & WithCertificate(CertificateT &&value)
ImportCertificateRequest & AddTags(TagsT &&value)
ImportCertificateRequest & WithTags(TagsT &&value)
ImportCertificateRequest & WithCertificateArn(CertificateArnT &&value)
const Aws::Utils::ByteBuffer & GetCertificateChain() const
ImportCertificateRequest & WithCertificateChain(CertificateChainT &&value)
AWS_ACM_API Aws::String SerializePayload() const override
const Aws::Utils::ByteBuffer & GetCertificate() const
const Aws::Utils::CryptoBuffer & GetPrivateKey() const
void SetCertificateChain(CertificateChainT &&value)
AWS_ACM_API ImportCertificateRequest()=default
ImportCertificateRequest & WithPrivateKey(PrivateKeyT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ACM_API EndpointParameters GetEndpointContextParams() const override
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