AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename MeshNameT = Aws::String>
51 void SetMeshName(MeshNameT&& value) { m_meshNameHasBeenSet = true; m_meshName = std::forward<MeshNameT>(value); }
52 template<typename MeshNameT = Aws::String>
53 MeshData& WithMeshName(MeshNameT&& value) { SetMeshName(std::forward<MeshNameT>(value)); return *this;}
55
57
60 inline const ResourceMetadata& GetMetadata() const { return m_metadata; }
61 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
62 template<typename MetadataT = ResourceMetadata>
63 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
64 template<typename MetadataT = ResourceMetadata>
65 MeshData& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
67
69
72 inline const MeshSpec& GetSpec() const { return m_spec; }
73 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
74 template<typename SpecT = MeshSpec>
75 void SetSpec(SpecT&& value) { m_specHasBeenSet = true; m_spec = std::forward<SpecT>(value); }
76 template<typename SpecT = MeshSpec>
77 MeshData& WithSpec(SpecT&& value) { SetSpec(std::forward<SpecT>(value)); return *this;}
79
81
84 inline const MeshStatus& GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 template<typename StatusT = MeshStatus>
87 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
88 template<typename StatusT = MeshStatus>
89 MeshData& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
91 private:
92
93 Aws::String m_meshName;
94 bool m_meshNameHasBeenSet = false;
95
96 ResourceMetadata m_metadata;
97 bool m_metadataHasBeenSet = false;
98
99 MeshSpec m_spec;
100 bool m_specHasBeenSet = false;
101
102 MeshStatus m_status;
103 bool m_statusHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace AppMesh
108} // namespace Aws
void SetSpec(SpecT &&value)
Definition MeshData.h:75
MeshData & WithMeshName(MeshNameT &&value)
Definition MeshData.h:53
MeshData & WithStatus(StatusT &&value)
Definition MeshData.h:89
MeshData & WithMetadata(MetadataT &&value)
Definition MeshData.h:65
AWS_APPMESH_API MeshData(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMeshName() const
Definition MeshData.h:48
bool MetadataHasBeenSet() const
Definition MeshData.h:61
AWS_APPMESH_API MeshData()=default
void SetMetadata(MetadataT &&value)
Definition MeshData.h:63
void SetMeshName(MeshNameT &&value)
Definition MeshData.h:51
const MeshStatus & GetStatus() const
Definition MeshData.h:84
void SetStatus(StatusT &&value)
Definition MeshData.h:87
const ResourceMetadata & GetMetadata() const
Definition MeshData.h:60
AWS_APPMESH_API MeshData & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MeshNameHasBeenSet() const
Definition MeshData.h:49
bool StatusHasBeenSet() const
Definition MeshData.h:85
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
MeshData & WithSpec(SpecT &&value)
Definition MeshData.h:77
const MeshSpec & GetSpec() const
Definition MeshData.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue