AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectAttachment.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 <aws/networkmanager/model/ConnectAttachmentOptions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkManager
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_NETWORKMANAGER_API ConnectAttachment() = default;
37 AWS_NETWORKMANAGER_API ConnectAttachment(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMANAGER_API ConnectAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Attachment& GetAttachment() const { return m_attachment; }
47 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
48 template<typename AttachmentT = Attachment>
49 void SetAttachment(AttachmentT&& value) { m_attachmentHasBeenSet = true; m_attachment = std::forward<AttachmentT>(value); }
50 template<typename AttachmentT = Attachment>
51 ConnectAttachment& WithAttachment(AttachmentT&& value) { SetAttachment(std::forward<AttachmentT>(value)); return *this;}
53
55
58 inline const Aws::String& GetTransportAttachmentId() const { return m_transportAttachmentId; }
59 inline bool TransportAttachmentIdHasBeenSet() const { return m_transportAttachmentIdHasBeenSet; }
60 template<typename TransportAttachmentIdT = Aws::String>
61 void SetTransportAttachmentId(TransportAttachmentIdT&& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = std::forward<TransportAttachmentIdT>(value); }
62 template<typename TransportAttachmentIdT = Aws::String>
63 ConnectAttachment& WithTransportAttachmentId(TransportAttachmentIdT&& value) { SetTransportAttachmentId(std::forward<TransportAttachmentIdT>(value)); return *this;}
65
67
70 inline const ConnectAttachmentOptions& GetOptions() const { return m_options; }
71 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
72 template<typename OptionsT = ConnectAttachmentOptions>
73 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
74 template<typename OptionsT = ConnectAttachmentOptions>
75 ConnectAttachment& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
77 private:
78
79 Attachment m_attachment;
80 bool m_attachmentHasBeenSet = false;
81
82 Aws::String m_transportAttachmentId;
83 bool m_transportAttachmentIdHasBeenSet = false;
84
86 bool m_optionsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace NetworkManager
91} // namespace Aws
ConnectAttachment & WithOptions(OptionsT &&value)
ConnectAttachment & WithTransportAttachmentId(TransportAttachmentIdT &&value)
AWS_NETWORKMANAGER_API ConnectAttachment(Aws::Utils::Json::JsonView jsonValue)
ConnectAttachment & WithAttachment(AttachmentT &&value)
void SetTransportAttachmentId(TransportAttachmentIdT &&value)
const Aws::String & GetTransportAttachmentId() const
AWS_NETWORKMANAGER_API ConnectAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API ConnectAttachment()=default
const ConnectAttachmentOptions & GetOptions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue