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/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();
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 const CertificateUsageType& GetUsage() const{ return m_usage; }
50 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
51 inline void SetUsage(const CertificateUsageType& value) { m_usageHasBeenSet = true; m_usage = value; }
52 inline void SetUsage(CertificateUsageType&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); }
53 inline ImportCertificateRequest& WithUsage(const CertificateUsageType& value) { SetUsage(value); return *this;}
54 inline ImportCertificateRequest& WithUsage(CertificateUsageType&& value) { SetUsage(std::move(value)); return *this;}
56
58
65 inline const Aws::String& GetCertificate() const{ return m_certificate; }
66 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
67 inline void SetCertificate(const Aws::String& value) { m_certificateHasBeenSet = true; m_certificate = value; }
68 inline void SetCertificate(Aws::String&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
69 inline void SetCertificate(const char* value) { m_certificateHasBeenSet = true; m_certificate.assign(value); }
70 inline ImportCertificateRequest& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;}
71 inline ImportCertificateRequest& WithCertificate(Aws::String&& value) { SetCertificate(std::move(value)); return *this;}
72 inline ImportCertificateRequest& WithCertificate(const char* value) { SetCertificate(value); return *this;}
74
76
80 inline const Aws::String& GetCertificateChain() const{ return m_certificateChain; }
81 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
82 inline void SetCertificateChain(const Aws::String& value) { m_certificateChainHasBeenSet = true; m_certificateChain = value; }
83 inline void SetCertificateChain(Aws::String&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::move(value); }
84 inline void SetCertificateChain(const char* value) { m_certificateChainHasBeenSet = true; m_certificateChain.assign(value); }
86 inline ImportCertificateRequest& WithCertificateChain(Aws::String&& value) { SetCertificateChain(std::move(value)); return *this;}
87 inline ImportCertificateRequest& WithCertificateChain(const char* value) { SetCertificateChain(value); return *this;}
89
91
98 inline const Aws::String& GetPrivateKey() const{ return m_privateKey; }
99 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
100 inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
101 inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); }
102 inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); }
103 inline ImportCertificateRequest& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;}
104 inline ImportCertificateRequest& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;}
105 inline ImportCertificateRequest& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetActiveDate() const{ return m_activeDate; }
113 inline bool ActiveDateHasBeenSet() const { return m_activeDateHasBeenSet; }
114 inline void SetActiveDate(const Aws::Utils::DateTime& value) { m_activeDateHasBeenSet = true; m_activeDate = value; }
115 inline void SetActiveDate(Aws::Utils::DateTime&& value) { m_activeDateHasBeenSet = true; m_activeDate = std::move(value); }
116 inline ImportCertificateRequest& WithActiveDate(const Aws::Utils::DateTime& value) { SetActiveDate(value); return *this;}
117 inline ImportCertificateRequest& WithActiveDate(Aws::Utils::DateTime&& value) { SetActiveDate(std::move(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetInactiveDate() const{ return m_inactiveDate; }
125 inline bool InactiveDateHasBeenSet() const { return m_inactiveDateHasBeenSet; }
126 inline void SetInactiveDate(const Aws::Utils::DateTime& value) { m_inactiveDateHasBeenSet = true; m_inactiveDate = value; }
127 inline void SetInactiveDate(Aws::Utils::DateTime&& value) { m_inactiveDateHasBeenSet = true; m_inactiveDate = std::move(value); }
129 inline ImportCertificateRequest& WithInactiveDate(Aws::Utils::DateTime&& value) { SetInactiveDate(std::move(value)); return *this;}
131
133
136 inline const Aws::String& GetDescription() const{ return m_description; }
137 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
138 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
139 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
140 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
141 inline ImportCertificateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
142 inline ImportCertificateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
143 inline ImportCertificateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
145
147
150 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline ImportCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 inline ImportCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
156 inline ImportCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
157 inline ImportCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159 private:
160
161 CertificateUsageType m_usage;
162 bool m_usageHasBeenSet = false;
163
164 Aws::String m_certificate;
165 bool m_certificateHasBeenSet = false;
166
167 Aws::String m_certificateChain;
168 bool m_certificateChainHasBeenSet = false;
169
170 Aws::String m_privateKey;
171 bool m_privateKeyHasBeenSet = false;
172
173 Aws::Utils::DateTime m_activeDate;
174 bool m_activeDateHasBeenSet = false;
175
176 Aws::Utils::DateTime m_inactiveDate;
177 bool m_inactiveDateHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 Aws::Vector<Tag> m_tags;
183 bool m_tagsHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace Transfer
188} // namespace Aws
ImportCertificateRequest & WithCertificate(const Aws::String &value)
ImportCertificateRequest & WithUsage(CertificateUsageType &&value)
ImportCertificateRequest & WithPrivateKey(Aws::String &&value)
ImportCertificateRequest & WithDescription(const char *value)
ImportCertificateRequest & WithCertificate(Aws::String &&value)
void SetUsage(const CertificateUsageType &value)
ImportCertificateRequest & WithActiveDate(Aws::Utils::DateTime &&value)
void SetInactiveDate(const Aws::Utils::DateTime &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetActiveDate() const
virtual const char * GetServiceRequestName() const override
ImportCertificateRequest & WithCertificateChain(const char *value)
ImportCertificateRequest & WithCertificateChain(Aws::String &&value)
ImportCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
void SetActiveDate(const Aws::Utils::DateTime &value)
ImportCertificateRequest & WithActiveDate(const Aws::Utils::DateTime &value)
ImportCertificateRequest & WithPrivateKey(const char *value)
ImportCertificateRequest & WithCertificate(const char *value)
ImportCertificateRequest & WithDescription(Aws::String &&value)
const Aws::Utils::DateTime & GetInactiveDate() const
ImportCertificateRequest & WithDescription(const Aws::String &value)
ImportCertificateRequest & AddTags(Tag &&value)
ImportCertificateRequest & WithUsage(const CertificateUsageType &value)
ImportCertificateRequest & WithCertificateChain(const Aws::String &value)
ImportCertificateRequest & WithInactiveDate(const Aws::Utils::DateTime &value)
ImportCertificateRequest & WithPrivateKey(const Aws::String &value)
ImportCertificateRequest & AddTags(const Tag &value)
ImportCertificateRequest & WithInactiveDate(Aws::Utils::DateTime &&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