/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { /** *

An access point used to access a bucket.

See Also:

AWS * API Reference

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

The name of this access point.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of this access point.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of this access point.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of this access point.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of this access point.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of this access point.

*/ inline AccessPoint& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of this access point.

*/ inline AccessPoint& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of this access point.

*/ inline AccessPoint& WithName(const char* value) { SetName(value); return *this;} /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline const NetworkOrigin& GetNetworkOrigin() const{ return m_networkOrigin; } /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline bool NetworkOriginHasBeenSet() const { return m_networkOriginHasBeenSet; } /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline void SetNetworkOrigin(const NetworkOrigin& value) { m_networkOriginHasBeenSet = true; m_networkOrigin = value; } /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline void SetNetworkOrigin(NetworkOrigin&& value) { m_networkOriginHasBeenSet = true; m_networkOrigin = std::move(value); } /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline AccessPoint& WithNetworkOrigin(const NetworkOrigin& value) { SetNetworkOrigin(value); return *this;} /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline AccessPoint& WithNetworkOrigin(NetworkOrigin&& value) { SetNetworkOrigin(std::move(value)); return *this;} /** *

The virtual private cloud (VPC) configuration for this access point, if one * exists.

This element is empty if this access point is an Amazon S3 * on Outposts access point that is used by other Amazon Web Services.

*/ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } /** *

The virtual private cloud (VPC) configuration for this access point, if one * exists.

This element is empty if this access point is an Amazon S3 * on Outposts access point that is used by other Amazon Web Services.

*/ inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; } /** *

The virtual private cloud (VPC) configuration for this access point, if one * exists.

This element is empty if this access point is an Amazon S3 * on Outposts access point that is used by other Amazon Web Services.

*/ inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; } /** *

The virtual private cloud (VPC) configuration for this access point, if one * exists.

This element is empty if this access point is an Amazon S3 * on Outposts access point that is used by other Amazon Web Services.

*/ inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); } /** *

The virtual private cloud (VPC) configuration for this access point, if one * exists.

This element is empty if this access point is an Amazon S3 * on Outposts access point that is used by other Amazon Web Services.

*/ inline AccessPoint& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;} /** *

The virtual private cloud (VPC) configuration for this access point, if one * exists.

This element is empty if this access point is an Amazon S3 * on Outposts access point that is used by other Amazon Web Services.

*/ inline AccessPoint& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} /** *

The name of the bucket associated with this access point.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The name of the bucket associated with this access point.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The name of the bucket associated with this access point.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The name of the bucket associated with this access point.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The name of the bucket associated with this access point.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The name of the bucket associated with this access point.

*/ inline AccessPoint& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The name of the bucket associated with this access point.

*/ inline AccessPoint& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The name of the bucket associated with this access point.

*/ inline AccessPoint& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The ARN for the access point.

*/ inline const Aws::String& GetAccessPointArn() const{ return m_accessPointArn; } /** *

The ARN for the access point.

*/ inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; } /** *

The ARN for the access point.

*/ inline void SetAccessPointArn(const Aws::String& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = value; } /** *

The ARN for the access point.

*/ inline void SetAccessPointArn(Aws::String&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::move(value); } /** *

The ARN for the access point.

*/ inline void SetAccessPointArn(const char* value) { m_accessPointArnHasBeenSet = true; m_accessPointArn.assign(value); } /** *

The ARN for the access point.

*/ inline AccessPoint& WithAccessPointArn(const Aws::String& value) { SetAccessPointArn(value); return *this;} /** *

The ARN for the access point.

*/ inline AccessPoint& WithAccessPointArn(Aws::String&& value) { SetAccessPointArn(std::move(value)); return *this;} /** *

The ARN for the access point.

*/ inline AccessPoint& WithAccessPointArn(const char* value) { SetAccessPointArn(value); return *this;} /** *

The name or alias of the access point.

*/ inline const Aws::String& GetAlias() const{ return m_alias; } /** *

The name or alias of the access point.

*/ inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } /** *

The name or alias of the access point.

*/ inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } /** *

The name or alias of the access point.

*/ inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } /** *

The name or alias of the access point.

*/ inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } /** *

The name or alias of the access point.

*/ inline AccessPoint& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} /** *

The name or alias of the access point.

*/ inline AccessPoint& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} /** *

The name or alias of the access point.

*/ inline AccessPoint& WithAlias(const char* value) { SetAlias(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; NetworkOrigin m_networkOrigin; bool m_networkOriginHasBeenSet; VpcConfiguration m_vpcConfiguration; bool m_vpcConfigurationHasBeenSet; Aws::String m_bucket; bool m_bucketHasBeenSet; Aws::String m_accessPointArn; bool m_accessPointArnHasBeenSet; Aws::String m_alias; bool m_aliasHasBeenSet; }; } // namespace Model } // namespace S3Control } // namespace Aws