AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MeshData.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/MeshSpec.h>
11#include <aws/appmesh/model/MeshStatus.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 MeshData();
39 AWS_APPMESH_API MeshData(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMESH_API MeshData& 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 MeshData& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
54 inline MeshData& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
55 inline MeshData& 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 MeshData& WithMetadata(const ResourceMetadata& value) { SetMetadata(value); return *this;}
67 inline MeshData& WithMetadata(ResourceMetadata&& value) { SetMetadata(std::move(value)); return *this;}
69
71
74 inline const MeshSpec& GetSpec() const{ return m_spec; }
75 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
76 inline void SetSpec(const MeshSpec& value) { m_specHasBeenSet = true; m_spec = value; }
77 inline void SetSpec(MeshSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
78 inline MeshData& WithSpec(const MeshSpec& value) { SetSpec(value); return *this;}
79 inline MeshData& WithSpec(MeshSpec&& value) { SetSpec(std::move(value)); return *this;}
81
83
86 inline const MeshStatus& GetStatus() const{ return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(const MeshStatus& value) { m_statusHasBeenSet = true; m_status = value; }
89 inline void SetStatus(MeshStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
90 inline MeshData& WithStatus(const MeshStatus& value) { SetStatus(value); return *this;}
91 inline MeshData& WithStatus(MeshStatus&& value) { SetStatus(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_meshName;
96 bool m_meshNameHasBeenSet = false;
97
98 ResourceMetadata m_metadata;
99 bool m_metadataHasBeenSet = false;
100
101 MeshSpec m_spec;
102 bool m_specHasBeenSet = false;
103
104 MeshStatus m_status;
105 bool m_statusHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace AppMesh
110} // namespace Aws
void SetMetadata(ResourceMetadata &&value)
Definition MeshData.h:65
MeshData & WithMetadata(const ResourceMetadata &value)
Definition MeshData.h:66
MeshData & WithMetadata(ResourceMetadata &&value)
Definition MeshData.h:67
MeshData & WithMeshName(Aws::String &&value)
Definition MeshData.h:54
AWS_APPMESH_API MeshData(Aws::Utils::Json::JsonView jsonValue)
MeshData & WithStatus(MeshStatus &&value)
Definition MeshData.h:91
const Aws::String & GetMeshName() const
Definition MeshData.h:48
void SetMeshName(const char *value)
Definition MeshData.h:52
MeshData & WithSpec(const MeshSpec &value)
Definition MeshData.h:78
bool MetadataHasBeenSet() const
Definition MeshData.h:63
MeshData & WithMeshName(const char *value)
Definition MeshData.h:55
void SetMetadata(const ResourceMetadata &value)
Definition MeshData.h:64
void SetMeshName(Aws::String &&value)
Definition MeshData.h:51
MeshData & WithSpec(MeshSpec &&value)
Definition MeshData.h:79
MeshData & WithStatus(const MeshStatus &value)
Definition MeshData.h:90
const MeshStatus & GetStatus() const
Definition MeshData.h:86
const ResourceMetadata & GetMetadata() const
Definition MeshData.h:62
AWS_APPMESH_API MeshData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSpec(MeshSpec &&value)
Definition MeshData.h:77
void SetStatus(MeshStatus &&value)
Definition MeshData.h:89
bool MeshNameHasBeenSet() const
Definition MeshData.h:49
bool StatusHasBeenSet() const
Definition MeshData.h:87
MeshData & WithMeshName(const Aws::String &value)
Definition MeshData.h:53
void SetSpec(const MeshSpec &value)
Definition MeshData.h:76
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMeshName(const Aws::String &value)
Definition MeshData.h:50
void SetStatus(const MeshStatus &value)
Definition MeshData.h:88
AWS_APPMESH_API MeshData()
const MeshSpec & GetSpec() const
Definition MeshData.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue