1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/appmesh/AppMesh_EXPORTS.h> 8 #include <aws/appmesh/model/GatewayRouteHostnameRewrite.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace AppMesh 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>An object that represents the gateway route to rewrite.</p><p><h3>See 28 * Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/GrpcGatewayRouteRewrite">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_APPMESH_API GrpcGatewayRouteRewrite 33 { 34 public: 35 GrpcGatewayRouteRewrite(); 36 GrpcGatewayRouteRewrite(Aws::Utils::Json::JsonView jsonValue); 37 GrpcGatewayRouteRewrite& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The host name of the gateway route to rewrite.</p> 43 */ GetHostname()44 inline const GatewayRouteHostnameRewrite& GetHostname() const{ return m_hostname; } 45 46 /** 47 * <p>The host name of the gateway route to rewrite.</p> 48 */ HostnameHasBeenSet()49 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } 50 51 /** 52 * <p>The host name of the gateway route to rewrite.</p> 53 */ SetHostname(const GatewayRouteHostnameRewrite & value)54 inline void SetHostname(const GatewayRouteHostnameRewrite& value) { m_hostnameHasBeenSet = true; m_hostname = value; } 55 56 /** 57 * <p>The host name of the gateway route to rewrite.</p> 58 */ SetHostname(GatewayRouteHostnameRewrite && value)59 inline void SetHostname(GatewayRouteHostnameRewrite&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } 60 61 /** 62 * <p>The host name of the gateway route to rewrite.</p> 63 */ WithHostname(const GatewayRouteHostnameRewrite & value)64 inline GrpcGatewayRouteRewrite& WithHostname(const GatewayRouteHostnameRewrite& value) { SetHostname(value); return *this;} 65 66 /** 67 * <p>The host name of the gateway route to rewrite.</p> 68 */ WithHostname(GatewayRouteHostnameRewrite && value)69 inline GrpcGatewayRouteRewrite& WithHostname(GatewayRouteHostnameRewrite&& value) { SetHostname(std::move(value)); return *this;} 70 71 private: 72 73 GatewayRouteHostnameRewrite m_hostname; 74 bool m_hostnameHasBeenSet; 75 }; 76 77 } // namespace Model 78 } // namespace AppMesh 79 } // namespace Aws 80