AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
ImportCertificateRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/CertificateUsageType.h>
10#include <aws/awstransfer/model/Tag.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Transfer {
19namespace Model {
20
24 public:
25 AWS_TRANSFER_API ImportCertificateRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ImportCertificate"; }
32
33 AWS_TRANSFER_API Aws::String SerializePayload() const override;
34
36
38
45 inline CertificateUsageType GetUsage() const { return m_usage; }
46 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
47 inline void SetUsage(CertificateUsageType value) {
48 m_usageHasBeenSet = true;
49 m_usage = value;
50 }
52 SetUsage(value);
53 return *this;
54 }
56
58
69 inline const Aws::String& GetCertificate() const { return m_certificate; }
70 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
71 template <typename CertificateT = Aws::String>
72 void SetCertificate(CertificateT&& value) {
73 m_certificateHasBeenSet = true;
74 m_certificate = std::forward<CertificateT>(value);
75 }
76 template <typename CertificateT = Aws::String>
78 SetCertificate(std::forward<CertificateT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetCertificateChain() const { return m_certificateChain; }
89 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
90 template <typename CertificateChainT = Aws::String>
91 void SetCertificateChain(CertificateChainT&& value) {
92 m_certificateChainHasBeenSet = true;
93 m_certificateChain = std::forward<CertificateChainT>(value);
94 }
95 template <typename CertificateChainT = Aws::String>
96 ImportCertificateRequest& WithCertificateChain(CertificateChainT&& value) {
97 SetCertificateChain(std::forward<CertificateChainT>(value));
98 return *this;
99 }
101
103
110 inline const Aws::String& GetPrivateKey() const { return m_privateKey; }
111 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
112 template <typename PrivateKeyT = Aws::String>
113 void SetPrivateKey(PrivateKeyT&& value) {
114 m_privateKeyHasBeenSet = true;
115 m_privateKey = std::forward<PrivateKeyT>(value);
116 }
117 template <typename PrivateKeyT = Aws::String>
119 SetPrivateKey(std::forward<PrivateKeyT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::Utils::DateTime& GetActiveDate() const { return m_activeDate; }
131 inline bool ActiveDateHasBeenSet() const { return m_activeDateHasBeenSet; }
132 template <typename ActiveDateT = Aws::Utils::DateTime>
133 void SetActiveDate(ActiveDateT&& value) {
134 m_activeDateHasBeenSet = true;
135 m_activeDate = std::forward<ActiveDateT>(value);
136 }
137 template <typename ActiveDateT = Aws::Utils::DateTime>
139 SetActiveDate(std::forward<ActiveDateT>(value));
140 return *this;
141 }
143
145
150 inline const Aws::Utils::DateTime& GetInactiveDate() const { return m_inactiveDate; }
151 inline bool InactiveDateHasBeenSet() const { return m_inactiveDateHasBeenSet; }
152 template <typename InactiveDateT = Aws::Utils::DateTime>
153 void SetInactiveDate(InactiveDateT&& value) {
154 m_inactiveDateHasBeenSet = true;
155 m_inactiveDate = std::forward<InactiveDateT>(value);
156 }
157 template <typename InactiveDateT = Aws::Utils::DateTime>
159 SetInactiveDate(std::forward<InactiveDateT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetDescription() const { return m_description; }
169 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
170 template <typename DescriptionT = Aws::String>
171 void SetDescription(DescriptionT&& value) {
172 m_descriptionHasBeenSet = true;
173 m_description = std::forward<DescriptionT>(value);
174 }
175 template <typename DescriptionT = Aws::String>
177 SetDescription(std::forward<DescriptionT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template <typename TagsT = Aws::Vector<Tag>>
189 void SetTags(TagsT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags = std::forward<TagsT>(value);
192 }
193 template <typename TagsT = Aws::Vector<Tag>>
195 SetTags(std::forward<TagsT>(value));
196 return *this;
197 }
198 template <typename TagsT = Tag>
200 m_tagsHasBeenSet = true;
201 m_tags.emplace_back(std::forward<TagsT>(value));
202 return *this;
203 }
205 private:
207 bool m_usageHasBeenSet = false;
208
209 Aws::String m_certificate;
210 bool m_certificateHasBeenSet = false;
211
212 Aws::String m_certificateChain;
213 bool m_certificateChainHasBeenSet = false;
214
215 Aws::String m_privateKey;
216 bool m_privateKeyHasBeenSet = false;
217
218 Aws::Utils::DateTime m_activeDate{};
219 bool m_activeDateHasBeenSet = false;
220
221 Aws::Utils::DateTime m_inactiveDate{};
222 bool m_inactiveDateHasBeenSet = false;
223
224 Aws::String m_description;
225 bool m_descriptionHasBeenSet = false;
226
227 Aws::Vector<Tag> m_tags;
228 bool m_tagsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace Transfer
233} // namespace Aws
AWS_TRANSFER_API Aws::String SerializePayload() const override
ImportCertificateRequest & WithCertificateChain(CertificateChainT &&value)
const Aws::Utils::DateTime & GetActiveDate() const
virtual const char * GetServiceRequestName() const override
ImportCertificateRequest & AddTags(TagsT &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportCertificateRequest & WithActiveDate(ActiveDateT &&value)
const Aws::Utils::DateTime & GetInactiveDate() const
AWS_TRANSFER_API ImportCertificateRequest()=default
ImportCertificateRequest & WithInactiveDate(InactiveDateT &&value)
ImportCertificateRequest & WithCertificate(CertificateT &&value)
ImportCertificateRequest & WithPrivateKey(PrivateKeyT &&value)
ImportCertificateRequest & WithDescription(DescriptionT &&value)
ImportCertificateRequest & WithUsage(CertificateUsageType value)
ImportCertificateRequest & WithTags(TagsT &&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