AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MeshSpec.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/EgressFilter.h>
9#include <aws/appmesh/model/MeshServiceDiscovery.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API MeshSpec();
37 AWS_APPMESH_API MeshSpec(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPMESH_API MeshSpec& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const EgressFilter& GetEgressFilter() const{ return m_egressFilter; }
47 inline bool EgressFilterHasBeenSet() const { return m_egressFilterHasBeenSet; }
48 inline void SetEgressFilter(const EgressFilter& value) { m_egressFilterHasBeenSet = true; m_egressFilter = value; }
49 inline void SetEgressFilter(EgressFilter&& value) { m_egressFilterHasBeenSet = true; m_egressFilter = std::move(value); }
50 inline MeshSpec& WithEgressFilter(const EgressFilter& value) { SetEgressFilter(value); return *this;}
51 inline MeshSpec& WithEgressFilter(EgressFilter&& value) { SetEgressFilter(std::move(value)); return *this;}
53
55
56 inline const MeshServiceDiscovery& GetServiceDiscovery() const{ return m_serviceDiscovery; }
57 inline bool ServiceDiscoveryHasBeenSet() const { return m_serviceDiscoveryHasBeenSet; }
58 inline void SetServiceDiscovery(const MeshServiceDiscovery& value) { m_serviceDiscoveryHasBeenSet = true; m_serviceDiscovery = value; }
59 inline void SetServiceDiscovery(MeshServiceDiscovery&& value) { m_serviceDiscoveryHasBeenSet = true; m_serviceDiscovery = std::move(value); }
60 inline MeshSpec& WithServiceDiscovery(const MeshServiceDiscovery& value) { SetServiceDiscovery(value); return *this;}
61 inline MeshSpec& WithServiceDiscovery(MeshServiceDiscovery&& value) { SetServiceDiscovery(std::move(value)); return *this;}
63 private:
64
65 EgressFilter m_egressFilter;
66 bool m_egressFilterHasBeenSet = false;
67
68 MeshServiceDiscovery m_serviceDiscovery;
69 bool m_serviceDiscoveryHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace AppMesh
74} // namespace Aws
void SetEgressFilter(const EgressFilter &value)
Definition MeshSpec.h:48
AWS_APPMESH_API MeshSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ServiceDiscoveryHasBeenSet() const
Definition MeshSpec.h:57
MeshSpec & WithEgressFilter(const EgressFilter &value)
Definition MeshSpec.h:50
bool EgressFilterHasBeenSet() const
Definition MeshSpec.h:47
AWS_APPMESH_API MeshSpec(Aws::Utils::Json::JsonView jsonValue)
void SetEgressFilter(EgressFilter &&value)
Definition MeshSpec.h:49
MeshSpec & WithServiceDiscovery(const MeshServiceDiscovery &value)
Definition MeshSpec.h:60
void SetServiceDiscovery(const MeshServiceDiscovery &value)
Definition MeshSpec.h:58
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const EgressFilter & GetEgressFilter() const
Definition MeshSpec.h:46
const MeshServiceDiscovery & GetServiceDiscovery() const
Definition MeshSpec.h:56
MeshSpec & WithEgressFilter(EgressFilter &&value)
Definition MeshSpec.h:51
MeshSpec & WithServiceDiscovery(MeshServiceDiscovery &&value)
Definition MeshSpec.h:61
void SetServiceDiscovery(MeshServiceDiscovery &&value)
Definition MeshSpec.h:59
AWS_APPMESH_API MeshSpec()
Aws::Utils::Json::JsonValue JsonValue