Struct aws_sdk_s3::model::index_document::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for IndexDocument
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn suffix(self, input: impl Into<String>) -> Self
pub fn suffix(self, input: impl Into<String>) -> Self
A suffix that is appended to a request that is for a directory on the website endpoint (for example,if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character.
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_suffix(self, input: Option<String>) -> Self
pub fn set_suffix(self, input: Option<String>) -> Self
A suffix that is appended to a request that is for a directory on the website endpoint (for example,if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character.
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.
Examples found in repository?
3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652
pub fn deser_structure_crate_model_index_document(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IndexDocument, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IndexDocument::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Suffix") /* Suffix com.amazonaws.s3#IndexDocument$Suffix */ => {
let var_199 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_suffix(var_199);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> IndexDocument
pub fn build(self) -> IndexDocument
Consumes the builder and constructs a IndexDocument
.
Examples found in repository?
3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652
pub fn deser_structure_crate_model_index_document(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IndexDocument, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IndexDocument::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Suffix") /* Suffix com.amazonaws.s3#IndexDocument$Suffix */ => {
let var_199 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_suffix(var_199);
}
,
_ => {}
}
}
Ok(builder.build())
}