AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ConnectAttachment.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#include <aws/networkmanager/model/ConnectAttachmentOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkManager {
22namespace Model {
23
30 public:
31 AWS_NETWORKMANAGER_API ConnectAttachment() = default;
32 AWS_NETWORKMANAGER_API ConnectAttachment(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKMANAGER_API ConnectAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Attachment& GetAttachment() const { return m_attachment; }
41 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
42 template <typename AttachmentT = Attachment>
43 void SetAttachment(AttachmentT&& value) {
44 m_attachmentHasBeenSet = true;
45 m_attachment = std::forward<AttachmentT>(value);
46 }
47 template <typename AttachmentT = Attachment>
48 ConnectAttachment& WithAttachment(AttachmentT&& value) {
49 SetAttachment(std::forward<AttachmentT>(value));
50 return *this;
51 }
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) {
62 m_transportAttachmentIdHasBeenSet = true;
63 m_transportAttachmentId = std::forward<TransportAttachmentIdT>(value);
64 }
65 template <typename TransportAttachmentIdT = Aws::String>
66 ConnectAttachment& WithTransportAttachmentId(TransportAttachmentIdT&& value) {
67 SetTransportAttachmentId(std::forward<TransportAttachmentIdT>(value));
68 return *this;
69 }
71
73
76 inline const ConnectAttachmentOptions& GetOptions() const { return m_options; }
77 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
78 template <typename OptionsT = ConnectAttachmentOptions>
79 void SetOptions(OptionsT&& value) {
80 m_optionsHasBeenSet = true;
81 m_options = std::forward<OptionsT>(value);
82 }
83 template <typename OptionsT = ConnectAttachmentOptions>
84 ConnectAttachment& WithOptions(OptionsT&& value) {
85 SetOptions(std::forward<OptionsT>(value));
86 return *this;
87 }
89 private:
90 Attachment m_attachment;
91
92 Aws::String m_transportAttachmentId;
93
95 bool m_attachmentHasBeenSet = false;
96 bool m_transportAttachmentIdHasBeenSet = false;
97 bool m_optionsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace NetworkManager
102} // 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