AWS SDK for C++  1.9.123
AWS SDK for C++
HttpGatewayRoutePrefixRewrite.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const DefaultGatewayRouteRewrite& GetDefaultPrefix() const{ return m_defaultPrefix; }
47 
52  inline bool DefaultPrefixHasBeenSet() const { return m_defaultPrefixHasBeenSet; }
53 
58  inline void SetDefaultPrefix(const DefaultGatewayRouteRewrite& value) { m_defaultPrefixHasBeenSet = true; m_defaultPrefix = value; }
59 
64  inline void SetDefaultPrefix(DefaultGatewayRouteRewrite&& value) { m_defaultPrefixHasBeenSet = true; m_defaultPrefix = std::move(value); }
65 
70  inline HttpGatewayRoutePrefixRewrite& WithDefaultPrefix(const DefaultGatewayRouteRewrite& value) { SetDefaultPrefix(value); return *this;}
71 
76  inline HttpGatewayRoutePrefixRewrite& WithDefaultPrefix(DefaultGatewayRouteRewrite&& value) { SetDefaultPrefix(std::move(value)); return *this;}
77 
78 
82  inline const Aws::String& GetValue() const{ return m_value; }
83 
87  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
88 
92  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
93 
97  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
98 
102  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
103 
107  inline HttpGatewayRoutePrefixRewrite& WithValue(const Aws::String& value) { SetValue(value); return *this;}
108 
112  inline HttpGatewayRoutePrefixRewrite& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
113 
117  inline HttpGatewayRoutePrefixRewrite& WithValue(const char* value) { SetValue(value); return *this;}
118 
119  private:
120 
121  DefaultGatewayRouteRewrite m_defaultPrefix;
122  bool m_defaultPrefixHasBeenSet;
123 
124  Aws::String m_value;
125  bool m_valueHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace AppMesh
130 } // namespace Aws
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::SetDefaultPrefix
void SetDefaultPrefix(DefaultGatewayRouteRewrite &&value)
Definition: HttpGatewayRoutePrefixRewrite.h:64
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite
Definition: HttpGatewayRoutePrefixRewrite.h:34
Aws::AppMesh::Model::DefaultGatewayRouteRewrite
DefaultGatewayRouteRewrite
Definition: DefaultGatewayRouteRewrite.h:17
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::WithDefaultPrefix
HttpGatewayRoutePrefixRewrite & WithDefaultPrefix(DefaultGatewayRouteRewrite &&value)
Definition: HttpGatewayRoutePrefixRewrite.h:76
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::GetDefaultPrefix
const DefaultGatewayRouteRewrite & GetDefaultPrefix() const
Definition: HttpGatewayRoutePrefixRewrite.h:46
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::DefaultPrefixHasBeenSet
bool DefaultPrefixHasBeenSet() const
Definition: HttpGatewayRoutePrefixRewrite.h:52
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::GetValue
const Aws::String & GetValue() const
Definition: HttpGatewayRoutePrefixRewrite.h:82
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::SetValue
void SetValue(Aws::String &&value)
Definition: HttpGatewayRoutePrefixRewrite.h:97
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::WithDefaultPrefix
HttpGatewayRoutePrefixRewrite & WithDefaultPrefix(const DefaultGatewayRouteRewrite &value)
Definition: HttpGatewayRoutePrefixRewrite.h:70
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::SetDefaultPrefix
void SetDefaultPrefix(const DefaultGatewayRouteRewrite &value)
Definition: HttpGatewayRoutePrefixRewrite.h:58
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::HttpGatewayRoutePrefixRewrite
HttpGatewayRoutePrefixRewrite()
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::WithValue
HttpGatewayRoutePrefixRewrite & WithValue(Aws::String &&value)
Definition: HttpGatewayRoutePrefixRewrite.h:112
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::WithValue
HttpGatewayRoutePrefixRewrite & WithValue(const char *value)
Definition: HttpGatewayRoutePrefixRewrite.h:117
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::HttpGatewayRoutePrefixRewrite
HttpGatewayRoutePrefixRewrite(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: HttpGatewayRoutePrefixRewrite.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::SetValue
void SetValue(const char *value)
Definition: HttpGatewayRoutePrefixRewrite.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::WithValue
HttpGatewayRoutePrefixRewrite & WithValue(const Aws::String &value)
Definition: HttpGatewayRoutePrefixRewrite.h:107
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::SetValue
void SetValue(const Aws::String &value)
Definition: HttpGatewayRoutePrefixRewrite.h:92
DefaultGatewayRouteRewrite.h
Aws::AppMesh::Model::HttpGatewayRoutePrefixRewrite::operator=
HttpGatewayRoutePrefixRewrite & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28