/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A reference to an object that represents a Transport Layer Security (TLS)
* client policy.See Also:
AWS
* API Reference
A reference to an object that represents a client's TLS certificate.
*/ inline const ClientTlsCertificate& GetCertificate() const{ return m_certificate; } /** *A reference to an object that represents a client's TLS certificate.
*/ inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; } /** *A reference to an object that represents a client's TLS certificate.
*/ inline void SetCertificate(const ClientTlsCertificate& value) { m_certificateHasBeenSet = true; m_certificate = value; } /** *A reference to an object that represents a client's TLS certificate.
*/ inline void SetCertificate(ClientTlsCertificate&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); } /** *A reference to an object that represents a client's TLS certificate.
*/ inline ClientPolicyTls& WithCertificate(const ClientTlsCertificate& value) { SetCertificate(value); return *this;} /** *A reference to an object that represents a client's TLS certificate.
*/ inline ClientPolicyTls& WithCertificate(ClientTlsCertificate&& value) { SetCertificate(std::move(value)); return *this;} /** *Whether the policy is enforced. The default is True
, if a value
* isn't specified.
Whether the policy is enforced. The default is True
, if a value
* isn't specified.
Whether the policy is enforced. The default is True
, if a value
* isn't specified.
Whether the policy is enforced. The default is True
, if a value
* isn't specified.
One or more ports that the policy is enforced for.
*/ inline const Aws::VectorOne or more ports that the policy is enforced for.
*/ inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; } /** *One or more ports that the policy is enforced for.
*/ inline void SetPorts(const Aws::VectorOne or more ports that the policy is enforced for.
*/ inline void SetPorts(Aws::VectorOne or more ports that the policy is enforced for.
*/ inline ClientPolicyTls& WithPorts(const Aws::VectorOne or more ports that the policy is enforced for.
*/ inline ClientPolicyTls& WithPorts(Aws::VectorOne or more ports that the policy is enforced for.
*/ inline ClientPolicyTls& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; } /** *A reference to an object that represents a TLS validation context.
*/ inline const TlsValidationContext& GetValidation() const{ return m_validation; } /** *A reference to an object that represents a TLS validation context.
*/ inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; } /** *A reference to an object that represents a TLS validation context.
*/ inline void SetValidation(const TlsValidationContext& value) { m_validationHasBeenSet = true; m_validation = value; } /** *A reference to an object that represents a TLS validation context.
*/ inline void SetValidation(TlsValidationContext&& value) { m_validationHasBeenSet = true; m_validation = std::move(value); } /** *A reference to an object that represents a TLS validation context.
*/ inline ClientPolicyTls& WithValidation(const TlsValidationContext& value) { SetValidation(value); return *this;} /** *A reference to an object that represents a TLS validation context.
*/ inline ClientPolicyTls& WithValidation(TlsValidationContext&& value) { SetValidation(std::move(value)); return *this;} private: ClientTlsCertificate m_certificate; bool m_certificateHasBeenSet = false; bool m_enforce; bool m_enforceHasBeenSet = false; Aws::Vector