/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace NetworkManager { namespace Model { /** *

Describes a core network Connect attachment.

See Also:

AWS * API Reference

*/ class ConnectAttachment { public: AWS_NETWORKMANAGER_API ConnectAttachment(); AWS_NETWORKMANAGER_API ConnectAttachment(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKMANAGER_API ConnectAttachment& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The attachment details.

*/ inline const Attachment& GetAttachment() const{ return m_attachment; } /** *

The attachment details.

*/ inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; } /** *

The attachment details.

*/ inline void SetAttachment(const Attachment& value) { m_attachmentHasBeenSet = true; m_attachment = value; } /** *

The attachment details.

*/ inline void SetAttachment(Attachment&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); } /** *

The attachment details.

*/ inline ConnectAttachment& WithAttachment(const Attachment& value) { SetAttachment(value); return *this;} /** *

The attachment details.

*/ inline ConnectAttachment& WithAttachment(Attachment&& value) { SetAttachment(std::move(value)); return *this;} /** *

The ID of the transport attachment.

*/ inline const Aws::String& GetTransportAttachmentId() const{ return m_transportAttachmentId; } /** *

The ID of the transport attachment.

*/ inline bool TransportAttachmentIdHasBeenSet() const { return m_transportAttachmentIdHasBeenSet; } /** *

The ID of the transport attachment.

*/ inline void SetTransportAttachmentId(const Aws::String& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = value; } /** *

The ID of the transport attachment.

*/ inline void SetTransportAttachmentId(Aws::String&& value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId = std::move(value); } /** *

The ID of the transport attachment.

*/ inline void SetTransportAttachmentId(const char* value) { m_transportAttachmentIdHasBeenSet = true; m_transportAttachmentId.assign(value); } /** *

The ID of the transport attachment.

*/ inline ConnectAttachment& WithTransportAttachmentId(const Aws::String& value) { SetTransportAttachmentId(value); return *this;} /** *

The ID of the transport attachment.

*/ inline ConnectAttachment& WithTransportAttachmentId(Aws::String&& value) { SetTransportAttachmentId(std::move(value)); return *this;} /** *

The ID of the transport attachment.

*/ inline ConnectAttachment& WithTransportAttachmentId(const char* value) { SetTransportAttachmentId(value); return *this;} /** *

Options for connecting an attachment.

*/ inline const ConnectAttachmentOptions& GetOptions() const{ return m_options; } /** *

Options for connecting an attachment.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

Options for connecting an attachment.

*/ inline void SetOptions(const ConnectAttachmentOptions& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

Options for connecting an attachment.

*/ inline void SetOptions(ConnectAttachmentOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

Options for connecting an attachment.

*/ inline ConnectAttachment& WithOptions(const ConnectAttachmentOptions& value) { SetOptions(value); return *this;} /** *

Options for connecting an attachment.

*/ inline ConnectAttachment& WithOptions(ConnectAttachmentOptions&& value) { SetOptions(std::move(value)); return *this;} private: Attachment m_attachment; bool m_attachmentHasBeenSet = false; Aws::String m_transportAttachmentId; bool m_transportAttachmentIdHasBeenSet = false; ConnectAttachmentOptions m_options; bool m_optionsHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws