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

The virtual private cloud (VPC) configuration for an access * point.

See Also:

AWS * API Reference

*/ class VpcConfiguration { public: AWS_S3CONTROL_API VpcConfiguration(); AWS_S3CONTROL_API VpcConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API VpcConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

If this field is specified, this access point will only allow connections * from the specified VPC ID.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

If this field is specified, this access point will only allow connections * from the specified VPC ID.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

If this field is specified, this access point will only allow connections * from the specified VPC ID.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

If this field is specified, this access point will only allow connections * from the specified VPC ID.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

If this field is specified, this access point will only allow connections * from the specified VPC ID.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

If this field is specified, this access point will only allow connections * from the specified VPC ID.

*/ inline VpcConfiguration& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

If this field is specified, this access point will only allow connections * from the specified VPC ID.

*/ inline VpcConfiguration& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

If this field is specified, this access point will only allow connections * from the specified VPC ID.

*/ inline VpcConfiguration& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws