AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RevokeCertificateRequest.h
1
6#pragma once
7#include <aws/acm/ACMRequest.h>
8#include <aws/acm/ACM_EXPORTS.h>
9#include <aws/acm/model/RevocationReason.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ACM {
16namespace Model {
17
21 public:
22 AWS_ACM_API RevokeCertificateRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "RevokeCertificate"; }
29
30 AWS_ACM_API Aws::String SerializePayload() const override;
31
33
35
41 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
42 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
43 template <typename CertificateArnT = Aws::String>
44 void SetCertificateArn(CertificateArnT&& value) {
45 m_certificateArnHasBeenSet = true;
46 m_certificateArn = std::forward<CertificateArnT>(value);
47 }
48 template <typename CertificateArnT = Aws::String>
49 RevokeCertificateRequest& WithCertificateArn(CertificateArnT&& value) {
50 SetCertificateArn(std::forward<CertificateArnT>(value));
51 return *this;
52 }
54
56
59 inline RevocationReason GetRevocationReason() const { return m_revocationReason; }
60 inline bool RevocationReasonHasBeenSet() const { return m_revocationReasonHasBeenSet; }
62 m_revocationReasonHasBeenSet = true;
63 m_revocationReason = value;
64 }
67 return *this;
68 }
70 private:
71 Aws::String m_certificateArn;
72
74 bool m_certificateArnHasBeenSet = false;
75 bool m_revocationReasonHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ACM
80} // namespace Aws
RevokeCertificateRequest & WithCertificateArn(CertificateArnT &&value)
AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_ACM_API Aws::String SerializePayload() const override
AWS_ACM_API RevokeCertificateRequest()=default
RevokeCertificateRequest & WithRevocationReason(RevocationReason value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String