Struct aws_sdk_ec2::types::SubnetCidrReservation
source · #[non_exhaustive]pub struct SubnetCidrReservation {
pub subnet_cidr_reservation_id: Option<String>,
pub subnet_id: Option<String>,
pub cidr: Option<String>,
pub reservation_type: Option<SubnetCidrReservationType>,
pub owner_id: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Expand description
Describes a subnet CIDR reservation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.subnet_cidr_reservation_id: Option<String>
The ID of the subnet CIDR reservation.
subnet_id: Option<String>
The ID of the subnet.
cidr: Option<String>
The CIDR that has been reserved.
reservation_type: Option<SubnetCidrReservationType>
The type of reservation.
owner_id: Option<String>
The ID of the account that owns the subnet CIDR reservation.
description: Option<String>
The description assigned to the subnet CIDR reservation.
The tags assigned to the subnet CIDR reservation.
Implementations§
source§impl SubnetCidrReservation
impl SubnetCidrReservation
sourcepub fn subnet_cidr_reservation_id(&self) -> Option<&str>
pub fn subnet_cidr_reservation_id(&self) -> Option<&str>
The ID of the subnet CIDR reservation.
sourcepub fn reservation_type(&self) -> Option<&SubnetCidrReservationType>
pub fn reservation_type(&self) -> Option<&SubnetCidrReservationType>
The type of reservation.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the account that owns the subnet CIDR reservation.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description assigned to the subnet CIDR reservation.
The tags assigned to the subnet CIDR reservation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl SubnetCidrReservation
impl SubnetCidrReservation
sourcepub fn builder() -> SubnetCidrReservationBuilder
pub fn builder() -> SubnetCidrReservationBuilder
Creates a new builder-style object to manufacture SubnetCidrReservation
.
Trait Implementations§
source§impl Clone for SubnetCidrReservation
impl Clone for SubnetCidrReservation
source§fn clone(&self) -> SubnetCidrReservation
fn clone(&self) -> SubnetCidrReservation
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 moresource§impl Debug for SubnetCidrReservation
impl Debug for SubnetCidrReservation
source§impl PartialEq for SubnetCidrReservation
impl PartialEq for SubnetCidrReservation
source§fn eq(&self, other: &SubnetCidrReservation) -> bool
fn eq(&self, other: &SubnetCidrReservation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubnetCidrReservation
Auto Trait Implementations§
impl Freeze for SubnetCidrReservation
impl RefUnwindSafe for SubnetCidrReservation
impl Send for SubnetCidrReservation
impl Sync for SubnetCidrReservation
impl Unpin for SubnetCidrReservation
impl UnwindSafe for SubnetCidrReservation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.