Struct bonsaidb::keystorage::s3::aws_sdk_s3::config::endpoint::ParamsBuilder
pub struct ParamsBuilder { /* private fields */ }
Expand description
Builder for Params
Implementations§
§impl ParamsBuilder
impl ParamsBuilder
pub fn build(self) -> Result<Params, InvalidParams>
pub fn build(self) -> Result<Params, InvalidParams>
Consume this builder, creating Params
.
pub fn bucket(self, value: impl Into<String>) -> ParamsBuilder
pub fn bucket(self, value: impl Into<String>) -> ParamsBuilder
Sets the value for bucket
The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.
pub fn set_bucket(self, param: Option<String>) -> ParamsBuilder
pub fn set_bucket(self, param: Option<String>) -> ParamsBuilder
Sets the value for bucket
The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.
pub fn region(self, value: impl Into<String>) -> ParamsBuilder
pub fn region(self, value: impl Into<String>) -> ParamsBuilder
Sets the value for region
The AWS region used to dispatch the request.
pub fn set_region(self, param: Option<String>) -> ParamsBuilder
pub fn set_region(self, param: Option<String>) -> ParamsBuilder
Sets the value for region
The AWS region used to dispatch the request.
pub fn use_fips(self, value: impl Into<bool>) -> ParamsBuilder
pub fn use_fips(self, value: impl Into<bool>) -> ParamsBuilder
Sets the value for use_fips
When unset, this parameter has a default value of false
.
When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
pub fn set_use_fips(self, param: Option<bool>) -> ParamsBuilder
pub fn set_use_fips(self, param: Option<bool>) -> ParamsBuilder
Sets the value for use_fips
When unset, this parameter has a default value of false
.
When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
pub fn use_dual_stack(self, value: impl Into<bool>) -> ParamsBuilder
pub fn use_dual_stack(self, value: impl Into<bool>) -> ParamsBuilder
Sets the value for use_dual_stack
When unset, this parameter has a default value of false
.
When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
pub fn set_use_dual_stack(self, param: Option<bool>) -> ParamsBuilder
pub fn set_use_dual_stack(self, param: Option<bool>) -> ParamsBuilder
Sets the value for use_dual_stack
When unset, this parameter has a default value of false
.
When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
pub fn endpoint(self, value: impl Into<String>) -> ParamsBuilder
pub fn endpoint(self, value: impl Into<String>) -> ParamsBuilder
Sets the value for endpoint
Override the endpoint used to send this request
pub fn set_endpoint(self, param: Option<String>) -> ParamsBuilder
pub fn set_endpoint(self, param: Option<String>) -> ParamsBuilder
Sets the value for endpoint
Override the endpoint used to send this request
pub fn force_path_style(self, value: impl Into<bool>) -> ParamsBuilder
pub fn force_path_style(self, value: impl Into<bool>) -> ParamsBuilder
Sets the value for force_path_style
When unset, this parameter has a default value of false
.
When true, force a path-style endpoint to be used where the bucket name is part of the path.
pub fn set_force_path_style(self, param: Option<bool>) -> ParamsBuilder
pub fn set_force_path_style(self, param: Option<bool>) -> ParamsBuilder
Sets the value for force_path_style
When unset, this parameter has a default value of false
.
When true, force a path-style endpoint to be used where the bucket name is part of the path.
pub fn accelerate(self, value: impl Into<bool>) -> ParamsBuilder
pub fn accelerate(self, value: impl Into<bool>) -> ParamsBuilder
Sets the value for accelerate
When unset, this parameter has a default value of false
.
When true, use S3 Accelerate. NOTE: Not all regions support S3 accelerate.
pub fn set_accelerate(self, param: Option<bool>) -> ParamsBuilder
pub fn set_accelerate(self, param: Option<bool>) -> ParamsBuilder
Sets the value for accelerate
When unset, this parameter has a default value of false
.
When true, use S3 Accelerate. NOTE: Not all regions support S3 accelerate.
pub fn use_global_endpoint(self, value: impl Into<bool>) -> ParamsBuilder
pub fn use_global_endpoint(self, value: impl Into<bool>) -> ParamsBuilder
Sets the value for use_global_endpoint
When unset, this parameter has a default value of false
.
Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.
pub fn set_use_global_endpoint(self, param: Option<bool>) -> ParamsBuilder
pub fn set_use_global_endpoint(self, param: Option<bool>) -> ParamsBuilder
Sets the value for use_global_endpoint
When unset, this parameter has a default value of false
.
Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.
pub fn use_object_lambda_endpoint(self, value: impl Into<bool>) -> ParamsBuilder
pub fn use_object_lambda_endpoint(self, value: impl Into<bool>) -> ParamsBuilder
Sets the value for use_object_lambda_endpoint
Internal parameter to use object lambda endpoint for an operation (eg: WriteGetObjectResponse)
pub fn set_use_object_lambda_endpoint(
self,
param: Option<bool>
) -> ParamsBuilder
pub fn set_use_object_lambda_endpoint( self, param: Option<bool> ) -> ParamsBuilder
Sets the value for use_object_lambda_endpoint
Internal parameter to use object lambda endpoint for an operation (eg: WriteGetObjectResponse)
pub fn disable_access_points(self, value: impl Into<bool>) -> ParamsBuilder
pub fn disable_access_points(self, value: impl Into<bool>) -> ParamsBuilder
Sets the value for disable_access_points
Internal parameter to disable Access Point Buckets
pub fn set_disable_access_points(self, param: Option<bool>) -> ParamsBuilder
pub fn set_disable_access_points(self, param: Option<bool>) -> ParamsBuilder
Sets the value for disable_access_points
Internal parameter to disable Access Point Buckets
pub fn disable_multi_region_access_points(
self,
value: impl Into<bool>
) -> ParamsBuilder
pub fn disable_multi_region_access_points( self, value: impl Into<bool> ) -> ParamsBuilder
Sets the value for disable_multi_region_access_points
When unset, this parameter has a default value of false
.
Whether multi-region access points (MRAP) should be disabled.
pub fn set_disable_multi_region_access_points(
self,
param: Option<bool>
) -> ParamsBuilder
pub fn set_disable_multi_region_access_points( self, param: Option<bool> ) -> ParamsBuilder
Sets the value for disable_multi_region_access_points
When unset, this parameter has a default value of false
.
Whether multi-region access points (MRAP) should be disabled.
pub fn use_arn_region(self, value: impl Into<bool>) -> ParamsBuilder
pub fn use_arn_region(self, value: impl Into<bool>) -> ParamsBuilder
Sets the value for use_arn_region
When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN’s region when constructing the endpoint instead of the client’s configured region.
pub fn set_use_arn_region(self, param: Option<bool>) -> ParamsBuilder
pub fn set_use_arn_region(self, param: Option<bool>) -> ParamsBuilder
Sets the value for use_arn_region
When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN’s region when constructing the endpoint instead of the client’s configured region.
Trait Implementations§
§impl Clone for ParamsBuilder
impl Clone for ParamsBuilder
§fn clone(&self) -> ParamsBuilder
fn clone(&self) -> ParamsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ParamsBuilder
impl Debug for ParamsBuilder
§impl Default for ParamsBuilder
impl Default for ParamsBuilder
§fn default() -> ParamsBuilder
fn default() -> ParamsBuilder
§impl PartialEq<ParamsBuilder> for ParamsBuilder
impl PartialEq<ParamsBuilder> for ParamsBuilder
§fn eq(&self, other: &ParamsBuilder) -> bool
fn eq(&self, other: &ParamsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.