/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 VPC attachment.

See Also:

AWS * API Reference

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

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

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

The subnet ARNs.

*/ inline const Aws::Vector& GetSubnetArns() const{ return m_subnetArns; } /** *

The subnet ARNs.

*/ inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; } /** *

The subnet ARNs.

*/ inline void SetSubnetArns(const Aws::Vector& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; } /** *

The subnet ARNs.

*/ inline void SetSubnetArns(Aws::Vector&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); } /** *

The subnet ARNs.

*/ inline VpcAttachment& WithSubnetArns(const Aws::Vector& value) { SetSubnetArns(value); return *this;} /** *

The subnet ARNs.

*/ inline VpcAttachment& WithSubnetArns(Aws::Vector&& value) { SetSubnetArns(std::move(value)); return *this;} /** *

The subnet ARNs.

*/ inline VpcAttachment& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; } /** *

The subnet ARNs.

*/ inline VpcAttachment& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; } /** *

The subnet ARNs.

*/ inline VpcAttachment& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; } /** *

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

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

Provides details about the VPC attachment.

*/ inline VpcAttachment& WithOptions(const VpcOptions& value) { SetOptions(value); return *this;} /** *

Provides details about the VPC attachment.

*/ inline VpcAttachment& WithOptions(VpcOptions&& value) { SetOptions(std::move(value)); return *this;} private: Attachment m_attachment; bool m_attachmentHasBeenSet = false; Aws::Vector m_subnetArns; bool m_subnetArnsHasBeenSet = false; VpcOptions m_options; bool m_optionsHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws