AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualGatewayClientPolicyTls.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/VirtualGatewayClientTlsCertificate.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/appmesh/model/VirtualGatewayTlsValidationContext.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppMesh
24{
25namespace Model
26{
27
35 {
36 public:
40 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const VirtualGatewayClientTlsCertificate& GetCertificate() const{ return m_certificate; }
49 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
50 inline void SetCertificate(const VirtualGatewayClientTlsCertificate& value) { m_certificateHasBeenSet = true; m_certificate = value; }
51 inline void SetCertificate(VirtualGatewayClientTlsCertificate&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
55
57
61 inline bool GetEnforce() const{ return m_enforce; }
62 inline bool EnforceHasBeenSet() const { return m_enforceHasBeenSet; }
63 inline void SetEnforce(bool value) { m_enforceHasBeenSet = true; m_enforce = value; }
64 inline VirtualGatewayClientPolicyTls& WithEnforce(bool value) { SetEnforce(value); return *this;}
66
68
71 inline const Aws::Vector<int>& GetPorts() const{ return m_ports; }
72 inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
73 inline void SetPorts(const Aws::Vector<int>& value) { m_portsHasBeenSet = true; m_ports = value; }
74 inline void SetPorts(Aws::Vector<int>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
75 inline VirtualGatewayClientPolicyTls& WithPorts(const Aws::Vector<int>& value) { SetPorts(value); return *this;}
76 inline VirtualGatewayClientPolicyTls& WithPorts(Aws::Vector<int>&& value) { SetPorts(std::move(value)); return *this;}
77 inline VirtualGatewayClientPolicyTls& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
79
81
85 inline const VirtualGatewayTlsValidationContext& GetValidation() const{ return m_validation; }
86 inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; }
87 inline void SetValidation(const VirtualGatewayTlsValidationContext& value) { m_validationHasBeenSet = true; m_validation = value; }
88 inline void SetValidation(VirtualGatewayTlsValidationContext&& value) { m_validationHasBeenSet = true; m_validation = std::move(value); }
92 private:
93
95 bool m_certificateHasBeenSet = false;
96
97 bool m_enforce;
98 bool m_enforceHasBeenSet = false;
99
100 Aws::Vector<int> m_ports;
101 bool m_portsHasBeenSet = false;
102
104 bool m_validationHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace AppMesh
109} // namespace Aws
AWS_APPMESH_API VirtualGatewayClientPolicyTls(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayClientPolicyTls & WithPorts(Aws::Vector< int > &&value)
VirtualGatewayClientPolicyTls & WithValidation(VirtualGatewayTlsValidationContext &&value)
void SetCertificate(VirtualGatewayClientTlsCertificate &&value)
const VirtualGatewayClientTlsCertificate & GetCertificate() const
void SetCertificate(const VirtualGatewayClientTlsCertificate &value)
AWS_APPMESH_API VirtualGatewayClientPolicyTls & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayClientPolicyTls & WithEnforce(bool value)
void SetValidation(VirtualGatewayTlsValidationContext &&value)
VirtualGatewayClientPolicyTls & WithCertificate(const VirtualGatewayClientTlsCertificate &value)
VirtualGatewayClientPolicyTls & WithValidation(const VirtualGatewayTlsValidationContext &value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
VirtualGatewayClientPolicyTls & WithPorts(const Aws::Vector< int > &value)
VirtualGatewayClientPolicyTls & WithCertificate(VirtualGatewayClientTlsCertificate &&value)
const VirtualGatewayTlsValidationContext & GetValidation() const
void SetValidation(const VirtualGatewayTlsValidationContext &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue