AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DirectConnectGatewayAttachment.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/model/Attachment.h>
9#include <aws/core/utils/memory/stl/AWSString.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 NetworkManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_NETWORKMANAGER_API DirectConnectGatewayAttachment() = default;
38 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Attachment& GetAttachment() const { return m_attachment; }
44 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
45 template<typename AttachmentT = Attachment>
46 void SetAttachment(AttachmentT&& value) { m_attachmentHasBeenSet = true; m_attachment = std::forward<AttachmentT>(value); }
47 template<typename AttachmentT = Attachment>
48 DirectConnectGatewayAttachment& WithAttachment(AttachmentT&& value) { SetAttachment(std::forward<AttachmentT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDirectConnectGatewayArn() const { return m_directConnectGatewayArn; }
56 inline bool DirectConnectGatewayArnHasBeenSet() const { return m_directConnectGatewayArnHasBeenSet; }
57 template<typename DirectConnectGatewayArnT = Aws::String>
58 void SetDirectConnectGatewayArn(DirectConnectGatewayArnT&& value) { m_directConnectGatewayArnHasBeenSet = true; m_directConnectGatewayArn = std::forward<DirectConnectGatewayArnT>(value); }
59 template<typename DirectConnectGatewayArnT = Aws::String>
60 DirectConnectGatewayAttachment& WithDirectConnectGatewayArn(DirectConnectGatewayArnT&& value) { SetDirectConnectGatewayArn(std::forward<DirectConnectGatewayArnT>(value)); return *this;}
62 private:
63
64 Attachment m_attachment;
65 bool m_attachmentHasBeenSet = false;
66
67 Aws::String m_directConnectGatewayArn;
68 bool m_directConnectGatewayArnHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace NetworkManager
73} // namespace Aws
AWS_NETWORKMANAGER_API DirectConnectGatewayAttachment()=default
DirectConnectGatewayAttachment & WithDirectConnectGatewayArn(DirectConnectGatewayArnT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API DirectConnectGatewayAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
DirectConnectGatewayAttachment & WithAttachment(AttachmentT &&value)
AWS_NETWORKMANAGER_API DirectConnectGatewayAttachment(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue