Struct aws_sdk_s3::model::target_grant::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TargetGrant
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn grantee(self, input: Grantee) -> Self
pub fn grantee(self, input: Grantee) -> Self
Container for the person being granted permissions.
sourcepub fn set_grantee(self, input: Option<Grantee>) -> Self
pub fn set_grantee(self, input: Option<Grantee>) -> Self
Container for the person being granted permissions.
Examples found in repository?
src/xml_deser.rs (line 6705)
6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726
pub fn deser_structure_crate_model_target_grant(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TargetGrant, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TargetGrant::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Grantee") /* Grantee com.amazonaws.s3#TargetGrant$Grantee */ => {
let var_366 =
Some(
crate::xml_deser::deser_structure_crate_model_grantee(&mut tag)
?
)
;
builder = builder.set_grantee(var_366);
}
,
s if s.matches("Permission") /* Permission com.amazonaws.s3#TargetGrant$Permission */ => {
let var_367 =
Some(
Result::<crate::model::BucketLogsPermission, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BucketLogsPermission::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_permission(var_367);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn permission(self, input: BucketLogsPermission) -> Self
pub fn permission(self, input: BucketLogsPermission) -> Self
Logging permissions assigned to the grantee for the bucket.
sourcepub fn set_permission(self, input: Option<BucketLogsPermission>) -> Self
pub fn set_permission(self, input: Option<BucketLogsPermission>) -> Self
Logging permissions assigned to the grantee for the bucket.
Examples found in repository?
src/xml_deser.rs (line 6719)
6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726
pub fn deser_structure_crate_model_target_grant(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TargetGrant, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TargetGrant::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Grantee") /* Grantee com.amazonaws.s3#TargetGrant$Grantee */ => {
let var_366 =
Some(
crate::xml_deser::deser_structure_crate_model_grantee(&mut tag)
?
)
;
builder = builder.set_grantee(var_366);
}
,
s if s.matches("Permission") /* Permission com.amazonaws.s3#TargetGrant$Permission */ => {
let var_367 =
Some(
Result::<crate::model::BucketLogsPermission, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BucketLogsPermission::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_permission(var_367);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> TargetGrant
pub fn build(self) -> TargetGrant
Consumes the builder and constructs a TargetGrant
.
Examples found in repository?
src/xml_deser.rs (line 6725)
6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726
pub fn deser_structure_crate_model_target_grant(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TargetGrant, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TargetGrant::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Grantee") /* Grantee com.amazonaws.s3#TargetGrant$Grantee */ => {
let var_366 =
Some(
crate::xml_deser::deser_structure_crate_model_grantee(&mut tag)
?
)
;
builder = builder.set_grantee(var_366);
}
,
s if s.matches("Permission") /* Permission com.amazonaws.s3#TargetGrant$Permission */ => {
let var_367 =
Some(
Result::<crate::model::BucketLogsPermission, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BucketLogsPermission::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_permission(var_367);
}
,
_ => {}
}
}
Ok(builder.build())
}