AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
Certificates.h
1
6#pragma once
7#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudHSMV2 {
20namespace Model {
21
29 public:
30 AWS_CLOUDHSMV2_API Certificates() = default;
31 AWS_CLOUDHSMV2_API Certificates(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDHSMV2_API Certificates& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDHSMV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline const Aws::String& GetClusterCsr() const { return m_clusterCsr; }
41 inline bool ClusterCsrHasBeenSet() const { return m_clusterCsrHasBeenSet; }
42 template <typename ClusterCsrT = Aws::String>
43 void SetClusterCsr(ClusterCsrT&& value) {
44 m_clusterCsrHasBeenSet = true;
45 m_clusterCsr = std::forward<ClusterCsrT>(value);
46 }
47 template <typename ClusterCsrT = Aws::String>
48 Certificates& WithClusterCsr(ClusterCsrT&& value) {
49 SetClusterCsr(std::forward<ClusterCsrT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetHsmCertificate() const { return m_hsmCertificate; }
59 inline bool HsmCertificateHasBeenSet() const { return m_hsmCertificateHasBeenSet; }
60 template <typename HsmCertificateT = Aws::String>
61 void SetHsmCertificate(HsmCertificateT&& value) {
62 m_hsmCertificateHasBeenSet = true;
63 m_hsmCertificate = std::forward<HsmCertificateT>(value);
64 }
65 template <typename HsmCertificateT = Aws::String>
66 Certificates& WithHsmCertificate(HsmCertificateT&& value) {
67 SetHsmCertificate(std::forward<HsmCertificateT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAwsHardwareCertificate() const { return m_awsHardwareCertificate; }
77 inline bool AwsHardwareCertificateHasBeenSet() const { return m_awsHardwareCertificateHasBeenSet; }
78 template <typename AwsHardwareCertificateT = Aws::String>
79 void SetAwsHardwareCertificate(AwsHardwareCertificateT&& value) {
80 m_awsHardwareCertificateHasBeenSet = true;
81 m_awsHardwareCertificate = std::forward<AwsHardwareCertificateT>(value);
82 }
83 template <typename AwsHardwareCertificateT = Aws::String>
84 Certificates& WithAwsHardwareCertificate(AwsHardwareCertificateT&& value) {
85 SetAwsHardwareCertificate(std::forward<AwsHardwareCertificateT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetManufacturerHardwareCertificate() const { return m_manufacturerHardwareCertificate; }
96 inline bool ManufacturerHardwareCertificateHasBeenSet() const { return m_manufacturerHardwareCertificateHasBeenSet; }
97 template <typename ManufacturerHardwareCertificateT = Aws::String>
98 void SetManufacturerHardwareCertificate(ManufacturerHardwareCertificateT&& value) {
99 m_manufacturerHardwareCertificateHasBeenSet = true;
100 m_manufacturerHardwareCertificate = std::forward<ManufacturerHardwareCertificateT>(value);
101 }
102 template <typename ManufacturerHardwareCertificateT = Aws::String>
103 Certificates& WithManufacturerHardwareCertificate(ManufacturerHardwareCertificateT&& value) {
104 SetManufacturerHardwareCertificate(std::forward<ManufacturerHardwareCertificateT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetClusterCertificate() const { return m_clusterCertificate; }
115 inline bool ClusterCertificateHasBeenSet() const { return m_clusterCertificateHasBeenSet; }
116 template <typename ClusterCertificateT = Aws::String>
117 void SetClusterCertificate(ClusterCertificateT&& value) {
118 m_clusterCertificateHasBeenSet = true;
119 m_clusterCertificate = std::forward<ClusterCertificateT>(value);
120 }
121 template <typename ClusterCertificateT = Aws::String>
122 Certificates& WithClusterCertificate(ClusterCertificateT&& value) {
123 SetClusterCertificate(std::forward<ClusterCertificateT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_clusterCsr;
129
130 Aws::String m_hsmCertificate;
131
132 Aws::String m_awsHardwareCertificate;
133
134 Aws::String m_manufacturerHardwareCertificate;
135
136 Aws::String m_clusterCertificate;
137 bool m_clusterCsrHasBeenSet = false;
138 bool m_hsmCertificateHasBeenSet = false;
139 bool m_awsHardwareCertificateHasBeenSet = false;
140 bool m_manufacturerHardwareCertificateHasBeenSet = false;
141 bool m_clusterCertificateHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace CloudHSMV2
146} // namespace Aws
AWS_CLOUDHSMV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetClusterCsr() const
const Aws::String & GetManufacturerHardwareCertificate() const
Certificates & WithClusterCsr(ClusterCsrT &&value)
Certificates & WithManufacturerHardwareCertificate(ManufacturerHardwareCertificateT &&value)
AWS_CLOUDHSMV2_API Certificates & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Certificates & WithHsmCertificate(HsmCertificateT &&value)
Certificates & WithAwsHardwareCertificate(AwsHardwareCertificateT &&value)
const Aws::String & GetClusterCertificate() const
Certificates & WithClusterCertificate(ClusterCertificateT &&value)
const Aws::String & GetHsmCertificate() const
AWS_CLOUDHSMV2_API Certificates(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetManufacturerHardwareCertificate(ManufacturerHardwareCertificateT &&value)
void SetClusterCertificate(ClusterCertificateT &&value)
AWS_CLOUDHSMV2_API Certificates()=default
bool ManufacturerHardwareCertificateHasBeenSet() const
const Aws::String & GetAwsHardwareCertificate() const
void SetClusterCsr(ClusterCsrT &&value)
void SetAwsHardwareCertificate(AwsHardwareCertificateT &&value)
void SetHsmCertificate(HsmCertificateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String