Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::WebsiteConfigurationBuilder
pub struct WebsiteConfigurationBuilder { /* private fields */ }
Expand description
A builder for WebsiteConfiguration
.
Implementations§
§impl WebsiteConfigurationBuilder
impl WebsiteConfigurationBuilder
pub fn error_document(self, input: ErrorDocument) -> WebsiteConfigurationBuilder
pub fn error_document(self, input: ErrorDocument) -> WebsiteConfigurationBuilder
The name of the error document for the website.
pub fn set_error_document(
self,
input: Option<ErrorDocument>
) -> WebsiteConfigurationBuilder
pub fn set_error_document( self, input: Option<ErrorDocument> ) -> WebsiteConfigurationBuilder
The name of the error document for the website.
pub fn get_error_document(&self) -> &Option<ErrorDocument>
pub fn get_error_document(&self) -> &Option<ErrorDocument>
The name of the error document for the website.
pub fn index_document(self, input: IndexDocument) -> WebsiteConfigurationBuilder
pub fn index_document(self, input: IndexDocument) -> WebsiteConfigurationBuilder
The name of the index document for the website.
pub fn set_index_document(
self,
input: Option<IndexDocument>
) -> WebsiteConfigurationBuilder
pub fn set_index_document( self, input: Option<IndexDocument> ) -> WebsiteConfigurationBuilder
The name of the index document for the website.
pub fn get_index_document(&self) -> &Option<IndexDocument>
pub fn get_index_document(&self) -> &Option<IndexDocument>
The name of the index document for the website.
pub fn redirect_all_requests_to(
self,
input: RedirectAllRequestsTo
) -> WebsiteConfigurationBuilder
pub fn redirect_all_requests_to( self, input: RedirectAllRequestsTo ) -> WebsiteConfigurationBuilder
The redirect behavior for every request to this bucket's website endpoint.
If you specify this property, you can't specify any other property.
pub fn set_redirect_all_requests_to(
self,
input: Option<RedirectAllRequestsTo>
) -> WebsiteConfigurationBuilder
pub fn set_redirect_all_requests_to( self, input: Option<RedirectAllRequestsTo> ) -> WebsiteConfigurationBuilder
The redirect behavior for every request to this bucket's website endpoint.
If you specify this property, you can't specify any other property.
pub fn get_redirect_all_requests_to(&self) -> &Option<RedirectAllRequestsTo>
pub fn get_redirect_all_requests_to(&self) -> &Option<RedirectAllRequestsTo>
The redirect behavior for every request to this bucket's website endpoint.
If you specify this property, you can't specify any other property.
pub fn routing_rules(self, input: RoutingRule) -> WebsiteConfigurationBuilder
pub fn routing_rules(self, input: RoutingRule) -> WebsiteConfigurationBuilder
Appends an item to routing_rules
.
To override the contents of this collection use set_routing_rules
.
Rules that define when a redirect is applied and the redirect behavior.
pub fn set_routing_rules(
self,
input: Option<Vec<RoutingRule, Global>>
) -> WebsiteConfigurationBuilder
pub fn set_routing_rules( self, input: Option<Vec<RoutingRule, Global>> ) -> WebsiteConfigurationBuilder
Rules that define when a redirect is applied and the redirect behavior.
pub fn get_routing_rules(&self) -> &Option<Vec<RoutingRule, Global>>
pub fn get_routing_rules(&self) -> &Option<Vec<RoutingRule, Global>>
Rules that define when a redirect is applied and the redirect behavior.
pub fn build(self) -> WebsiteConfiguration
pub fn build(self) -> WebsiteConfiguration
Consumes the builder and constructs a WebsiteConfiguration
.
Trait Implementations§
§impl Clone for WebsiteConfigurationBuilder
impl Clone for WebsiteConfigurationBuilder
§fn clone(&self) -> WebsiteConfigurationBuilder
fn clone(&self) -> WebsiteConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for WebsiteConfigurationBuilder
impl Debug for WebsiteConfigurationBuilder
§impl Default for WebsiteConfigurationBuilder
impl Default for WebsiteConfigurationBuilder
§fn default() -> WebsiteConfigurationBuilder
fn default() -> WebsiteConfigurationBuilder
§impl PartialEq<WebsiteConfigurationBuilder> for WebsiteConfigurationBuilder
impl PartialEq<WebsiteConfigurationBuilder> for WebsiteConfigurationBuilder
§fn eq(&self, other: &WebsiteConfigurationBuilder) -> bool
fn eq(&self, other: &WebsiteConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.