AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrustedCertificatePublicKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
9#include <aws/payment-cryptography/model/KeyAttributes.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PaymentCryptography {
21namespace Model {
22
30 public:
31 AWS_PAYMENTCRYPTOGRAPHY_API TrustedCertificatePublicKey() = default;
32 AWS_PAYMENTCRYPTOGRAPHY_API TrustedCertificatePublicKey(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PAYMENTCRYPTOGRAPHY_API TrustedCertificatePublicKey& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const KeyAttributes& GetKeyAttributes() const { return m_keyAttributes; }
43 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
44 template <typename KeyAttributesT = KeyAttributes>
45 void SetKeyAttributes(KeyAttributesT&& value) {
46 m_keyAttributesHasBeenSet = true;
47 m_keyAttributes = std::forward<KeyAttributesT>(value);
48 }
49 template <typename KeyAttributesT = KeyAttributes>
51 SetKeyAttributes(std::forward<KeyAttributesT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPublicKeyCertificate() const { return m_publicKeyCertificate; }
61 inline bool PublicKeyCertificateHasBeenSet() const { return m_publicKeyCertificateHasBeenSet; }
62 template <typename PublicKeyCertificateT = Aws::String>
63 void SetPublicKeyCertificate(PublicKeyCertificateT&& value) {
64 m_publicKeyCertificateHasBeenSet = true;
65 m_publicKeyCertificate = std::forward<PublicKeyCertificateT>(value);
66 }
67 template <typename PublicKeyCertificateT = Aws::String>
68 TrustedCertificatePublicKey& WithPublicKeyCertificate(PublicKeyCertificateT&& value) {
69 SetPublicKeyCertificate(std::forward<PublicKeyCertificateT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetCertificateAuthorityPublicKeyIdentifier() const { return m_certificateAuthorityPublicKeyIdentifier; }
80 inline bool CertificateAuthorityPublicKeyIdentifierHasBeenSet() const { return m_certificateAuthorityPublicKeyIdentifierHasBeenSet; }
81 template <typename CertificateAuthorityPublicKeyIdentifierT = Aws::String>
82 void SetCertificateAuthorityPublicKeyIdentifier(CertificateAuthorityPublicKeyIdentifierT&& value) {
83 m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true;
84 m_certificateAuthorityPublicKeyIdentifier = std::forward<CertificateAuthorityPublicKeyIdentifierT>(value);
85 }
86 template <typename CertificateAuthorityPublicKeyIdentifierT = Aws::String>
87 TrustedCertificatePublicKey& WithCertificateAuthorityPublicKeyIdentifier(CertificateAuthorityPublicKeyIdentifierT&& value) {
88 SetCertificateAuthorityPublicKeyIdentifier(std::forward<CertificateAuthorityPublicKeyIdentifierT>(value));
89 return *this;
90 }
92 private:
93 KeyAttributes m_keyAttributes;
94
95 Aws::String m_publicKeyCertificate;
96
97 Aws::String m_certificateAuthorityPublicKeyIdentifier;
98 bool m_keyAttributesHasBeenSet = false;
99 bool m_publicKeyCertificateHasBeenSet = false;
100 bool m_certificateAuthorityPublicKeyIdentifierHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace PaymentCryptography
105} // namespace Aws
TrustedCertificatePublicKey & WithKeyAttributes(KeyAttributesT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API TrustedCertificatePublicKey()=default
TrustedCertificatePublicKey & WithCertificateAuthorityPublicKeyIdentifier(CertificateAuthorityPublicKeyIdentifierT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
TrustedCertificatePublicKey & WithPublicKeyCertificate(PublicKeyCertificateT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API TrustedCertificatePublicKey(Aws::Utils::Json::JsonView jsonValue)
void SetCertificateAuthorityPublicKeyIdentifier(CertificateAuthorityPublicKeyIdentifierT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API TrustedCertificatePublicKey & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue