/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents a virtual service backend for a virtual
* node.See Also:
AWS
* API Reference
A reference to an object that represents the client policy for a backend.
*/ inline const ClientPolicy& GetClientPolicy() const{ return m_clientPolicy; } /** *A reference to an object that represents the client policy for a backend.
*/ inline bool ClientPolicyHasBeenSet() const { return m_clientPolicyHasBeenSet; } /** *A reference to an object that represents the client policy for a backend.
*/ inline void SetClientPolicy(const ClientPolicy& value) { m_clientPolicyHasBeenSet = true; m_clientPolicy = value; } /** *A reference to an object that represents the client policy for a backend.
*/ inline void SetClientPolicy(ClientPolicy&& value) { m_clientPolicyHasBeenSet = true; m_clientPolicy = std::move(value); } /** *A reference to an object that represents the client policy for a backend.
*/ inline VirtualServiceBackend& WithClientPolicy(const ClientPolicy& value) { SetClientPolicy(value); return *this;} /** *A reference to an object that represents the client policy for a backend.
*/ inline VirtualServiceBackend& WithClientPolicy(ClientPolicy&& value) { SetClientPolicy(std::move(value)); return *this;} /** *The name of the virtual service that is acting as a virtual node backend.
*/ inline const Aws::String& GetVirtualServiceName() const{ return m_virtualServiceName; } /** *The name of the virtual service that is acting as a virtual node backend.
*/ inline bool VirtualServiceNameHasBeenSet() const { return m_virtualServiceNameHasBeenSet; } /** *The name of the virtual service that is acting as a virtual node backend.
*/ inline void SetVirtualServiceName(const Aws::String& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = value; } /** *The name of the virtual service that is acting as a virtual node backend.
*/ inline void SetVirtualServiceName(Aws::String&& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = std::move(value); } /** *The name of the virtual service that is acting as a virtual node backend.
*/ inline void SetVirtualServiceName(const char* value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName.assign(value); } /** *The name of the virtual service that is acting as a virtual node backend.
*/ inline VirtualServiceBackend& WithVirtualServiceName(const Aws::String& value) { SetVirtualServiceName(value); return *this;} /** *The name of the virtual service that is acting as a virtual node backend.
*/ inline VirtualServiceBackend& WithVirtualServiceName(Aws::String&& value) { SetVirtualServiceName(std::move(value)); return *this;} /** *The name of the virtual service that is acting as a virtual node backend.
*/ inline VirtualServiceBackend& WithVirtualServiceName(const char* value) { SetVirtualServiceName(value); return *this;} private: ClientPolicy m_clientPolicy; bool m_clientPolicyHasBeenSet = false; Aws::String m_virtualServiceName; bool m_virtualServiceNameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws