AWS SDK for C++  1.9.40
AWS SDK for C++
ExportCertificateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/acm/ACM_EXPORTS.h>
8 #include <aws/acm/ACMRequest.h>
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ACM
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "ExportCertificate"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
44  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
45 
52  inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
53 
60  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
61 
68  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
69 
76  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
77 
84  inline ExportCertificateRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
85 
92  inline ExportCertificateRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
93 
100  inline ExportCertificateRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
101 
102 
109  inline const Aws::Utils::CryptoBuffer& GetPassphrase() const{ return m_passphrase; }
110 
117  inline bool PassphraseHasBeenSet() const { return m_passphraseHasBeenSet; }
118 
125  inline void SetPassphrase(const Aws::Utils::CryptoBuffer& value) { m_passphraseHasBeenSet = true; m_passphrase = value; }
126 
133  inline void SetPassphrase(Aws::Utils::CryptoBuffer&& value) { m_passphraseHasBeenSet = true; m_passphrase = std::move(value); }
134 
141  inline ExportCertificateRequest& WithPassphrase(const Aws::Utils::CryptoBuffer& value) { SetPassphrase(value); return *this;}
142 
149  inline ExportCertificateRequest& WithPassphrase(Aws::Utils::CryptoBuffer&& value) { SetPassphrase(std::move(value)); return *this;}
150 
151  private:
152 
153  Aws::String m_certificateArn;
154  bool m_certificateArnHasBeenSet;
155 
156  Aws::Utils::CryptoBuffer m_passphrase;
157  bool m_passphraseHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace ACM
162 } // namespace Aws
Aws::ACM::Model::ExportCertificateRequest::WithCertificateArn
ExportCertificateRequest & WithCertificateArn(const char *value)
Definition: ExportCertificateRequest.h:100
Aws::ACM::Model::ExportCertificateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ACM::Model::ExportCertificateRequest::SetPassphrase
void SetPassphrase(Aws::Utils::CryptoBuffer &&value)
Definition: ExportCertificateRequest.h:133
Aws::ACM::Model::ExportCertificateRequest::SetCertificateArn
void SetCertificateArn(const Aws::String &value)
Definition: ExportCertificateRequest.h:60
Aws::ACM::Model::ExportCertificateRequest::WithPassphrase
ExportCertificateRequest & WithPassphrase(Aws::Utils::CryptoBuffer &&value)
Definition: ExportCertificateRequest.h:149
Aws::ACM::Model::ExportCertificateRequest::WithPassphrase
ExportCertificateRequest & WithPassphrase(const Aws::Utils::CryptoBuffer &value)
Definition: ExportCertificateRequest.h:141
Aws::ACM::ACMRequest
Definition: ACMRequest.h:17
Aws::ACM::Model::ExportCertificateRequest::SetCertificateArn
void SetCertificateArn(Aws::String &&value)
Definition: ExportCertificateRequest.h:68
Aws::ACM::Model::ExportCertificateRequest::CertificateArnHasBeenSet
bool CertificateArnHasBeenSet() const
Definition: ExportCertificateRequest.h:52
Aws::ACM::Model::ExportCertificateRequest::PassphraseHasBeenSet
bool PassphraseHasBeenSet() const
Definition: ExportCertificateRequest.h:117
Aws::ACM::Model::ExportCertificateRequest::WithCertificateArn
ExportCertificateRequest & WithCertificateArn(const Aws::String &value)
Definition: ExportCertificateRequest.h:84
Aws::ACM::Model::ExportCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ExportCertificateRequest.h:31
AWSString.h
ACMRequest.h
Aws::ACM::Model::ExportCertificateRequest::GetPassphrase
const Aws::Utils::CryptoBuffer & GetPassphrase() const
Definition: ExportCertificateRequest.h:109
Aws::Utils::CryptoBuffer
Definition: Array.h:229
Aws::ACM::Model::ExportCertificateRequest::WithCertificateArn
ExportCertificateRequest & WithCertificateArn(Aws::String &&value)
Definition: ExportCertificateRequest.h:92
Aws::ACM::Model::ExportCertificateRequest
Definition: ExportCertificateRequest.h:23
ACM_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Array.h
AWS_ACM_API
#define AWS_ACM_API
Definition: ACM_EXPORTS.h:28
Aws::ACM::Model::ExportCertificateRequest::SetCertificateArn
void SetCertificateArn(const char *value)
Definition: ExportCertificateRequest.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ACM::Model::ExportCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ACM::Model::ExportCertificateRequest::SetPassphrase
void SetPassphrase(const Aws::Utils::CryptoBuffer &value)
Definition: ExportCertificateRequest.h:125
Aws::ACM::Model::ExportCertificateRequest::ExportCertificateRequest
ExportCertificateRequest()
Aws::ACM::Model::ExportCertificateRequest::GetCertificateArn
const Aws::String & GetCertificateArn() const
Definition: ExportCertificateRequest.h:44