Struct aws_sdk_ec2::model::NetworkInterfacePermission
source · #[non_exhaustive]pub struct NetworkInterfacePermission { /* private fields */ }
Expand description
Describes a permission for a network interface.
Implementations§
source§impl NetworkInterfacePermission
impl NetworkInterfacePermission
sourcepub fn network_interface_permission_id(&self) -> Option<&str>
pub fn network_interface_permission_id(&self) -> Option<&str>
The ID of the network interface permission.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
sourcepub fn aws_account_id(&self) -> Option<&str>
pub fn aws_account_id(&self) -> Option<&str>
The Amazon Web Services account ID.
sourcepub fn aws_service(&self) -> Option<&str>
pub fn aws_service(&self) -> Option<&str>
The Amazon Web Service.
sourcepub fn permission(&self) -> Option<&InterfacePermissionType>
pub fn permission(&self) -> Option<&InterfacePermissionType>
The type of permission.
sourcepub fn permission_state(&self) -> Option<&NetworkInterfacePermissionState>
pub fn permission_state(&self) -> Option<&NetworkInterfacePermissionState>
Information about the state of the permission.
source§impl NetworkInterfacePermission
impl NetworkInterfacePermission
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkInterfacePermission
.
Examples found in repository?
src/xml_deser.rs (line 29509)
29505 29506 29507 29508 29509 29510 29511 29512 29513 29514 29515 29516 29517 29518 29519 29520 29521 29522 29523 29524 29525 29526 29527 29528 29529 29530 29531 29532 29533 29534 29535 29536 29537 29538 29539 29540 29541 29542 29543 29544 29545 29546 29547 29548 29549 29550 29551 29552 29553 29554 29555 29556 29557 29558 29559 29560 29561 29562 29563 29564 29565 29566 29567 29568 29569 29570 29571 29572 29573 29574 29575 29576 29577 29578 29579 29580 29581 29582 29583 29584 29585 29586 29587 29588 29589 29590 29591 29592
pub fn deser_structure_crate_model_network_interface_permission(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfacePermission, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfacePermission::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkInterfacePermissionId") /* NetworkInterfacePermissionId com.amazonaws.ec2#NetworkInterfacePermission$NetworkInterfacePermissionId */ => {
let var_1257 =
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_network_interface_permission_id(var_1257);
}
,
s if s.matches("networkInterfaceId") /* NetworkInterfaceId com.amazonaws.ec2#NetworkInterfacePermission$NetworkInterfaceId */ => {
let var_1258 =
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_network_interface_id(var_1258);
}
,
s if s.matches("awsAccountId") /* AwsAccountId com.amazonaws.ec2#NetworkInterfacePermission$AwsAccountId */ => {
let var_1259 =
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_aws_account_id(var_1259);
}
,
s if s.matches("awsService") /* AwsService com.amazonaws.ec2#NetworkInterfacePermission$AwsService */ => {
let var_1260 =
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_aws_service(var_1260);
}
,
s if s.matches("permission") /* Permission com.amazonaws.ec2#NetworkInterfacePermission$Permission */ => {
let var_1261 =
Some(
Result::<crate::model::InterfacePermissionType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InterfacePermissionType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_permission(var_1261);
}
,
s if s.matches("permissionState") /* PermissionState com.amazonaws.ec2#NetworkInterfacePermission$PermissionState */ => {
let var_1262 =
Some(
crate::xml_deser::deser_structure_crate_model_network_interface_permission_state(&mut tag)
?
)
;
builder = builder.set_permission_state(var_1262);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for NetworkInterfacePermission
impl Clone for NetworkInterfacePermission
source§fn clone(&self) -> NetworkInterfacePermission
fn clone(&self) -> NetworkInterfacePermission
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more