AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
MeshRef.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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
33 class MeshRef
34 {
35 public:
36 AWS_APPMESH_API MeshRef() = default;
37 AWS_APPMESH_API MeshRef(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPMESH_API MeshRef& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 MeshRef& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
53
55
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
60 template<typename CreatedAtT = Aws::Utils::DateTime>
61 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
62 template<typename CreatedAtT = Aws::Utils::DateTime>
63 MeshRef& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
65
67
71 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
72 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
73 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
74 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
75 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
76 MeshRef& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
78
80
83 inline const Aws::String& GetMeshName() const { return m_meshName; }
84 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
85 template<typename MeshNameT = Aws::String>
86 void SetMeshName(MeshNameT&& value) { m_meshNameHasBeenSet = true; m_meshName = std::forward<MeshNameT>(value); }
87 template<typename MeshNameT = Aws::String>
88 MeshRef& WithMeshName(MeshNameT&& value) { SetMeshName(std::forward<MeshNameT>(value)); return *this;}
90
92
99 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
100 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
101 template<typename MeshOwnerT = Aws::String>
102 void SetMeshOwner(MeshOwnerT&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::forward<MeshOwnerT>(value); }
103 template<typename MeshOwnerT = Aws::String>
104 MeshRef& WithMeshOwner(MeshOwnerT&& value) { SetMeshOwner(std::forward<MeshOwnerT>(value)); return *this;}
106
108
115 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
116 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
117 template<typename ResourceOwnerT = Aws::String>
118 void SetResourceOwner(ResourceOwnerT&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::forward<ResourceOwnerT>(value); }
119 template<typename ResourceOwnerT = Aws::String>
120 MeshRef& WithResourceOwner(ResourceOwnerT&& value) { SetResourceOwner(std::forward<ResourceOwnerT>(value)); return *this;}
122
124
128 inline long long GetVersion() const { return m_version; }
129 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
130 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
131 inline MeshRef& WithVersion(long long value) { SetVersion(value); return *this;}
133 private:
134
135 Aws::String m_arn;
136 bool m_arnHasBeenSet = false;
137
138 Aws::Utils::DateTime m_createdAt{};
139 bool m_createdAtHasBeenSet = false;
140
141 Aws::Utils::DateTime m_lastUpdatedAt{};
142 bool m_lastUpdatedAtHasBeenSet = false;
143
144 Aws::String m_meshName;
145 bool m_meshNameHasBeenSet = false;
146
147 Aws::String m_meshOwner;
148 bool m_meshOwnerHasBeenSet = false;
149
150 Aws::String m_resourceOwner;
151 bool m_resourceOwnerHasBeenSet = false;
152
153 long long m_version{0};
154 bool m_versionHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace AppMesh
159} // namespace Aws
const Aws::String & GetArn() const
Definition MeshRef.h:46
void SetMeshOwner(MeshOwnerT &&value)
Definition MeshRef.h:102
MeshRef & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition MeshRef.h:76
void SetMeshName(MeshNameT &&value)
Definition MeshRef.h:86
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition MeshRef.h:74
MeshRef & WithVersion(long long value)
Definition MeshRef.h:131
const Aws::String & GetMeshName() const
Definition MeshRef.h:83
long long GetVersion() const
Definition MeshRef.h:128
AWS_APPMESH_API MeshRef(Aws::Utils::Json::JsonView jsonValue)
void SetResourceOwner(ResourceOwnerT &&value)
Definition MeshRef.h:118
MeshRef & WithResourceOwner(ResourceOwnerT &&value)
Definition MeshRef.h:120
bool LastUpdatedAtHasBeenSet() const
Definition MeshRef.h:72
MeshRef & WithCreatedAt(CreatedAtT &&value)
Definition MeshRef.h:63
const Aws::Utils::DateTime & GetCreatedAt() const
Definition MeshRef.h:58
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedAtHasBeenSet() const
Definition MeshRef.h:59
AWS_APPMESH_API MeshRef & operator=(Aws::Utils::Json::JsonView jsonValue)
MeshRef & WithMeshName(MeshNameT &&value)
Definition MeshRef.h:88
MeshRef & WithMeshOwner(MeshOwnerT &&value)
Definition MeshRef.h:104
bool MeshNameHasBeenSet() const
Definition MeshRef.h:84
void SetCreatedAt(CreatedAtT &&value)
Definition MeshRef.h:61
void SetVersion(long long value)
Definition MeshRef.h:130
MeshRef & WithArn(ArnT &&value)
Definition MeshRef.h:51
void SetArn(ArnT &&value)
Definition MeshRef.h:49
bool ArnHasBeenSet() const
Definition MeshRef.h:47
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition MeshRef.h:71
const Aws::String & GetMeshOwner() const
Definition MeshRef.h:99
bool ResourceOwnerHasBeenSet() const
Definition MeshRef.h:116
bool MeshOwnerHasBeenSet() const
Definition MeshRef.h:100
AWS_APPMESH_API MeshRef()=default
bool VersionHasBeenSet() const
Definition MeshRef.h:129
const Aws::String & GetResourceOwner() const
Definition MeshRef.h:115
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue