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 Servicesservices.
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 Servicesservices.
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 Servicesservices.
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
impl StructuralPartialEq for AccessPointBuilder
Auto Trait Implementations§
impl Freeze for AccessPointBuilder
impl RefUnwindSafe for AccessPointBuilder
impl Send for AccessPointBuilder
impl Sync for AccessPointBuilder
impl Unpin for AccessPointBuilder
impl UnwindSafe for AccessPointBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more