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/core/utils/memory/stl/AWSString.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 path to rewrite.</p><p><h3>See Also:</h3>   <a
28    * href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/HttpGatewayRoutePathRewrite">AWS
29    * API Reference</a></p>
30    */
31   class AWS_APPMESH_API HttpGatewayRoutePathRewrite
32   {
33   public:
34     HttpGatewayRoutePathRewrite();
35     HttpGatewayRoutePathRewrite(Aws::Utils::Json::JsonView jsonValue);
36     HttpGatewayRoutePathRewrite& operator=(Aws::Utils::Json::JsonView jsonValue);
37     Aws::Utils::Json::JsonValue Jsonize() const;
38 
39 
40     /**
41      * <p>The exact path to rewrite.</p>
42      */
GetExact()43     inline const Aws::String& GetExact() const{ return m_exact; }
44 
45     /**
46      * <p>The exact path to rewrite.</p>
47      */
ExactHasBeenSet()48     inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; }
49 
50     /**
51      * <p>The exact path to rewrite.</p>
52      */
SetExact(const Aws::String & value)53     inline void SetExact(const Aws::String& value) { m_exactHasBeenSet = true; m_exact = value; }
54 
55     /**
56      * <p>The exact path to rewrite.</p>
57      */
SetExact(Aws::String && value)58     inline void SetExact(Aws::String&& value) { m_exactHasBeenSet = true; m_exact = std::move(value); }
59 
60     /**
61      * <p>The exact path to rewrite.</p>
62      */
SetExact(const char * value)63     inline void SetExact(const char* value) { m_exactHasBeenSet = true; m_exact.assign(value); }
64 
65     /**
66      * <p>The exact path to rewrite.</p>
67      */
WithExact(const Aws::String & value)68     inline HttpGatewayRoutePathRewrite& WithExact(const Aws::String& value) { SetExact(value); return *this;}
69 
70     /**
71      * <p>The exact path to rewrite.</p>
72      */
WithExact(Aws::String && value)73     inline HttpGatewayRoutePathRewrite& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
74 
75     /**
76      * <p>The exact path to rewrite.</p>
77      */
WithExact(const char * value)78     inline HttpGatewayRoutePathRewrite& WithExact(const char* value) { SetExact(value); return *this;}
79 
80   private:
81 
82     Aws::String m_exact;
83     bool m_exactHasBeenSet;
84   };
85 
86 } // namespace Model
87 } // namespace AppMesh
88 } // namespace Aws
89