/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An access point used to access a bucket.See Also:
AWS
* API Reference
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.
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.
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.
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.
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.
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.
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;} /** *The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.
*/ inline const Aws::String& GetBucketAccountId() const{ return m_bucketAccountId; } /** *The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.
*/ inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; } /** *The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.
*/ inline void SetBucketAccountId(const Aws::String& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = value; } /** *The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.
*/ inline void SetBucketAccountId(Aws::String&& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = std::move(value); } /** *The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.
*/ inline void SetBucketAccountId(const char* value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId.assign(value); } /** *The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.
*/ inline AccessPoint& WithBucketAccountId(const Aws::String& value) { SetBucketAccountId(value); return *this;} /** *The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.
*/ inline AccessPoint& WithBucketAccountId(Aws::String&& value) { SetBucketAccountId(std::move(value)); return *this;} /** *The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.
*/ inline AccessPoint& WithBucketAccountId(const char* value) { SetBucketAccountId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; NetworkOrigin m_networkOrigin; bool m_networkOriginHasBeenSet = false; VpcConfiguration m_vpcConfiguration; bool m_vpcConfigurationHasBeenSet = false; Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_accessPointArn; bool m_accessPointArnHasBeenSet = false; Aws::String m_alias; bool m_aliasHasBeenSet = false; Aws::String m_bucketAccountId; bool m_bucketAccountIdHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws