This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-appmesh/include/aws/appmesh/model/VirtualGatewayClientPolicyTls.h

152 lines
4.7 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appmesh/AppMesh_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appmesh/model/VirtualGatewayTlsValidationContext.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppMesh
{
namespace Model
{
/**
* <p>An object that represents a Transport Layer Security (TLS) client
* policy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/VirtualGatewayClientPolicyTls">AWS
* API Reference</a></p>
*/
class AWS_APPMESH_API VirtualGatewayClientPolicyTls
{
public:
VirtualGatewayClientPolicyTls();
VirtualGatewayClientPolicyTls(Aws::Utils::Json::JsonView jsonValue);
VirtualGatewayClientPolicyTls& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Whether the policy is enforced. The default is <code>True</code>, if a value
* isn't
specified.</p>
*/
inline bool GetEnforce() const{ return m_enforce; }
/**
* <p>Whether the policy is enforced. The default is <code>True</code>, if a value
* isn't
specified.</p>
*/
inline bool EnforceHasBeenSet() const { return m_enforceHasBeenSet; }
/**
* <p>Whether the policy is enforced. The default is <code>True</code>, if a value
* isn't
specified.</p>
*/
inline void SetEnforce(bool value) { m_enforceHasBeenSet = true; m_enforce = value; }
/**
* <p>Whether the policy is enforced. The default is <code>True</code>, if a value
* isn't
specified.</p>
*/
inline VirtualGatewayClientPolicyTls& WithEnforce(bool value) { SetEnforce(value); return *this;}
/**
* <p>One or more ports that the policy is enforced for.</p>
*/
inline const Aws::Vector<int>& GetPorts() const{ return m_ports; }
/**
* <p>One or more ports that the policy is enforced for.</p>
*/
inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
/**
* <p>One or more ports that the policy is enforced for.</p>
*/
inline void SetPorts(const Aws::Vector<int>& value) { m_portsHasBeenSet = true; m_ports = value; }
/**
* <p>One or more ports that the policy is enforced for.</p>
*/
inline void SetPorts(Aws::Vector<int>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
/**
* <p>One or more ports that the policy is enforced for.</p>
*/
inline VirtualGatewayClientPolicyTls& WithPorts(const Aws::Vector<int>& value) { SetPorts(value); return *this;}
/**
* <p>One or more ports that the policy is enforced for.</p>
*/
inline VirtualGatewayClientPolicyTls& WithPorts(Aws::Vector<int>&& value) { SetPorts(std::move(value)); return *this;}
/**
* <p>One or more ports that the policy is enforced for.</p>
*/
inline VirtualGatewayClientPolicyTls& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
/**
* <p>A reference to an object that represents a TLS validation context.</p>
*/
inline const VirtualGatewayTlsValidationContext& GetValidation() const{ return m_validation; }
/**
* <p>A reference to an object that represents a TLS validation context.</p>
*/
inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; }
/**
* <p>A reference to an object that represents a TLS validation context.</p>
*/
inline void SetValidation(const VirtualGatewayTlsValidationContext& value) { m_validationHasBeenSet = true; m_validation = value; }
/**
* <p>A reference to an object that represents a TLS validation context.</p>
*/
inline void SetValidation(VirtualGatewayTlsValidationContext&& value) { m_validationHasBeenSet = true; m_validation = std::move(value); }
/**
* <p>A reference to an object that represents a TLS validation context.</p>
*/
inline VirtualGatewayClientPolicyTls& WithValidation(const VirtualGatewayTlsValidationContext& value) { SetValidation(value); return *this;}
/**
* <p>A reference to an object that represents a TLS validation context.</p>
*/
inline VirtualGatewayClientPolicyTls& WithValidation(VirtualGatewayTlsValidationContext&& value) { SetValidation(std::move(value)); return *this;}
private:
bool m_enforce;
bool m_enforceHasBeenSet;
Aws::Vector<int> m_ports;
bool m_portsHasBeenSet;
VirtualGatewayTlsValidationContext m_validation;
bool m_validationHasBeenSet;
};
} // namespace Model
} // namespace AppMesh
} // namespace Aws