AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TransitGatewayAttachmentSyncState.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/TransitGatewayAttachmentStatus.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
36 {
37 public:
38 AWS_NETWORKFIREWALL_API TransitGatewayAttachmentSyncState() = default;
41 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
49 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
50 template<typename AttachmentIdT = Aws::String>
51 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
52 template<typename AttachmentIdT = Aws::String>
53 TransitGatewayAttachmentSyncState& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
55
57
71 inline TransitGatewayAttachmentStatus GetTransitGatewayAttachmentStatus() const { return m_transitGatewayAttachmentStatus; }
72 inline bool TransitGatewayAttachmentStatusHasBeenSet() const { return m_transitGatewayAttachmentStatusHasBeenSet; }
73 inline void SetTransitGatewayAttachmentStatus(TransitGatewayAttachmentStatus value) { m_transitGatewayAttachmentStatusHasBeenSet = true; m_transitGatewayAttachmentStatus = value; }
76
78
98 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
99 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
100 template<typename StatusMessageT = Aws::String>
101 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
102 template<typename StatusMessageT = Aws::String>
103 TransitGatewayAttachmentSyncState& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
105 private:
106
107 Aws::String m_attachmentId;
108 bool m_attachmentIdHasBeenSet = false;
109
111 bool m_transitGatewayAttachmentStatusHasBeenSet = false;
112
113 Aws::String m_statusMessage;
114 bool m_statusMessageHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace NetworkFirewall
119} // namespace Aws
AWS_NETWORKFIREWALL_API TransitGatewayAttachmentSyncState(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API TransitGatewayAttachmentSyncState & operator=(Aws::Utils::Json::JsonView jsonValue)
TransitGatewayAttachmentSyncState & WithTransitGatewayAttachmentStatus(TransitGatewayAttachmentStatus value)
AWS_NETWORKFIREWALL_API TransitGatewayAttachmentSyncState()=default
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
TransitGatewayAttachmentSyncState & WithStatusMessage(StatusMessageT &&value)
TransitGatewayAttachmentSyncState & WithAttachmentId(AttachmentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue