AWS SDK for C++  1.8.71
AWS SDK for C++
ImportCertificateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
12 #include <aws/dms/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace DatabaseMigrationService
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ImportCertificate"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
45  inline const Aws::String& GetCertificateIdentifier() const{ return m_certificateIdentifier; }
46 
52  inline bool CertificateIdentifierHasBeenSet() const { return m_certificateIdentifierHasBeenSet; }
53 
59  inline void SetCertificateIdentifier(const Aws::String& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = value; }
60 
66  inline void SetCertificateIdentifier(Aws::String&& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = std::move(value); }
67 
73  inline void SetCertificateIdentifier(const char* value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier.assign(value); }
74 
80  inline ImportCertificateRequest& WithCertificateIdentifier(const Aws::String& value) { SetCertificateIdentifier(value); return *this;}
81 
87  inline ImportCertificateRequest& WithCertificateIdentifier(Aws::String&& value) { SetCertificateIdentifier(std::move(value)); return *this;}
88 
94  inline ImportCertificateRequest& WithCertificateIdentifier(const char* value) { SetCertificateIdentifier(value); return *this;}
95 
96 
101  inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; }
102 
107  inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
108 
113  inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
114 
119  inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = std::move(value); }
120 
125  inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); }
126 
131  inline ImportCertificateRequest& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
132 
137  inline ImportCertificateRequest& WithCertificatePem(Aws::String&& value) { SetCertificatePem(std::move(value)); return *this;}
138 
143  inline ImportCertificateRequest& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
144 
145 
149  inline const Aws::Utils::ByteBuffer& GetCertificateWallet() const{ return m_certificateWallet; }
150 
154  inline bool CertificateWalletHasBeenSet() const { return m_certificateWalletHasBeenSet; }
155 
159  inline void SetCertificateWallet(const Aws::Utils::ByteBuffer& value) { m_certificateWalletHasBeenSet = true; m_certificateWallet = value; }
160 
164  inline void SetCertificateWallet(Aws::Utils::ByteBuffer&& value) { m_certificateWalletHasBeenSet = true; m_certificateWallet = std::move(value); }
165 
169  inline ImportCertificateRequest& WithCertificateWallet(const Aws::Utils::ByteBuffer& value) { SetCertificateWallet(value); return *this;}
170 
174  inline ImportCertificateRequest& WithCertificateWallet(Aws::Utils::ByteBuffer&& value) { SetCertificateWallet(std::move(value)); return *this;}
175 
176 
180  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
181 
185  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 
190  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
191 
195  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
196 
200  inline ImportCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
201 
205  inline ImportCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
206 
210  inline ImportCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
211 
215  inline ImportCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
216 
217  private:
218 
219  Aws::String m_certificateIdentifier;
220  bool m_certificateIdentifierHasBeenSet;
221 
222  Aws::String m_certificatePem;
223  bool m_certificatePemHasBeenSet;
224 
225  Aws::Utils::ByteBuffer m_certificateWallet;
226  bool m_certificateWalletHasBeenSet;
227 
228  Aws::Vector<Tag> m_tags;
229  bool m_tagsHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace DatabaseMigrationService
234 } // namespace Aws
ImportCertificateRequest & WithCertificateWallet(const Aws::Utils::ByteBuffer &value)
ImportCertificateRequest & WithCertificatePem(const char *value)
ImportCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ImportCertificateRequest & WithCertificatePem(Aws::String &&value)
#define AWS_DATABASEMIGRATIONSERVICE_API
ImportCertificateRequest & WithCertificatePem(const Aws::String &value)
ImportCertificateRequest & WithCertificateIdentifier(const char *value)
ImportCertificateRequest & WithCertificateIdentifier(const Aws::String &value)
ImportCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ImportCertificateRequest & WithCertificateWallet(Aws::Utils::ByteBuffer &&value)
ImportCertificateRequest & WithCertificateIdentifier(Aws::String &&value)