AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServerCertificateConfiguration.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/network-firewall/model/CheckCertificateRevocationStatusActions.h>
11#include <aws/network-firewall/model/ServerCertificate.h>
12#include <aws/network-firewall/model/ServerCertificateScope.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkFirewall
26{
27namespace Model
28{
29
47 {
48 public:
49 AWS_NETWORKFIREWALL_API ServerCertificateConfiguration() = default;
52 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::Vector<ServerCertificate>& GetServerCertificates() const { return m_serverCertificates; }
60 inline bool ServerCertificatesHasBeenSet() const { return m_serverCertificatesHasBeenSet; }
61 template<typename ServerCertificatesT = Aws::Vector<ServerCertificate>>
62 void SetServerCertificates(ServerCertificatesT&& value) { m_serverCertificatesHasBeenSet = true; m_serverCertificates = std::forward<ServerCertificatesT>(value); }
63 template<typename ServerCertificatesT = Aws::Vector<ServerCertificate>>
64 ServerCertificateConfiguration& WithServerCertificates(ServerCertificatesT&& value) { SetServerCertificates(std::forward<ServerCertificatesT>(value)); return *this;}
65 template<typename ServerCertificatesT = ServerCertificate>
66 ServerCertificateConfiguration& AddServerCertificates(ServerCertificatesT&& value) { m_serverCertificatesHasBeenSet = true; m_serverCertificates.emplace_back(std::forward<ServerCertificatesT>(value)); return *this; }
68
70
73 inline const Aws::Vector<ServerCertificateScope>& GetScopes() const { return m_scopes; }
74 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
75 template<typename ScopesT = Aws::Vector<ServerCertificateScope>>
76 void SetScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes = std::forward<ScopesT>(value); }
77 template<typename ScopesT = Aws::Vector<ServerCertificateScope>>
78 ServerCertificateConfiguration& WithScopes(ScopesT&& value) { SetScopes(std::forward<ScopesT>(value)); return *this;}
79 template<typename ScopesT = ServerCertificateScope>
80 ServerCertificateConfiguration& AddScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes.emplace_back(std::forward<ScopesT>(value)); return *this; }
82
84
99 inline const Aws::String& GetCertificateAuthorityArn() const { return m_certificateAuthorityArn; }
100 inline bool CertificateAuthorityArnHasBeenSet() const { return m_certificateAuthorityArnHasBeenSet; }
101 template<typename CertificateAuthorityArnT = Aws::String>
102 void SetCertificateAuthorityArn(CertificateAuthorityArnT&& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = std::forward<CertificateAuthorityArnT>(value); }
103 template<typename CertificateAuthorityArnT = Aws::String>
104 ServerCertificateConfiguration& WithCertificateAuthorityArn(CertificateAuthorityArnT&& value) { SetCertificateAuthorityArn(std::forward<CertificateAuthorityArnT>(value)); return *this;}
106
108
116 inline const CheckCertificateRevocationStatusActions& GetCheckCertificateRevocationStatus() const { return m_checkCertificateRevocationStatus; }
117 inline bool CheckCertificateRevocationStatusHasBeenSet() const { return m_checkCertificateRevocationStatusHasBeenSet; }
118 template<typename CheckCertificateRevocationStatusT = CheckCertificateRevocationStatusActions>
119 void SetCheckCertificateRevocationStatus(CheckCertificateRevocationStatusT&& value) { m_checkCertificateRevocationStatusHasBeenSet = true; m_checkCertificateRevocationStatus = std::forward<CheckCertificateRevocationStatusT>(value); }
120 template<typename CheckCertificateRevocationStatusT = CheckCertificateRevocationStatusActions>
121 ServerCertificateConfiguration& WithCheckCertificateRevocationStatus(CheckCertificateRevocationStatusT&& value) { SetCheckCertificateRevocationStatus(std::forward<CheckCertificateRevocationStatusT>(value)); return *this;}
123 private:
124
125 Aws::Vector<ServerCertificate> m_serverCertificates;
126 bool m_serverCertificatesHasBeenSet = false;
127
129 bool m_scopesHasBeenSet = false;
130
131 Aws::String m_certificateAuthorityArn;
132 bool m_certificateAuthorityArnHasBeenSet = false;
133
134 CheckCertificateRevocationStatusActions m_checkCertificateRevocationStatus;
135 bool m_checkCertificateRevocationStatusHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace NetworkFirewall
140} // namespace Aws
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API ServerCertificateConfiguration(Aws::Utils::Json::JsonView jsonValue)
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
ServerCertificateConfiguration & WithCertificateAuthorityArn(CertificateAuthorityArnT &&value)
AWS_NETWORKFIREWALL_API ServerCertificateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerCertificateConfiguration & WithServerCertificates(ServerCertificatesT &&value)
AWS_NETWORKFIREWALL_API ServerCertificateConfiguration()=default
const Aws::Vector< ServerCertificateScope > & GetScopes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue