AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClientPolicyTls.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/ClientTlsCertificate.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/appmesh/model/TlsValidationContext.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:
37 AWS_APPMESH_API ClientPolicyTls();
38 AWS_APPMESH_API ClientPolicyTls(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ClientTlsCertificate& GetCertificate() const{ return m_certificate; }
48 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
49 inline void SetCertificate(const ClientTlsCertificate& value) { m_certificateHasBeenSet = true; m_certificate = value; }
50 inline void SetCertificate(ClientTlsCertificate&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
51 inline ClientPolicyTls& WithCertificate(const ClientTlsCertificate& value) { SetCertificate(value); return *this;}
52 inline ClientPolicyTls& WithCertificate(ClientTlsCertificate&& value) { SetCertificate(std::move(value)); return *this;}
54
56
60 inline bool GetEnforce() const{ return m_enforce; }
61 inline bool EnforceHasBeenSet() const { return m_enforceHasBeenSet; }
62 inline void SetEnforce(bool value) { m_enforceHasBeenSet = true; m_enforce = value; }
63 inline ClientPolicyTls& WithEnforce(bool value) { SetEnforce(value); return *this;}
65
67
70 inline const Aws::Vector<int>& GetPorts() const{ return m_ports; }
71 inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
72 inline void SetPorts(const Aws::Vector<int>& value) { m_portsHasBeenSet = true; m_ports = value; }
73 inline void SetPorts(Aws::Vector<int>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
74 inline ClientPolicyTls& WithPorts(const Aws::Vector<int>& value) { SetPorts(value); return *this;}
75 inline ClientPolicyTls& WithPorts(Aws::Vector<int>&& value) { SetPorts(std::move(value)); return *this;}
76 inline ClientPolicyTls& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
78
80
83 inline const TlsValidationContext& GetValidation() const{ return m_validation; }
84 inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; }
85 inline void SetValidation(const TlsValidationContext& value) { m_validationHasBeenSet = true; m_validation = value; }
86 inline void SetValidation(TlsValidationContext&& value) { m_validationHasBeenSet = true; m_validation = std::move(value); }
87 inline ClientPolicyTls& WithValidation(const TlsValidationContext& value) { SetValidation(value); return *this;}
88 inline ClientPolicyTls& WithValidation(TlsValidationContext&& value) { SetValidation(std::move(value)); return *this;}
90 private:
91
92 ClientTlsCertificate m_certificate;
93 bool m_certificateHasBeenSet = false;
94
95 bool m_enforce;
96 bool m_enforceHasBeenSet = false;
97
98 Aws::Vector<int> m_ports;
99 bool m_portsHasBeenSet = false;
100
101 TlsValidationContext m_validation;
102 bool m_validationHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace AppMesh
107} // namespace Aws
ClientPolicyTls & WithCertificate(ClientTlsCertificate &&value)
const ClientTlsCertificate & GetCertificate() const
ClientPolicyTls & WithEnforce(bool value)
ClientPolicyTls & WithValidation(TlsValidationContext &&value)
AWS_APPMESH_API ClientPolicyTls(Aws::Utils::Json::JsonView jsonValue)
const TlsValidationContext & GetValidation() const
void SetCertificate(ClientTlsCertificate &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API ClientPolicyTls & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPorts(const Aws::Vector< int > &value)
ClientPolicyTls & WithPorts(Aws::Vector< int > &&value)
const Aws::Vector< int > & GetPorts() const
void SetValidation(TlsValidationContext &&value)
ClientPolicyTls & WithValidation(const TlsValidationContext &value)
ClientPolicyTls & WithCertificate(const ClientTlsCertificate &value)
void SetValidation(const TlsValidationContext &value)
ClientPolicyTls & AddPorts(int value)
void SetPorts(Aws::Vector< int > &&value)
void SetCertificate(const ClientTlsCertificate &value)
ClientPolicyTls & WithPorts(const Aws::Vector< int > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue