AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteData.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appmesh/model/ResourceMetadata.h>
10#include <aws/appmesh/model/RouteSpec.h>
11#include <aws/appmesh/model/RouteStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppMesh
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPMESH_API RouteData();
39 AWS_APPMESH_API RouteData(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMESH_API RouteData& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetMeshName() const{ return m_meshName; }
49 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
50 inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
51 inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
52 inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
53 inline RouteData& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
54 inline RouteData& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
55 inline RouteData& WithMeshName(const char* value) { SetMeshName(value); return *this;}
57
59
62 inline const ResourceMetadata& GetMetadata() const{ return m_metadata; }
63 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
64 inline void SetMetadata(const ResourceMetadata& value) { m_metadataHasBeenSet = true; m_metadata = value; }
65 inline void SetMetadata(ResourceMetadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
66 inline RouteData& WithMetadata(const ResourceMetadata& value) { SetMetadata(value); return *this;}
67 inline RouteData& WithMetadata(ResourceMetadata&& value) { SetMetadata(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetRouteName() const{ return m_routeName; }
75 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
76 inline void SetRouteName(const Aws::String& value) { m_routeNameHasBeenSet = true; m_routeName = value; }
77 inline void SetRouteName(Aws::String&& value) { m_routeNameHasBeenSet = true; m_routeName = std::move(value); }
78 inline void SetRouteName(const char* value) { m_routeNameHasBeenSet = true; m_routeName.assign(value); }
79 inline RouteData& WithRouteName(const Aws::String& value) { SetRouteName(value); return *this;}
80 inline RouteData& WithRouteName(Aws::String&& value) { SetRouteName(std::move(value)); return *this;}
81 inline RouteData& WithRouteName(const char* value) { SetRouteName(value); return *this;}
83
85
88 inline const RouteSpec& GetSpec() const{ return m_spec; }
89 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
90 inline void SetSpec(const RouteSpec& value) { m_specHasBeenSet = true; m_spec = value; }
91 inline void SetSpec(RouteSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
92 inline RouteData& WithSpec(const RouteSpec& value) { SetSpec(value); return *this;}
93 inline RouteData& WithSpec(RouteSpec&& value) { SetSpec(std::move(value)); return *this;}
95
97
100 inline const RouteStatus& GetStatus() const{ return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 inline void SetStatus(const RouteStatus& value) { m_statusHasBeenSet = true; m_status = value; }
103 inline void SetStatus(RouteStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
104 inline RouteData& WithStatus(const RouteStatus& value) { SetStatus(value); return *this;}
105 inline RouteData& WithStatus(RouteStatus&& value) { SetStatus(std::move(value)); return *this;}
107
109
112 inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; }
113 inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
114 inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; }
115 inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); }
116 inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); }
117 inline RouteData& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;}
118 inline RouteData& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;}
119 inline RouteData& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;}
121 private:
122
123 Aws::String m_meshName;
124 bool m_meshNameHasBeenSet = false;
125
126 ResourceMetadata m_metadata;
127 bool m_metadataHasBeenSet = false;
128
129 Aws::String m_routeName;
130 bool m_routeNameHasBeenSet = false;
131
132 RouteSpec m_spec;
133 bool m_specHasBeenSet = false;
134
135 RouteStatus m_status;
136 bool m_statusHasBeenSet = false;
137
138 Aws::String m_virtualRouterName;
139 bool m_virtualRouterNameHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace AppMesh
144} // namespace Aws
const Aws::String & GetVirtualRouterName() const
Definition RouteData.h:112
RouteData & WithRouteName(const Aws::String &value)
Definition RouteData.h:79
AWS_APPMESH_API RouteData & operator=(Aws::Utils::Json::JsonView jsonValue)
const RouteStatus & GetStatus() const
Definition RouteData.h:100
void SetStatus(const RouteStatus &value)
Definition RouteData.h:102
void SetMetadata(ResourceMetadata &&value)
Definition RouteData.h:65
void SetRouteName(Aws::String &&value)
Definition RouteData.h:77
RouteData & WithRouteName(const char *value)
Definition RouteData.h:81
void SetVirtualRouterName(Aws::String &&value)
Definition RouteData.h:115
void SetStatus(RouteStatus &&value)
Definition RouteData.h:103
RouteData & WithMetadata(const ResourceMetadata &value)
Definition RouteData.h:66
const RouteSpec & GetSpec() const
Definition RouteData.h:88
RouteData & WithMeshName(const char *value)
Definition RouteData.h:55
void SetMeshName(const Aws::String &value)
Definition RouteData.h:50
RouteData & WithMeshName(const Aws::String &value)
Definition RouteData.h:53
RouteData & WithVirtualRouterName(const char *value)
Definition RouteData.h:119
RouteData & WithSpec(const RouteSpec &value)
Definition RouteData.h:92
void SetMetadata(const ResourceMetadata &value)
Definition RouteData.h:64
RouteData & WithMetadata(ResourceMetadata &&value)
Definition RouteData.h:67
bool VirtualRouterNameHasBeenSet() const
Definition RouteData.h:113
RouteData & WithMeshName(Aws::String &&value)
Definition RouteData.h:54
const ResourceMetadata & GetMetadata() const
Definition RouteData.h:62
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMeshName() const
Definition RouteData.h:48
RouteData & WithRouteName(Aws::String &&value)
Definition RouteData.h:80
void SetMeshName(Aws::String &&value)
Definition RouteData.h:51
AWS_APPMESH_API RouteData(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRouteName() const
Definition RouteData.h:74
void SetRouteName(const char *value)
Definition RouteData.h:78
void SetVirtualRouterName(const char *value)
Definition RouteData.h:116
void SetMeshName(const char *value)
Definition RouteData.h:52
void SetSpec(RouteSpec &&value)
Definition RouteData.h:91
RouteData & WithSpec(RouteSpec &&value)
Definition RouteData.h:93
RouteData & WithVirtualRouterName(Aws::String &&value)
Definition RouteData.h:118
void SetSpec(const RouteSpec &value)
Definition RouteData.h:90
RouteData & WithStatus(RouteStatus &&value)
Definition RouteData.h:105
RouteData & WithStatus(const RouteStatus &value)
Definition RouteData.h:104
void SetVirtualRouterName(const Aws::String &value)
Definition RouteData.h:114
RouteData & WithVirtualRouterName(const Aws::String &value)
Definition RouteData.h:117
void SetRouteName(const Aws::String &value)
Definition RouteData.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue