AWS SDK for C++  1.9.20
AWS SDK for C++
ClientPolicyTls.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 
46  inline const ClientTlsCertificate& GetCertificate() const{ return m_certificate; }
47 
51  inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
52 
56  inline void SetCertificate(const ClientTlsCertificate& value) { m_certificateHasBeenSet = true; m_certificate = value; }
57 
61  inline void SetCertificate(ClientTlsCertificate&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
62 
66  inline ClientPolicyTls& WithCertificate(const ClientTlsCertificate& value) { SetCertificate(value); return *this;}
67 
71  inline ClientPolicyTls& WithCertificate(ClientTlsCertificate&& value) { SetCertificate(std::move(value)); return *this;}
72 
73 
78  inline bool GetEnforce() const{ return m_enforce; }
79 
84  inline bool EnforceHasBeenSet() const { return m_enforceHasBeenSet; }
85 
90  inline void SetEnforce(bool value) { m_enforceHasBeenSet = true; m_enforce = value; }
91 
96  inline ClientPolicyTls& WithEnforce(bool value) { SetEnforce(value); return *this;}
97 
98 
102  inline const Aws::Vector<int>& GetPorts() const{ return m_ports; }
103 
107  inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
108 
112  inline void SetPorts(const Aws::Vector<int>& value) { m_portsHasBeenSet = true; m_ports = value; }
113 
117  inline void SetPorts(Aws::Vector<int>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
118 
122  inline ClientPolicyTls& WithPorts(const Aws::Vector<int>& value) { SetPorts(value); return *this;}
123 
127  inline ClientPolicyTls& WithPorts(Aws::Vector<int>&& value) { SetPorts(std::move(value)); return *this;}
128 
132  inline ClientPolicyTls& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
133 
134 
138  inline const TlsValidationContext& GetValidation() const{ return m_validation; }
139 
143  inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; }
144 
148  inline void SetValidation(const TlsValidationContext& value) { m_validationHasBeenSet = true; m_validation = value; }
149 
153  inline void SetValidation(TlsValidationContext&& value) { m_validationHasBeenSet = true; m_validation = std::move(value); }
154 
158  inline ClientPolicyTls& WithValidation(const TlsValidationContext& value) { SetValidation(value); return *this;}
159 
163  inline ClientPolicyTls& WithValidation(TlsValidationContext&& value) { SetValidation(std::move(value)); return *this;}
164 
165  private:
166 
167  ClientTlsCertificate m_certificate;
168  bool m_certificateHasBeenSet;
169 
170  bool m_enforce;
171  bool m_enforceHasBeenSet;
172 
173  Aws::Vector<int> m_ports;
174  bool m_portsHasBeenSet;
175 
176  TlsValidationContext m_validation;
177  bool m_validationHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace AppMesh
182 } // namespace Aws
Aws::AppMesh::Model::ClientPolicyTls::WithValidation
ClientPolicyTls & WithValidation(TlsValidationContext &&value)
Definition: ClientPolicyTls.h:163
Aws::AppMesh::Model::ClientPolicyTls::WithPorts
ClientPolicyTls & WithPorts(const Aws::Vector< int > &value)
Definition: ClientPolicyTls.h:122
Aws::AppMesh::Model::ClientPolicyTls::GetValidation
const TlsValidationContext & GetValidation() const
Definition: ClientPolicyTls.h:138
Aws::AppMesh::Model::ClientPolicyTls::operator=
ClientPolicyTls & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::ClientPolicyTls::ClientPolicyTls
ClientPolicyTls()
Aws::AppMesh::Model::ClientPolicyTls::SetEnforce
void SetEnforce(bool value)
Definition: ClientPolicyTls.h:90
TlsValidationContext.h
Aws::AppMesh::Model::ClientPolicyTls::SetValidation
void SetValidation(TlsValidationContext &&value)
Definition: ClientPolicyTls.h:153
Aws::AppMesh::Model::TlsValidationContext
Definition: TlsValidationContext.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::ClientPolicyTls::ClientPolicyTls
ClientPolicyTls(Aws::Utils::Json::JsonView jsonValue)
ClientTlsCertificate.h
Aws::AppMesh::Model::ClientPolicyTls::WithCertificate
ClientPolicyTls & WithCertificate(const ClientTlsCertificate &value)
Definition: ClientPolicyTls.h:66
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::ClientPolicyTls::GetPorts
const Aws::Vector< int > & GetPorts() const
Definition: ClientPolicyTls.h:102
Aws::AppMesh::Model::ClientTlsCertificate
Definition: ClientTlsCertificate.h:34
Aws::AppMesh::Model::ClientPolicyTls::WithEnforce
ClientPolicyTls & WithEnforce(bool value)
Definition: ClientPolicyTls.h:96
Aws::AppMesh::Model::ClientPolicyTls::SetPorts
void SetPorts(Aws::Vector< int > &&value)
Definition: ClientPolicyTls.h:117
Aws::AppMesh::Model::ClientPolicyTls::CertificateHasBeenSet
bool CertificateHasBeenSet() const
Definition: ClientPolicyTls.h:51
Aws::AppMesh::Model::ClientPolicyTls::EnforceHasBeenSet
bool EnforceHasBeenSet() const
Definition: ClientPolicyTls.h:84
Aws::AppMesh::Model::ClientPolicyTls::SetPorts
void SetPorts(const Aws::Vector< int > &value)
Definition: ClientPolicyTls.h:112
Aws::AppMesh::Model::ClientPolicyTls::GetCertificate
const ClientTlsCertificate & GetCertificate() const
Definition: ClientPolicyTls.h:46
Aws::AppMesh::Model::ClientPolicyTls::WithCertificate
ClientPolicyTls & WithCertificate(ClientTlsCertificate &&value)
Definition: ClientPolicyTls.h:71
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::ClientPolicyTls::ValidationHasBeenSet
bool ValidationHasBeenSet() const
Definition: ClientPolicyTls.h:143
Aws::AppMesh::Model::ClientPolicyTls::PortsHasBeenSet
bool PortsHasBeenSet() const
Definition: ClientPolicyTls.h:107
Aws::AppMesh::Model::ClientPolicyTls::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::ClientPolicyTls::AddPorts
ClientPolicyTls & AddPorts(int value)
Definition: ClientPolicyTls.h:132
Aws::AppMesh::Model::ClientPolicyTls::SetValidation
void SetValidation(const TlsValidationContext &value)
Definition: ClientPolicyTls.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::ClientPolicyTls::SetCertificate
void SetCertificate(ClientTlsCertificate &&value)
Definition: ClientPolicyTls.h:61
Aws::AppMesh::Model::ClientPolicyTls
Definition: ClientPolicyTls.h:35
Aws::AppMesh::Model::ClientPolicyTls::SetCertificate
void SetCertificate(const ClientTlsCertificate &value)
Definition: ClientPolicyTls.h:56
Aws::AppMesh::Model::ClientPolicyTls::WithPorts
ClientPolicyTls & WithPorts(Aws::Vector< int > &&value)
Definition: ClientPolicyTls.h:127
Aws::AppMesh::Model::ClientPolicyTls::WithValidation
ClientPolicyTls & WithValidation(const TlsValidationContext &value)
Definition: ClientPolicyTls.h:158
Aws::AppMesh::Model::ClientPolicyTls::GetEnforce
bool GetEnforce() const
Definition: ClientPolicyTls.h:78
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28