Struct aws_sdk_ec2::model::IpamAddressHistoryRecord
source · #[non_exhaustive]pub struct IpamAddressHistoryRecord { /* private fields */ }
Expand description
The historical record of a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.
Implementations§
source§impl IpamAddressHistoryRecord
impl IpamAddressHistoryRecord
sourcepub fn resource_owner_id(&self) -> Option<&str>
pub fn resource_owner_id(&self) -> Option<&str>
The ID of the resource owner.
sourcepub fn resource_region(&self) -> Option<&str>
pub fn resource_region(&self) -> Option<&str>
The Amazon Web Services Region of the resource.
sourcepub fn resource_type(&self) -> Option<&IpamAddressHistoryResourceType>
pub fn resource_type(&self) -> Option<&IpamAddressHistoryResourceType>
The type of the resource.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of the resource.
sourcepub fn resource_cidr(&self) -> Option<&str>
pub fn resource_cidr(&self) -> Option<&str>
The CIDR of the resource.
sourcepub fn resource_name(&self) -> Option<&str>
pub fn resource_name(&self) -> Option<&str>
The name of the resource.
sourcepub fn resource_compliance_status(&self) -> Option<&IpamComplianceStatus>
pub fn resource_compliance_status(&self) -> Option<&IpamComplianceStatus>
The compliance status of a resource. For more information on compliance statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn resource_overlap_status(&self) -> Option<&IpamOverlapStatus>
pub fn resource_overlap_status(&self) -> Option<&IpamOverlapStatus>
The overlap status of an IPAM resource. The overlap status tells you if the CIDR for a resource overlaps with another CIDR in the scope. For more information on overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn sampled_start_time(&self) -> Option<&DateTime>
pub fn sampled_start_time(&self) -> Option<&DateTime>
Sampled start time of the resource-to-CIDR association within the IPAM scope. Changes are picked up in periodic snapshots, so the start time may have occurred before this specific time.
sourcepub fn sampled_end_time(&self) -> Option<&DateTime>
pub fn sampled_end_time(&self) -> Option<&DateTime>
Sampled end time of the resource-to-CIDR association within the IPAM scope. Changes are picked up in periodic snapshots, so the end time may have occurred before this specific time.
source§impl IpamAddressHistoryRecord
impl IpamAddressHistoryRecord
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IpamAddressHistoryRecord
.
Examples found in repository?
52438 52439 52440 52441 52442 52443 52444 52445 52446 52447 52448 52449 52450 52451 52452 52453 52454 52455 52456 52457 52458 52459 52460 52461 52462 52463 52464 52465 52466 52467 52468 52469 52470 52471 52472 52473 52474 52475 52476 52477 52478 52479 52480 52481 52482 52483 52484 52485 52486 52487 52488 52489 52490 52491 52492 52493 52494 52495 52496 52497 52498 52499 52500 52501 52502 52503 52504 52505 52506 52507 52508 52509 52510 52511 52512 52513 52514 52515 52516 52517 52518 52519 52520 52521 52522 52523 52524 52525 52526 52527 52528 52529 52530 52531 52532 52533 52534 52535 52536 52537 52538 52539 52540 52541 52542 52543 52544 52545 52546 52547 52548 52549 52550 52551 52552 52553 52554 52555 52556 52557 52558 52559 52560 52561 52562 52563 52564 52565 52566 52567 52568 52569 52570 52571 52572 52573 52574 52575 52576 52577 52578 52579 52580 52581 52582 52583 52584 52585 52586 52587 52588 52589 52590 52591 52592 52593 52594 52595 52596 52597
pub fn deser_structure_crate_model_ipam_address_history_record(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamAddressHistoryRecord, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamAddressHistoryRecord::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("resourceOwnerId") /* ResourceOwnerId com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceOwnerId */ => {
let var_2502 =
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_resource_owner_id(var_2502);
}
,
s if s.matches("resourceRegion") /* ResourceRegion com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceRegion */ => {
let var_2503 =
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_resource_region(var_2503);
}
,
s if s.matches("resourceType") /* ResourceType com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceType */ => {
let var_2504 =
Some(
Result::<crate::model::IpamAddressHistoryResourceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamAddressHistoryResourceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_type(var_2504);
}
,
s if s.matches("resourceId") /* ResourceId com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceId */ => {
let var_2505 =
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_resource_id(var_2505);
}
,
s if s.matches("resourceCidr") /* ResourceCidr com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceCidr */ => {
let var_2506 =
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_resource_cidr(var_2506);
}
,
s if s.matches("resourceName") /* ResourceName com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceName */ => {
let var_2507 =
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_resource_name(var_2507);
}
,
s if s.matches("resourceComplianceStatus") /* ResourceComplianceStatus com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceComplianceStatus */ => {
let var_2508 =
Some(
Result::<crate::model::IpamComplianceStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamComplianceStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_compliance_status(var_2508);
}
,
s if s.matches("resourceOverlapStatus") /* ResourceOverlapStatus com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceOverlapStatus */ => {
let var_2509 =
Some(
Result::<crate::model::IpamOverlapStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamOverlapStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_overlap_status(var_2509);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#IpamAddressHistoryRecord$VpcId */ => {
let var_2510 =
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_vpc_id(var_2510);
}
,
s if s.matches("sampledStartTime") /* SampledStartTime com.amazonaws.ec2#IpamAddressHistoryRecord$SampledStartTime */ => {
let var_2511 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
?
)
;
builder = builder.set_sampled_start_time(var_2511);
}
,
s if s.matches("sampledEndTime") /* SampledEndTime com.amazonaws.ec2#IpamAddressHistoryRecord$SampledEndTime */ => {
let var_2512 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
?
)
;
builder = builder.set_sampled_end_time(var_2512);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for IpamAddressHistoryRecord
impl Clone for IpamAddressHistoryRecord
source§fn clone(&self) -> IpamAddressHistoryRecord
fn clone(&self) -> IpamAddressHistoryRecord
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more