Struct aws_sdk_s3::model::error_document::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ErrorDocument
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The object key name to use when a 4XX class error occurs.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The object key name to use when a 4XX class error occurs.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
sourcepub fn build(self) -> ErrorDocument
pub fn build(self) -> ErrorDocument
Consumes the builder and constructs a ErrorDocument
.