AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportCertificateRequest.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/TransferRequest.h>
9#include <aws/awstransfer/model/CertificateUsageType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/awstransfer/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Transfer
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_TRANSFER_API ImportCertificateRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ImportCertificate"; }
35
36 AWS_TRANSFER_API Aws::String SerializePayload() const override;
37
39
40
42
49 inline CertificateUsageType GetUsage() const { return m_usage; }
50 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
51 inline void SetUsage(CertificateUsageType value) { m_usageHasBeenSet = true; m_usage = value; }
52 inline ImportCertificateRequest& WithUsage(CertificateUsageType value) { SetUsage(value); return *this;}
54
56
67 inline const Aws::String& GetCertificate() const { return m_certificate; }
68 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
69 template<typename CertificateT = Aws::String>
70 void SetCertificate(CertificateT&& value) { m_certificateHasBeenSet = true; m_certificate = std::forward<CertificateT>(value); }
71 template<typename CertificateT = Aws::String>
72 ImportCertificateRequest& WithCertificate(CertificateT&& value) { SetCertificate(std::forward<CertificateT>(value)); return *this;}
74
76
80 inline const Aws::String& GetCertificateChain() const { return m_certificateChain; }
81 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
82 template<typename CertificateChainT = Aws::String>
83 void SetCertificateChain(CertificateChainT&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::forward<CertificateChainT>(value); }
84 template<typename CertificateChainT = Aws::String>
85 ImportCertificateRequest& WithCertificateChain(CertificateChainT&& value) { SetCertificateChain(std::forward<CertificateChainT>(value)); return *this;}
87
89
96 inline const Aws::String& GetPrivateKey() const { return m_privateKey; }
97 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
98 template<typename PrivateKeyT = Aws::String>
99 void SetPrivateKey(PrivateKeyT&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::forward<PrivateKeyT>(value); }
100 template<typename PrivateKeyT = Aws::String>
101 ImportCertificateRequest& WithPrivateKey(PrivateKeyT&& value) { SetPrivateKey(std::forward<PrivateKeyT>(value)); return *this;}
103
105
110 inline const Aws::Utils::DateTime& GetActiveDate() const { return m_activeDate; }
111 inline bool ActiveDateHasBeenSet() const { return m_activeDateHasBeenSet; }
112 template<typename ActiveDateT = Aws::Utils::DateTime>
113 void SetActiveDate(ActiveDateT&& value) { m_activeDateHasBeenSet = true; m_activeDate = std::forward<ActiveDateT>(value); }
114 template<typename ActiveDateT = Aws::Utils::DateTime>
115 ImportCertificateRequest& WithActiveDate(ActiveDateT&& value) { SetActiveDate(std::forward<ActiveDateT>(value)); return *this;}
117
119
124 inline const Aws::Utils::DateTime& GetInactiveDate() const { return m_inactiveDate; }
125 inline bool InactiveDateHasBeenSet() const { return m_inactiveDateHasBeenSet; }
126 template<typename InactiveDateT = Aws::Utils::DateTime>
127 void SetInactiveDate(InactiveDateT&& value) { m_inactiveDateHasBeenSet = true; m_inactiveDate = std::forward<InactiveDateT>(value); }
128 template<typename InactiveDateT = Aws::Utils::DateTime>
129 ImportCertificateRequest& WithInactiveDate(InactiveDateT&& value) { SetInactiveDate(std::forward<InactiveDateT>(value)); return *this;}
131
133
136 inline const Aws::String& GetDescription() const { return m_description; }
137 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
138 template<typename DescriptionT = Aws::String>
139 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
140 template<typename DescriptionT = Aws::String>
141 ImportCertificateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
143
145
148 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template<typename TagsT = Aws::Vector<Tag>>
151 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
152 template<typename TagsT = Aws::Vector<Tag>>
153 ImportCertificateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
154 template<typename TagsT = Tag>
155 ImportCertificateRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
157 private:
158
160 bool m_usageHasBeenSet = false;
161
162 Aws::String m_certificate;
163 bool m_certificateHasBeenSet = false;
164
165 Aws::String m_certificateChain;
166 bool m_certificateChainHasBeenSet = false;
167
168 Aws::String m_privateKey;
169 bool m_privateKeyHasBeenSet = false;
170
171 Aws::Utils::DateTime m_activeDate{};
172 bool m_activeDateHasBeenSet = false;
173
174 Aws::Utils::DateTime m_inactiveDate{};
175 bool m_inactiveDateHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Transfer
186} // 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