AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualServiceData.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/VirtualServiceSpec.h>
11#include <aws/appmesh/model/VirtualServiceStatus.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 VirtualServiceData();
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 VirtualServiceData& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
54 inline VirtualServiceData& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
55 inline VirtualServiceData& WithMeshName(const char* value) { SetMeshName(value); return *this;}
57
59
60 inline const ResourceMetadata& GetMetadata() const{ return m_metadata; }
61 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
62 inline void SetMetadata(const ResourceMetadata& value) { m_metadataHasBeenSet = true; m_metadata = value; }
63 inline void SetMetadata(ResourceMetadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
64 inline VirtualServiceData& WithMetadata(const ResourceMetadata& value) { SetMetadata(value); return *this;}
65 inline VirtualServiceData& WithMetadata(ResourceMetadata&& value) { SetMetadata(std::move(value)); return *this;}
67
69
72 inline const VirtualServiceSpec& GetSpec() const{ return m_spec; }
73 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
74 inline void SetSpec(const VirtualServiceSpec& value) { m_specHasBeenSet = true; m_spec = value; }
75 inline void SetSpec(VirtualServiceSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
76 inline VirtualServiceData& WithSpec(const VirtualServiceSpec& value) { SetSpec(value); return *this;}
77 inline VirtualServiceData& WithSpec(VirtualServiceSpec&& value) { SetSpec(std::move(value)); return *this;}
79
81
84 inline const VirtualServiceStatus& GetStatus() const{ return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(const VirtualServiceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
87 inline void SetStatus(VirtualServiceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
88 inline VirtualServiceData& WithStatus(const VirtualServiceStatus& value) { SetStatus(value); return *this;}
89 inline VirtualServiceData& WithStatus(VirtualServiceStatus&& value) { SetStatus(std::move(value)); return *this;}
91
93
96 inline const Aws::String& GetVirtualServiceName() const{ return m_virtualServiceName; }
97 inline bool VirtualServiceNameHasBeenSet() const { return m_virtualServiceNameHasBeenSet; }
98 inline void SetVirtualServiceName(const Aws::String& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = value; }
99 inline void SetVirtualServiceName(Aws::String&& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = std::move(value); }
100 inline void SetVirtualServiceName(const char* value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName.assign(value); }
101 inline VirtualServiceData& WithVirtualServiceName(const Aws::String& value) { SetVirtualServiceName(value); return *this;}
102 inline VirtualServiceData& WithVirtualServiceName(Aws::String&& value) { SetVirtualServiceName(std::move(value)); return *this;}
103 inline VirtualServiceData& WithVirtualServiceName(const char* value) { SetVirtualServiceName(value); return *this;}
105 private:
106
107 Aws::String m_meshName;
108 bool m_meshNameHasBeenSet = false;
109
110 ResourceMetadata m_metadata;
111 bool m_metadataHasBeenSet = false;
112
113 VirtualServiceSpec m_spec;
114 bool m_specHasBeenSet = false;
115
116 VirtualServiceStatus m_status;
117 bool m_statusHasBeenSet = false;
118
119 Aws::String m_virtualServiceName;
120 bool m_virtualServiceNameHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace AppMesh
125} // namespace Aws
VirtualServiceData & WithMetadata(const ResourceMetadata &value)
const Aws::String & GetVirtualServiceName() const
VirtualServiceData & WithMeshName(Aws::String &&value)
void SetVirtualServiceName(Aws::String &&value)
VirtualServiceData & WithMeshName(const Aws::String &value)
void SetSpec(const VirtualServiceSpec &value)
void SetMetadata(const ResourceMetadata &value)
void SetMetadata(ResourceMetadata &&value)
VirtualServiceData & WithVirtualServiceName(const char *value)
const VirtualServiceStatus & GetStatus() const
VirtualServiceData & WithMetadata(ResourceMetadata &&value)
AWS_APPMESH_API VirtualServiceData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API VirtualServiceData(Aws::Utils::Json::JsonView jsonValue)
VirtualServiceData & WithSpec(const VirtualServiceSpec &value)
void SetMeshName(const Aws::String &value)
const ResourceMetadata & GetMetadata() const
VirtualServiceData & WithVirtualServiceName(Aws::String &&value)
const VirtualServiceSpec & GetSpec() const
void SetVirtualServiceName(const Aws::String &value)
const Aws::String & GetMeshName() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSpec(VirtualServiceSpec &&value)
void SetStatus(VirtualServiceStatus &&value)
void SetStatus(const VirtualServiceStatus &value)
VirtualServiceData & WithSpec(VirtualServiceSpec &&value)
VirtualServiceData & WithStatus(VirtualServiceStatus &&value)
VirtualServiceData & WithStatus(const VirtualServiceStatus &value)
VirtualServiceData & WithVirtualServiceName(const Aws::String &value)
VirtualServiceData & WithMeshName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue