AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-firewall/model/AttachmentStatus.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 NetworkFirewall
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_NETWORKFIREWALL_API Attachment();
38 AWS_NETWORKFIREWALL_API Attachment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
49 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
50 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
51 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
52 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
53 inline Attachment& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
54 inline Attachment& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
55 inline Attachment& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
57
59
65 inline const Aws::String& GetEndpointId() const{ return m_endpointId; }
66 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
67 inline void SetEndpointId(const Aws::String& value) { m_endpointIdHasBeenSet = true; m_endpointId = value; }
68 inline void SetEndpointId(Aws::String&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::move(value); }
69 inline void SetEndpointId(const char* value) { m_endpointIdHasBeenSet = true; m_endpointId.assign(value); }
70 inline Attachment& WithEndpointId(const Aws::String& value) { SetEndpointId(value); return *this;}
71 inline Attachment& WithEndpointId(Aws::String&& value) { SetEndpointId(std::move(value)); return *this;}
72 inline Attachment& WithEndpointId(const char* value) { SetEndpointId(value); return *this;}
74
76
85 inline const AttachmentStatus& GetStatus() const{ return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
88 inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
89 inline Attachment& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
90 inline Attachment& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
92
94
106 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
107 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
108 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
109 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
110 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
111 inline Attachment& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
112 inline Attachment& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
113 inline Attachment& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
115 private:
116
117 Aws::String m_subnetId;
118 bool m_subnetIdHasBeenSet = false;
119
120 Aws::String m_endpointId;
121 bool m_endpointIdHasBeenSet = false;
122
123 AttachmentStatus m_status;
124 bool m_statusHasBeenSet = false;
125
126 Aws::String m_statusMessage;
127 bool m_statusMessageHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace NetworkFirewall
132} // namespace Aws
Attachment & WithEndpointId(const Aws::String &value)
Definition Attachment.h:70
Attachment & WithStatusMessage(const Aws::String &value)
Definition Attachment.h:111
Attachment & WithSubnetId(const Aws::String &value)
Definition Attachment.h:53
void SetStatusMessage(const Aws::String &value)
Definition Attachment.h:108
void SetStatus(AttachmentStatus &&value)
Definition Attachment.h:88
void SetSubnetId(Aws::String &&value)
Definition Attachment.h:51
void SetEndpointId(const Aws::String &value)
Definition Attachment.h:67
Attachment & WithStatusMessage(Aws::String &&value)
Definition Attachment.h:112
Attachment & WithSubnetId(Aws::String &&value)
Definition Attachment.h:54
void SetSubnetId(const Aws::String &value)
Definition Attachment.h:50
void SetStatusMessage(const char *value)
Definition Attachment.h:110
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithSubnetId(const char *value)
Definition Attachment.h:55
const Aws::String & GetStatusMessage() const
Definition Attachment.h:106
const Aws::String & GetSubnetId() const
Definition Attachment.h:48
Attachment & WithStatus(AttachmentStatus &&value)
Definition Attachment.h:90
void SetEndpointId(const char *value)
Definition Attachment.h:69
Attachment & WithEndpointId(Aws::String &&value)
Definition Attachment.h:71
void SetEndpointId(Aws::String &&value)
Definition Attachment.h:68
const Aws::String & GetEndpointId() const
Definition Attachment.h:65
void SetSubnetId(const char *value)
Definition Attachment.h:52
AWS_NETWORKFIREWALL_API Attachment()
void SetStatus(const AttachmentStatus &value)
Definition Attachment.h:87
AWS_NETWORKFIREWALL_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
const AttachmentStatus & GetStatus() const
Definition Attachment.h:85
Attachment & WithStatusMessage(const char *value)
Definition Attachment.h:113
Attachment & WithEndpointId(const char *value)
Definition Attachment.h:72
AWS_NETWORKFIREWALL_API Attachment(Aws::Utils::Json::JsonView jsonValue)
void SetStatusMessage(Aws::String &&value)
Definition Attachment.h:109
Attachment & WithStatus(const AttachmentStatus &value)
Definition Attachment.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue