AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Attachment.h
Go to the documentation of this file.
1
6#pragma once
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 NetworkFirewall
23{
24namespace Model
25{
26
35 {
36 public:
41
42
47 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
48
53 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
54
59 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
60
65 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
66
71 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
72
77 inline Attachment& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
78
83 inline Attachment& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
84
89 inline Attachment& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
90
91
98 inline const Aws::String& GetEndpointId() const{ return m_endpointId; }
99
106 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
107
114 inline void SetEndpointId(const Aws::String& value) { m_endpointIdHasBeenSet = true; m_endpointId = value; }
115
122 inline void SetEndpointId(Aws::String&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::move(value); }
123
130 inline void SetEndpointId(const char* value) { m_endpointIdHasBeenSet = true; m_endpointId.assign(value); }
131
138 inline Attachment& WithEndpointId(const Aws::String& value) { SetEndpointId(value); return *this;}
139
146 inline Attachment& WithEndpointId(Aws::String&& value) { SetEndpointId(std::move(value)); return *this;}
147
154 inline Attachment& WithEndpointId(const char* value) { SetEndpointId(value); return *this;}
155
156
166 inline const AttachmentStatus& GetStatus() const{ return m_status; }
167
177 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
178
188 inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
189
199 inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
200
210 inline Attachment& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
211
221 inline Attachment& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
222
223
234 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
235
246 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
247
258 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
259
270 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
271
282 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
283
294 inline Attachment& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
295
306 inline Attachment& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
307
318 inline Attachment& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
319
320 private:
321
322 Aws::String m_subnetId;
323 bool m_subnetIdHasBeenSet = false;
324
325 Aws::String m_endpointId;
326 bool m_endpointIdHasBeenSet = false;
327
328 AttachmentStatus m_status;
329 bool m_statusHasBeenSet = false;
330
331 Aws::String m_statusMessage;
332 bool m_statusMessageHasBeenSet = false;
333 };
334
335} // namespace Model
336} // namespace NetworkFirewall
337} // namespace Aws
#define AWS_NETWORKFIREWALL_API
Attachment & WithEndpointId(const Aws::String &value)
Definition: Attachment.h:138
Attachment & WithStatusMessage(const Aws::String &value)
Definition: Attachment.h:294
Attachment & WithSubnetId(const Aws::String &value)
Definition: Attachment.h:77
void SetStatusMessage(const Aws::String &value)
Definition: Attachment.h:258
void SetStatus(AttachmentStatus &&value)
Definition: Attachment.h:199
void SetSubnetId(Aws::String &&value)
Definition: Attachment.h:65
void SetEndpointId(const Aws::String &value)
Definition: Attachment.h:114
Attachment & WithStatusMessage(Aws::String &&value)
Definition: Attachment.h:306
Attachment & WithSubnetId(Aws::String &&value)
Definition: Attachment.h:83
void SetSubnetId(const Aws::String &value)
Definition: Attachment.h:59
void SetStatusMessage(const char *value)
Definition: Attachment.h:282
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithSubnetId(const char *value)
Definition: Attachment.h:89
const Aws::String & GetStatusMessage() const
Definition: Attachment.h:234
const Aws::String & GetSubnetId() const
Definition: Attachment.h:47
Attachment & WithStatus(AttachmentStatus &&value)
Definition: Attachment.h:221
void SetEndpointId(const char *value)
Definition: Attachment.h:130
Attachment & WithEndpointId(Aws::String &&value)
Definition: Attachment.h:146
void SetEndpointId(Aws::String &&value)
Definition: Attachment.h:122
const Aws::String & GetEndpointId() const
Definition: Attachment.h:98
void SetSubnetId(const char *value)
Definition: Attachment.h:71
AWS_NETWORKFIREWALL_API Attachment()
void SetStatus(const AttachmentStatus &value)
Definition: Attachment.h:188
AWS_NETWORKFIREWALL_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
const AttachmentStatus & GetStatus() const
Definition: Attachment.h:166
Attachment & WithStatusMessage(const char *value)
Definition: Attachment.h:318
Attachment & WithEndpointId(const char *value)
Definition: Attachment.h:154
AWS_NETWORKFIREWALL_API Attachment(Aws::Utils::Json::JsonView jsonValue)
void SetStatusMessage(Aws::String &&value)
Definition: Attachment.h:270
Attachment & WithStatus(const AttachmentStatus &value)
Definition: Attachment.h:210
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String