AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ServerCertificateConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/CheckCertificateRevocationStatusActions.h>
12#include <aws/network-firewall/model/DecryptionAction.h>
13#include <aws/network-firewall/model/ServerCertificate.h>
14#include <aws/network-firewall/model/ServerCertificateScope.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace NetworkFirewall {
25namespace Model {
26
44 public:
45 AWS_NETWORKFIREWALL_API ServerCertificateConfiguration() = default;
46 AWS_NETWORKFIREWALL_API ServerCertificateConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
47 AWS_NETWORKFIREWALL_API ServerCertificateConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
48 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
49
51
54 inline const Aws::Vector<ServerCertificate>& GetServerCertificates() const { return m_serverCertificates; }
55 inline bool ServerCertificatesHasBeenSet() const { return m_serverCertificatesHasBeenSet; }
56 template <typename ServerCertificatesT = Aws::Vector<ServerCertificate>>
57 void SetServerCertificates(ServerCertificatesT&& value) {
58 m_serverCertificatesHasBeenSet = true;
59 m_serverCertificates = std::forward<ServerCertificatesT>(value);
60 }
61 template <typename ServerCertificatesT = Aws::Vector<ServerCertificate>>
63 SetServerCertificates(std::forward<ServerCertificatesT>(value));
64 return *this;
65 }
66 template <typename ServerCertificatesT = ServerCertificate>
68 m_serverCertificatesHasBeenSet = true;
69 m_serverCertificates.emplace_back(std::forward<ServerCertificatesT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<ServerCertificateScope>& GetScopes() const { return m_scopes; }
79 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
80 template <typename ScopesT = Aws::Vector<ServerCertificateScope>>
81 void SetScopes(ScopesT&& value) {
82 m_scopesHasBeenSet = true;
83 m_scopes = std::forward<ScopesT>(value);
84 }
85 template <typename ScopesT = Aws::Vector<ServerCertificateScope>>
87 SetScopes(std::forward<ScopesT>(value));
88 return *this;
89 }
90 template <typename ScopesT = ServerCertificateScope>
92 m_scopesHasBeenSet = true;
93 m_scopes.emplace_back(std::forward<ScopesT>(value));
94 return *this;
95 }
97
99
114 inline const Aws::String& GetCertificateAuthorityArn() const { return m_certificateAuthorityArn; }
115 inline bool CertificateAuthorityArnHasBeenSet() const { return m_certificateAuthorityArnHasBeenSet; }
116 template <typename CertificateAuthorityArnT = Aws::String>
117 void SetCertificateAuthorityArn(CertificateAuthorityArnT&& value) {
118 m_certificateAuthorityArnHasBeenSet = true;
119 m_certificateAuthorityArn = std::forward<CertificateAuthorityArnT>(value);
120 }
121 template <typename CertificateAuthorityArnT = Aws::String>
123 SetCertificateAuthorityArn(std::forward<CertificateAuthorityArnT>(value));
124 return *this;
125 }
127
129
138 return m_checkCertificateRevocationStatus;
139 }
140 inline bool CheckCertificateRevocationStatusHasBeenSet() const { return m_checkCertificateRevocationStatusHasBeenSet; }
141 template <typename CheckCertificateRevocationStatusT = CheckCertificateRevocationStatusActions>
142 void SetCheckCertificateRevocationStatus(CheckCertificateRevocationStatusT&& value) {
143 m_checkCertificateRevocationStatusHasBeenSet = true;
144 m_checkCertificateRevocationStatus = std::forward<CheckCertificateRevocationStatusT>(value);
145 }
146 template <typename CheckCertificateRevocationStatusT = CheckCertificateRevocationStatusActions>
147 ServerCertificateConfiguration& WithCheckCertificateRevocationStatus(CheckCertificateRevocationStatusT&& value) {
148 SetCheckCertificateRevocationStatus(std::forward<CheckCertificateRevocationStatusT>(value));
149 return *this;
150 }
152
154
164 inline DecryptionAction GetDefaultDecryptionBehavior() const { return m_defaultDecryptionBehavior; }
165 inline bool DefaultDecryptionBehaviorHasBeenSet() const { return m_defaultDecryptionBehaviorHasBeenSet; }
167 m_defaultDecryptionBehaviorHasBeenSet = true;
168 m_defaultDecryptionBehavior = value;
169 }
175 private:
176 Aws::Vector<ServerCertificate> m_serverCertificates;
177
179
180 Aws::String m_certificateAuthorityArn;
181
182 CheckCertificateRevocationStatusActions m_checkCertificateRevocationStatus;
183
184 DecryptionAction m_defaultDecryptionBehavior{DecryptionAction::NOT_SET};
185 bool m_serverCertificatesHasBeenSet = false;
186 bool m_scopesHasBeenSet = false;
187 bool m_certificateAuthorityArnHasBeenSet = false;
188 bool m_checkCertificateRevocationStatusHasBeenSet = false;
189 bool m_defaultDecryptionBehaviorHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace NetworkFirewall
194} // namespace Aws
ServerCertificateConfiguration & AddScopes(ScopesT &&value)
ServerCertificateConfiguration & WithScopes(ScopesT &&value)
ServerCertificateConfiguration & AddServerCertificates(ServerCertificatesT &&value)
ServerCertificateConfiguration & WithCheckCertificateRevocationStatus(CheckCertificateRevocationStatusT &&value)
void SetCheckCertificateRevocationStatus(CheckCertificateRevocationStatusT &&value)
const Aws::Vector< ServerCertificate > & GetServerCertificates() const
const CheckCertificateRevocationStatusActions & GetCheckCertificateRevocationStatus() const
AWS_NETWORKFIREWALL_API ServerCertificateConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API ServerCertificateConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ServerCertificateConfiguration & WithCertificateAuthorityArn(CertificateAuthorityArnT &&value)
ServerCertificateConfiguration & WithServerCertificates(ServerCertificatesT &&value)
AWS_NETWORKFIREWALL_API ServerCertificateConfiguration()=default
const Aws::Vector< ServerCertificateScope > & GetScopes() const
ServerCertificateConfiguration & WithDefaultDecryptionBehavior(DecryptionAction value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector