AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ImportCertificateRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dms/DatabaseMigrationServiceRequest.h>
11#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
12#include <aws/dms/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DatabaseMigrationService {
18namespace Model {
19
23 public:
24 AWS_DATABASEMIGRATIONSERVICE_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_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
33
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
42 inline const Aws::String& GetCertificateIdentifier() const { return m_certificateIdentifier; }
43 inline bool CertificateIdentifierHasBeenSet() const { return m_certificateIdentifierHasBeenSet; }
44 template <typename CertificateIdentifierT = Aws::String>
45 void SetCertificateIdentifier(CertificateIdentifierT&& value) {
46 m_certificateIdentifierHasBeenSet = true;
47 m_certificateIdentifier = std::forward<CertificateIdentifierT>(value);
48 }
49 template <typename CertificateIdentifierT = Aws::String>
50 ImportCertificateRequest& WithCertificateIdentifier(CertificateIdentifierT&& value) {
51 SetCertificateIdentifier(std::forward<CertificateIdentifierT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetCertificatePem() const { return m_certificatePem; }
62 inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
63 template <typename CertificatePemT = Aws::String>
64 void SetCertificatePem(CertificatePemT&& value) {
65 m_certificatePemHasBeenSet = true;
66 m_certificatePem = std::forward<CertificatePemT>(value);
67 }
68 template <typename CertificatePemT = Aws::String>
69 ImportCertificateRequest& WithCertificatePem(CertificatePemT&& value) {
70 SetCertificatePem(std::forward<CertificatePemT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::Utils::ByteBuffer& GetCertificateWallet() const { return m_certificateWallet; }
83 inline bool CertificateWalletHasBeenSet() const { return m_certificateWalletHasBeenSet; }
84 template <typename CertificateWalletT = Aws::Utils::ByteBuffer>
85 void SetCertificateWallet(CertificateWalletT&& value) {
86 m_certificateWalletHasBeenSet = true;
87 m_certificateWallet = std::forward<CertificateWalletT>(value);
88 }
89 template <typename CertificateWalletT = Aws::Utils::ByteBuffer>
90 ImportCertificateRequest& WithCertificateWallet(CertificateWalletT&& value) {
91 SetCertificateWallet(std::forward<CertificateWalletT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template <typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags = std::forward<TagsT>(value);
106 }
107 template <typename TagsT = Aws::Vector<Tag>>
109 SetTags(std::forward<TagsT>(value));
110 return *this;
111 }
112 template <typename TagsT = Tag>
114 m_tagsHasBeenSet = true;
115 m_tags.emplace_back(std::forward<TagsT>(value));
116 return *this;
117 }
119
121
128 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
129 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
130 template <typename KmsKeyIdT = Aws::String>
131 void SetKmsKeyId(KmsKeyIdT&& value) {
132 m_kmsKeyIdHasBeenSet = true;
133 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
134 }
135 template <typename KmsKeyIdT = Aws::String>
137 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_certificateIdentifier;
143
144 Aws::String m_certificatePem;
145
146 Aws::Utils::ByteBuffer m_certificateWallet{};
147
148 Aws::Vector<Tag> m_tags;
149
150 Aws::String m_kmsKeyId;
151 bool m_certificateIdentifierHasBeenSet = false;
152 bool m_certificatePemHasBeenSet = false;
153 bool m_certificateWalletHasBeenSet = false;
154 bool m_tagsHasBeenSet = false;
155 bool m_kmsKeyIdHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace DatabaseMigrationService
160} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportCertificateRequest & WithCertificatePem(CertificatePemT &&value)
ImportCertificateRequest & WithCertificateWallet(CertificateWalletT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ImportCertificateRequest()=default
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
ImportCertificateRequest & WithCertificateIdentifier(CertificateIdentifierT &&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