/**
* 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.
*/ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } /** *The virtual private cloud (VPC) configuration for this access point, if one * exists.
*/ inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; } /** *The virtual private cloud (VPC) configuration for this access point, if one * exists.
*/ 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.
*/ 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.
*/ inline AccessPoint& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;} /** *The virtual private cloud (VPC) configuration for this access point, if one * exists.
*/ 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;} 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; }; } // namespace Model } // namespace S3Control } // namespace Aws