/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppMesh { namespace Model { /** *

An object that represents the default properties for a backend.

See * Also:

AWS * API Reference

*/ class VirtualGatewayBackendDefaults { public: AWS_APPMESH_API VirtualGatewayBackendDefaults(); AWS_APPMESH_API VirtualGatewayBackendDefaults(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API VirtualGatewayBackendDefaults& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A reference to an object that represents a client policy.

*/ inline const VirtualGatewayClientPolicy& GetClientPolicy() const{ return m_clientPolicy; } /** *

A reference to an object that represents a client policy.

*/ inline bool ClientPolicyHasBeenSet() const { return m_clientPolicyHasBeenSet; } /** *

A reference to an object that represents a client policy.

*/ inline void SetClientPolicy(const VirtualGatewayClientPolicy& value) { m_clientPolicyHasBeenSet = true; m_clientPolicy = value; } /** *

A reference to an object that represents a client policy.

*/ inline void SetClientPolicy(VirtualGatewayClientPolicy&& value) { m_clientPolicyHasBeenSet = true; m_clientPolicy = std::move(value); } /** *

A reference to an object that represents a client policy.

*/ inline VirtualGatewayBackendDefaults& WithClientPolicy(const VirtualGatewayClientPolicy& value) { SetClientPolicy(value); return *this;} /** *

A reference to an object that represents a client policy.

*/ inline VirtualGatewayBackendDefaults& WithClientPolicy(VirtualGatewayClientPolicy&& value) { SetClientPolicy(std::move(value)); return *this;} private: VirtualGatewayClientPolicy m_clientPolicy; bool m_clientPolicyHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws