Struct aws_sdk_ec2::model::create_volume_permission::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateVolumePermission
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn group(self, input: PermissionGroup) -> Self
pub fn group(self, input: PermissionGroup) -> Self
The group to be added or removed. The possible value is all
.
sourcepub fn set_group(self, input: Option<PermissionGroup>) -> Self
pub fn set_group(self, input: Option<PermissionGroup>) -> Self
The group to be added or removed. The possible value is all
.
Examples found in repository?
src/xml_deser.rs (line 49493)
49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 49490 49491 49492 49493 49494 49495 49496 49497 49498 49499 49500 49501 49502 49503 49504 49505 49506 49507 49508 49509 49510 49511 49512 49513
pub fn deser_structure_crate_model_create_volume_permission(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CreateVolumePermission, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CreateVolumePermission::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("group") /* Group com.amazonaws.ec2#CreateVolumePermission$Group */ => {
let var_2303 =
Some(
Result::<crate::model::PermissionGroup, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PermissionGroup::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_group(var_2303);
}
,
s if s.matches("userId") /* UserId com.amazonaws.ec2#CreateVolumePermission$UserId */ => {
let var_2304 =
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_user_id(var_2304);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn user_id(self, input: impl Into<String>) -> Self
pub fn user_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account to be added or removed.
sourcepub fn set_user_id(self, input: Option<String>) -> Self
pub fn set_user_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account to be added or removed.
Examples found in repository?
src/xml_deser.rs (line 49506)
49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 49490 49491 49492 49493 49494 49495 49496 49497 49498 49499 49500 49501 49502 49503 49504 49505 49506 49507 49508 49509 49510 49511 49512 49513
pub fn deser_structure_crate_model_create_volume_permission(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CreateVolumePermission, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CreateVolumePermission::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("group") /* Group com.amazonaws.ec2#CreateVolumePermission$Group */ => {
let var_2303 =
Some(
Result::<crate::model::PermissionGroup, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PermissionGroup::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_group(var_2303);
}
,
s if s.matches("userId") /* UserId com.amazonaws.ec2#CreateVolumePermission$UserId */ => {
let var_2304 =
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_user_id(var_2304);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> CreateVolumePermission
pub fn build(self) -> CreateVolumePermission
Consumes the builder and constructs a CreateVolumePermission
.
Examples found in repository?
src/xml_deser.rs (line 49512)
49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 49490 49491 49492 49493 49494 49495 49496 49497 49498 49499 49500 49501 49502 49503 49504 49505 49506 49507 49508 49509 49510 49511 49512 49513
pub fn deser_structure_crate_model_create_volume_permission(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CreateVolumePermission, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CreateVolumePermission::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("group") /* Group com.amazonaws.ec2#CreateVolumePermission$Group */ => {
let var_2303 =
Some(
Result::<crate::model::PermissionGroup, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PermissionGroup::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_group(var_2303);
}
,
s if s.matches("userId") /* UserId com.amazonaws.ec2#CreateVolumePermission$UserId */ => {
let var_2304 =
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_user_id(var_2304);
}
,
_ => {}
}
}
Ok(builder.build())
}