AWS SDK for C++  1.9.126
AWS SDK for C++
VirtualGatewayClientPolicyTls.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AppMesh
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const VirtualGatewayClientTlsCertificate& GetCertificate() const{ return m_certificate; }
48 
53  inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
54 
59  inline void SetCertificate(const VirtualGatewayClientTlsCertificate& value) { m_certificateHasBeenSet = true; m_certificate = value; }
60 
65  inline void SetCertificate(VirtualGatewayClientTlsCertificate&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
66 
71  inline VirtualGatewayClientPolicyTls& WithCertificate(const VirtualGatewayClientTlsCertificate& value) { SetCertificate(value); return *this;}
72 
77  inline VirtualGatewayClientPolicyTls& WithCertificate(VirtualGatewayClientTlsCertificate&& value) { SetCertificate(std::move(value)); return *this;}
78 
79 
84  inline bool GetEnforce() const{ return m_enforce; }
85 
90  inline bool EnforceHasBeenSet() const { return m_enforceHasBeenSet; }
91 
96  inline void SetEnforce(bool value) { m_enforceHasBeenSet = true; m_enforce = value; }
97 
102  inline VirtualGatewayClientPolicyTls& WithEnforce(bool value) { SetEnforce(value); return *this;}
103 
104 
108  inline const Aws::Vector<int>& GetPorts() const{ return m_ports; }
109 
113  inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
114 
118  inline void SetPorts(const Aws::Vector<int>& value) { m_portsHasBeenSet = true; m_ports = value; }
119 
123  inline void SetPorts(Aws::Vector<int>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
124 
128  inline VirtualGatewayClientPolicyTls& WithPorts(const Aws::Vector<int>& value) { SetPorts(value); return *this;}
129 
133  inline VirtualGatewayClientPolicyTls& WithPorts(Aws::Vector<int>&& value) { SetPorts(std::move(value)); return *this;}
134 
138  inline VirtualGatewayClientPolicyTls& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
139 
140 
145  inline const VirtualGatewayTlsValidationContext& GetValidation() const{ return m_validation; }
146 
151  inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; }
152 
157  inline void SetValidation(const VirtualGatewayTlsValidationContext& value) { m_validationHasBeenSet = true; m_validation = value; }
158 
163  inline void SetValidation(VirtualGatewayTlsValidationContext&& value) { m_validationHasBeenSet = true; m_validation = std::move(value); }
164 
169  inline VirtualGatewayClientPolicyTls& WithValidation(const VirtualGatewayTlsValidationContext& value) { SetValidation(value); return *this;}
170 
175  inline VirtualGatewayClientPolicyTls& WithValidation(VirtualGatewayTlsValidationContext&& value) { SetValidation(std::move(value)); return *this;}
176 
177  private:
178 
180  bool m_certificateHasBeenSet;
181 
182  bool m_enforce;
183  bool m_enforceHasBeenSet;
184 
185  Aws::Vector<int> m_ports;
186  bool m_portsHasBeenSet;
187 
189  bool m_validationHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace AppMesh
194 } // namespace Aws
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::GetEnforce
bool GetEnforce() const
Definition: VirtualGatewayClientPolicyTls.h:84
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::SetCertificate
void SetCertificate(const VirtualGatewayClientTlsCertificate &value)
Definition: VirtualGatewayClientPolicyTls.h:59
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::EnforceHasBeenSet
bool EnforceHasBeenSet() const
Definition: VirtualGatewayClientPolicyTls.h:90
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::CertificateHasBeenSet
bool CertificateHasBeenSet() const
Definition: VirtualGatewayClientPolicyTls.h:53
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::GetPorts
const Aws::Vector< int > & GetPorts() const
Definition: VirtualGatewayClientPolicyTls.h:108
VirtualGatewayClientTlsCertificate.h
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::VirtualGatewayClientPolicyTls
VirtualGatewayClientPolicyTls()
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::SetEnforce
void SetEnforce(bool value)
Definition: VirtualGatewayClientPolicyTls.h:96
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::SetValidation
void SetValidation(VirtualGatewayTlsValidationContext &&value)
Definition: VirtualGatewayClientPolicyTls.h:163
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::SetPorts
void SetPorts(const Aws::Vector< int > &value)
Definition: VirtualGatewayClientPolicyTls.h:118
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::GetCertificate
const VirtualGatewayClientTlsCertificate & GetCertificate() const
Definition: VirtualGatewayClientPolicyTls.h:47
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::ValidationHasBeenSet
bool ValidationHasBeenSet() const
Definition: VirtualGatewayClientPolicyTls.h:151
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::SetValidation
void SetValidation(const VirtualGatewayTlsValidationContext &value)
Definition: VirtualGatewayClientPolicyTls.h:157
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls
Definition: VirtualGatewayClientPolicyTls.h:35
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::WithCertificate
VirtualGatewayClientPolicyTls & WithCertificate(VirtualGatewayClientTlsCertificate &&value)
Definition: VirtualGatewayClientPolicyTls.h:77
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::operator=
VirtualGatewayClientPolicyTls & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::SetPorts
void SetPorts(Aws::Vector< int > &&value)
Definition: VirtualGatewayClientPolicyTls.h:123
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::WithPorts
VirtualGatewayClientPolicyTls & WithPorts(Aws::Vector< int > &&value)
Definition: VirtualGatewayClientPolicyTls.h:133
Aws::AppMesh::Model::VirtualGatewayTlsValidationContext
Definition: VirtualGatewayTlsValidationContext.h:34
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::VirtualGatewayClientPolicyTls
VirtualGatewayClientPolicyTls(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::GetValidation
const VirtualGatewayTlsValidationContext & GetValidation() const
Definition: VirtualGatewayClientPolicyTls.h:145
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::WithEnforce
VirtualGatewayClientPolicyTls & WithEnforce(bool value)
Definition: VirtualGatewayClientPolicyTls.h:102
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::WithPorts
VirtualGatewayClientPolicyTls & WithPorts(const Aws::Vector< int > &value)
Definition: VirtualGatewayClientPolicyTls.h:128
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::WithValidation
VirtualGatewayClientPolicyTls & WithValidation(const VirtualGatewayTlsValidationContext &value)
Definition: VirtualGatewayClientPolicyTls.h:169
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::PortsHasBeenSet
bool PortsHasBeenSet() const
Definition: VirtualGatewayClientPolicyTls.h:113
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::WithCertificate
VirtualGatewayClientPolicyTls & WithCertificate(const VirtualGatewayClientTlsCertificate &value)
Definition: VirtualGatewayClientPolicyTls.h:71
Aws::AppMesh::Model::VirtualGatewayClientTlsCertificate
Definition: VirtualGatewayClientTlsCertificate.h:34
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::WithValidation
VirtualGatewayClientPolicyTls & WithValidation(VirtualGatewayTlsValidationContext &&value)
Definition: VirtualGatewayClientPolicyTls.h:175
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::AddPorts
VirtualGatewayClientPolicyTls & AddPorts(int value)
Definition: VirtualGatewayClientPolicyTls.h:138
VirtualGatewayTlsValidationContext.h
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::VirtualGatewayClientPolicyTls::SetCertificate
void SetCertificate(VirtualGatewayClientTlsCertificate &&value)
Definition: VirtualGatewayClientPolicyTls.h:65