AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
43 {
44 public:
45 AWS_NETWORKFIREWALL_API Attachment() = default;
46 AWS_NETWORKFIREWALL_API Attachment(Aws::Utils::Json::JsonView jsonValue);
47 AWS_NETWORKFIREWALL_API Attachment& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
57 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
58 template<typename SubnetIdT = Aws::String>
59 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
60 template<typename SubnetIdT = Aws::String>
61 Attachment& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
63
65
71 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
72 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
73 template<typename EndpointIdT = Aws::String>
74 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
75 template<typename EndpointIdT = Aws::String>
76 Attachment& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
78
80
86 inline AttachmentStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(AttachmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline Attachment& WithStatus(AttachmentStatus value) { SetStatus(value); return *this;}
91
93
105 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
106 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
107 template<typename StatusMessageT = Aws::String>
108 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
109 template<typename StatusMessageT = Aws::String>
110 Attachment& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
112 private:
113
114 Aws::String m_subnetId;
115 bool m_subnetIdHasBeenSet = false;
116
117 Aws::String m_endpointId;
118 bool m_endpointIdHasBeenSet = false;
119
121 bool m_statusHasBeenSet = false;
122
123 Aws::String m_statusMessage;
124 bool m_statusMessageHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace NetworkFirewall
129} // namespace Aws
void SetStatusMessage(StatusMessageT &&value)
Definition Attachment.h:108
Attachment & WithStatus(AttachmentStatus value)
Definition Attachment.h:89
Attachment & WithSubnetId(SubnetIdT &&value)
Definition Attachment.h:61
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
Attachment & WithEndpointId(EndpointIdT &&value)
Definition Attachment.h:76
const Aws::String & GetStatusMessage() const
Definition Attachment.h:105
void SetStatus(AttachmentStatus value)
Definition Attachment.h:88
const Aws::String & GetSubnetId() const
Definition Attachment.h:56
const Aws::String & GetEndpointId() const
Definition Attachment.h:71
void SetEndpointId(EndpointIdT &&value)
Definition Attachment.h:74
AWS_NETWORKFIREWALL_API Attachment()=default
AttachmentStatus GetStatus() const
Definition Attachment.h:86
Attachment & WithStatusMessage(StatusMessageT &&value)
Definition Attachment.h:110
AWS_NETWORKFIREWALL_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Attachment(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetId(SubnetIdT &&value)
Definition Attachment.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue