AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttachment(const Attachment& value) { m_attachmentHasBeenSet = true; m_attachment = value; }
49 inline void SetAttachment(Attachment&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); }
50 inline ConnectAttachment& WithAttachment(const Attachment& value) { SetAttachment(value); return *this;}
51 inline ConnectAttachment& WithAttachment(Attachment&& value) { SetAttachment(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetTransportAttachmentId() const{ return m_transportAttachmentId; }
59 inline bool TransportAttachmentIdHasBeenSet() const { return m_transportAttachmentIdHasBeenSet; }
60 inline void SetTransportAttachmentId(const Aws::String& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = value; }
61 inline void SetTransportAttachmentId(Aws::String&& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = std::move(value); }
62 inline void SetTransportAttachmentId(const char* value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId.assign(value); }
64 inline ConnectAttachment& WithTransportAttachmentId(Aws::String&& value) { SetTransportAttachmentId(std::move(value)); return *this;}
65 inline ConnectAttachment& WithTransportAttachmentId(const char* value) { SetTransportAttachmentId(value); return *this;}
67
69
72 inline const ConnectAttachmentOptions& GetOptions() const{ return m_options; }
73 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
74 inline void SetOptions(const ConnectAttachmentOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
75 inline void SetOptions(ConnectAttachmentOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
76 inline ConnectAttachment& WithOptions(const ConnectAttachmentOptions& value) { SetOptions(value); return *this;}
77 inline ConnectAttachment& WithOptions(ConnectAttachmentOptions&& value) { SetOptions(std::move(value)); return *this;}
79 private:
80
81 Attachment m_attachment;
82 bool m_attachmentHasBeenSet = false;
83
84 Aws::String m_transportAttachmentId;
85 bool m_transportAttachmentIdHasBeenSet = false;
86
88 bool m_optionsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace NetworkManager
93} // namespace Aws
ConnectAttachment & WithOptions(const ConnectAttachmentOptions &value)
ConnectAttachment & WithTransportAttachmentId(const char *value)
AWS_NETWORKMANAGER_API ConnectAttachment(Aws::Utils::Json::JsonView jsonValue)
ConnectAttachment & WithTransportAttachmentId(Aws::String &&value)
ConnectAttachment & WithAttachment(Attachment &&value)
void SetOptions(const ConnectAttachmentOptions &value)
const Aws::String & GetTransportAttachmentId() const
void SetOptions(ConnectAttachmentOptions &&value)
AWS_NETWORKMANAGER_API ConnectAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectAttachment & WithTransportAttachmentId(const Aws::String &value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectAttachment & WithAttachment(const Attachment &value)
ConnectAttachment & WithOptions(ConnectAttachmentOptions &&value)
void SetTransportAttachmentId(const Aws::String &value)
const ConnectAttachmentOptions & GetOptions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue