AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
DirectConnectGatewayAttachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9#include <aws/networkmanager/model/Attachment.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkManager {
21namespace Model {
22
29 public:
30 AWS_NETWORKMANAGER_API DirectConnectGatewayAttachment() = default;
33 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Attachment& GetAttachment() const { return m_attachment; }
38 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
39 template <typename AttachmentT = Attachment>
40 void SetAttachment(AttachmentT&& value) {
41 m_attachmentHasBeenSet = true;
42 m_attachment = std::forward<AttachmentT>(value);
43 }
44 template <typename AttachmentT = Attachment>
46 SetAttachment(std::forward<AttachmentT>(value));
47 return *this;
48 }
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) {
59 m_directConnectGatewayArnHasBeenSet = true;
60 m_directConnectGatewayArn = std::forward<DirectConnectGatewayArnT>(value);
61 }
62 template <typename DirectConnectGatewayArnT = Aws::String>
64 SetDirectConnectGatewayArn(std::forward<DirectConnectGatewayArnT>(value));
65 return *this;
66 }
68 private:
69 Attachment m_attachment;
70
71 Aws::String m_directConnectGatewayArn;
72 bool m_attachmentHasBeenSet = false;
73 bool m_directConnectGatewayArnHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace NetworkManager
78} // 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