AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ContextEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkManager {
20namespace Model {
21
30 public:
31 AWS_NETWORKMANAGER_API ContextEntry() = default;
32 AWS_NETWORKMANAGER_API ContextEntry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKMANAGER_API ContextEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetContextId() const { return m_contextId; }
41 inline bool ContextIdHasBeenSet() const { return m_contextIdHasBeenSet; }
42 template <typename ContextIdT = Aws::String>
43 void SetContextId(ContextIdT&& value) {
44 m_contextIdHasBeenSet = true;
45 m_contextId = std::forward<ContextIdT>(value);
46 }
47 template <typename ContextIdT = Aws::String>
48 ContextEntry& WithContextId(ContextIdT&& value) {
49 SetContextId(std::forward<ContextIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetContextType() const { return m_contextType; }
60 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
61 template <typename ContextTypeT = Aws::String>
62 void SetContextType(ContextTypeT&& value) {
63 m_contextTypeHasBeenSet = true;
64 m_contextType = std::forward<ContextTypeT>(value);
65 }
66 template <typename ContextTypeT = Aws::String>
67 ContextEntry& WithContextType(ContextTypeT&& value) {
68 SetContextType(std::forward<ContextTypeT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetSegmentType() const { return m_segmentType; }
80 inline bool SegmentTypeHasBeenSet() const { return m_segmentTypeHasBeenSet; }
81 template <typename SegmentTypeT = Aws::String>
82 void SetSegmentType(SegmentTypeT&& value) {
83 m_segmentTypeHasBeenSet = true;
84 m_segmentType = std::forward<SegmentTypeT>(value);
85 }
86 template <typename SegmentTypeT = Aws::String>
87 ContextEntry& WithSegmentType(SegmentTypeT&& value) {
88 SetSegmentType(std::forward<SegmentTypeT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetPublicId() const { return m_publicId; }
99 inline bool PublicIdHasBeenSet() const { return m_publicIdHasBeenSet; }
100 template <typename PublicIdT = Aws::String>
101 void SetPublicId(PublicIdT&& value) {
102 m_publicIdHasBeenSet = true;
103 m_publicId = std::forward<PublicIdT>(value);
104 }
105 template <typename PublicIdT = Aws::String>
106 ContextEntry& WithPublicId(PublicIdT&& value) {
107 SetPublicId(std::forward<PublicIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetRegion() const { return m_region; }
117 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
118 template <typename RegionT = Aws::String>
119 void SetRegion(RegionT&& value) {
120 m_regionHasBeenSet = true;
121 m_region = std::forward<RegionT>(value);
122 }
123 template <typename RegionT = Aws::String>
124 ContextEntry& WithRegion(RegionT&& value) {
125 SetRegion(std::forward<RegionT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
137 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
138 template <typename AvailabilityZoneT = Aws::String>
139 void SetAvailabilityZone(AvailabilityZoneT&& value) {
140 m_availabilityZoneHasBeenSet = true;
141 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
142 }
143 template <typename AvailabilityZoneT = Aws::String>
144 ContextEntry& WithAvailabilityZone(AvailabilityZoneT&& value) {
145 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetAttachmentType() const { return m_attachmentType; }
156 inline bool AttachmentTypeHasBeenSet() const { return m_attachmentTypeHasBeenSet; }
157 template <typename AttachmentTypeT = Aws::String>
158 void SetAttachmentType(AttachmentTypeT&& value) {
159 m_attachmentTypeHasBeenSet = true;
160 m_attachmentType = std::forward<AttachmentTypeT>(value);
161 }
162 template <typename AttachmentTypeT = Aws::String>
163 ContextEntry& WithAttachmentType(AttachmentTypeT&& value) {
164 SetAttachmentType(std::forward<AttachmentTypeT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_contextId;
170
171 Aws::String m_contextType;
172
173 Aws::String m_segmentType;
174
175 Aws::String m_publicId;
176
177 Aws::String m_region;
178
179 Aws::String m_availabilityZone;
180
181 Aws::String m_attachmentType;
182 bool m_contextIdHasBeenSet = false;
183 bool m_contextTypeHasBeenSet = false;
184 bool m_segmentTypeHasBeenSet = false;
185 bool m_publicIdHasBeenSet = false;
186 bool m_regionHasBeenSet = false;
187 bool m_availabilityZoneHasBeenSet = false;
188 bool m_attachmentTypeHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace NetworkManager
193} // namespace Aws
const Aws::String & GetPublicId() const
const Aws::String & GetContextType() const
ContextEntry & WithContextType(ContextTypeT &&value)
bool ContextIdHasBeenSet() const
ContextEntry & WithAvailabilityZone(AvailabilityZoneT &&value)
ContextEntry & WithContextId(ContextIdT &&value)
void SetAttachmentType(AttachmentTypeT &&value)
AWS_NETWORKMANAGER_API ContextEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPublicId(PublicIdT &&value)
const Aws::String & GetAvailabilityZone() const
void SetContextType(ContextTypeT &&value)
void SetContextId(ContextIdT &&value)
const Aws::String & GetAttachmentType() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
ContextEntry & WithPublicId(PublicIdT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool PublicIdHasBeenSet() const
ContextEntry & WithRegion(RegionT &&value)
ContextEntry & WithSegmentType(SegmentTypeT &&value)
bool RegionHasBeenSet() const
const Aws::String & GetRegion() const
ContextEntry & WithAttachmentType(AttachmentTypeT &&value)
AWS_NETWORKMANAGER_API ContextEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSegmentType() const
void SetSegmentType(SegmentTypeT &&value)
bool AttachmentTypeHasBeenSet() const
const Aws::String & GetContextId() const
void SetRegion(RegionT &&value)
bool ContextTypeHasBeenSet() const
AWS_NETWORKMANAGER_API ContextEntry()=default
bool SegmentTypeHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue