Struct aws_sdk_s3control::types::builders::AccessPointBuilder
source · #[non_exhaustive]pub struct AccessPointBuilder { /* private fields */ }
Expand description
A builder for AccessPoint
.
Implementations§
source§impl AccessPointBuilder
impl AccessPointBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of this access point.
This field is required.sourcepub fn network_origin(self, input: NetworkOrigin) -> Self
pub fn network_origin(self, input: NetworkOrigin) -> Self
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.
sourcepub fn set_network_origin(self, input: Option<NetworkOrigin>) -> Self
pub fn set_network_origin(self, input: Option<NetworkOrigin>) -> Self
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.
sourcepub fn get_network_origin(&self) -> &Option<NetworkOrigin>
pub fn get_network_origin(&self) -> &Option<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.
sourcepub fn vpc_configuration(self, input: VpcConfiguration) -> Self
pub fn vpc_configuration(self, input: VpcConfiguration) -> Self
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.
sourcepub fn set_vpc_configuration(self, input: Option<VpcConfiguration>) -> Self
pub fn set_vpc_configuration(self, input: Option<VpcConfiguration>) -> Self
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.
sourcepub fn get_vpc_configuration(&self) -> &Option<VpcConfiguration>
pub fn get_vpc_configuration(&self) -> &Option<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.
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The name of the bucket associated with this access point.
This field is required.sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The name of the bucket associated with this access point.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the bucket associated with this access point.
sourcepub fn access_point_arn(self, input: impl Into<String>) -> Self
pub fn access_point_arn(self, input: impl Into<String>) -> Self
The ARN for the access point.
sourcepub fn set_access_point_arn(self, input: Option<String>) -> Self
pub fn set_access_point_arn(self, input: Option<String>) -> Self
The ARN for the access point.
sourcepub fn get_access_point_arn(&self) -> &Option<String>
pub fn get_access_point_arn(&self) -> &Option<String>
The ARN for the access point.
sourcepub fn bucket_account_id(self, input: impl Into<String>) -> Self
pub fn bucket_account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID associated with the S3 bucket associated with this access point.
sourcepub fn set_bucket_account_id(self, input: Option<String>) -> Self
pub fn set_bucket_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID associated with the S3 bucket associated with this access point.
sourcepub fn get_bucket_account_id(&self) -> &Option<String>
pub fn get_bucket_account_id(&self) -> &Option<String>
The Amazon Web Services account ID associated with the S3 bucket associated with this access point.
sourcepub fn build(self) -> Result<AccessPoint, BuildError>
pub fn build(self) -> Result<AccessPoint, BuildError>
Consumes the builder and constructs a AccessPoint
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AccessPointBuilder
impl Clone for AccessPointBuilder
source§fn clone(&self) -> AccessPointBuilder
fn clone(&self) -> AccessPointBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessPointBuilder
impl Debug for AccessPointBuilder
source§impl Default for AccessPointBuilder
impl Default for AccessPointBuilder
source§fn default() -> AccessPointBuilder
fn default() -> AccessPointBuilder
source§impl PartialEq for AccessPointBuilder
impl PartialEq for AccessPointBuilder
source§fn eq(&self, other: &AccessPointBuilder) -> bool
fn eq(&self, other: &AccessPointBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.