AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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
37
43 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
44 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
45 template <typename CertificateArnT = Aws::String>
46 void SetCertificateArn(CertificateArnT&& value) {
47 m_certificateArnHasBeenSet = true;
48 m_certificateArn = std::forward<CertificateArnT>(value);
49 }
50 template <typename CertificateArnT = Aws::String>
51 ImportCertificateRequest& WithCertificateArn(CertificateArnT&& value) {
52 SetCertificateArn(std::forward<CertificateArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Utils::ByteBuffer& GetCertificate() const { return m_certificate; }
62 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
63 template <typename CertificateT = Aws::Utils::ByteBuffer>
64 void SetCertificate(CertificateT&& value) {
65 m_certificateHasBeenSet = true;
66 m_certificate = std::forward<CertificateT>(value);
67 }
68 template <typename CertificateT = Aws::Utils::ByteBuffer>
70 SetCertificate(std::forward<CertificateT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::CryptoBuffer& GetPrivateKey() const { return m_privateKey; }
80 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
81 template <typename PrivateKeyT = Aws::Utils::CryptoBuffer>
82 void SetPrivateKey(PrivateKeyT&& value) {
83 m_privateKeyHasBeenSet = true;
84 m_privateKey = std::forward<PrivateKeyT>(value);
85 }
86 template <typename PrivateKeyT = Aws::Utils::CryptoBuffer>
88 SetPrivateKey(std::forward<PrivateKeyT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::ByteBuffer& GetCertificateChain() const { return m_certificateChain; }
98 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
99 template <typename CertificateChainT = Aws::Utils::ByteBuffer>
100 void SetCertificateChain(CertificateChainT&& value) {
101 m_certificateChainHasBeenSet = true;
102 m_certificateChain = std::forward<CertificateChainT>(value);
103 }
104 template <typename CertificateChainT = Aws::Utils::ByteBuffer>
105 ImportCertificateRequest& WithCertificateChain(CertificateChainT&& value) {
106 SetCertificateChain(std::forward<CertificateChainT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template <typename TagsT = Aws::Vector<Tag>>
119 void SetTags(TagsT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags = std::forward<TagsT>(value);
122 }
123 template <typename TagsT = Aws::Vector<Tag>>
125 SetTags(std::forward<TagsT>(value));
126 return *this;
127 }
128 template <typename TagsT = Tag>
130 m_tagsHasBeenSet = true;
131 m_tags.emplace_back(std::forward<TagsT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_certificateArn;
137
138 Aws::Utils::ByteBuffer m_certificate{};
139
140 Aws::Utils::CryptoBuffer m_privateKey{};
141
142 Aws::Utils::ByteBuffer m_certificateChain{};
143
144 Aws::Vector<Tag> m_tags;
145 bool m_certificateArnHasBeenSet = false;
146 bool m_certificateHasBeenSet = false;
147 bool m_privateKeyHasBeenSet = false;
148 bool m_certificateChainHasBeenSet = false;
149 bool m_tagsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace ACM
154} // namespace Aws
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::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