/** * 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 gateway route to rewrite.

See * Also:

AWS * API Reference

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

The host name of the gateway route to rewrite.

*/ inline const GatewayRouteHostnameRewrite& GetHostname() const{ return m_hostname; } /** *

The host name of the gateway route to rewrite.

*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *

The host name of the gateway route to rewrite.

*/ inline void SetHostname(const GatewayRouteHostnameRewrite& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *

The host name of the gateway route to rewrite.

*/ inline void SetHostname(GatewayRouteHostnameRewrite&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *

The host name of the gateway route to rewrite.

*/ inline GrpcGatewayRouteRewrite& WithHostname(const GatewayRouteHostnameRewrite& value) { SetHostname(value); return *this;} /** *

The host name of the gateway route to rewrite.

*/ inline GrpcGatewayRouteRewrite& WithHostname(GatewayRouteHostnameRewrite&& value) { SetHostname(std::move(value)); return *this;} private: GatewayRouteHostnameRewrite m_hostname; bool m_hostnameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws