Struct aws_sdk_ec2::types::builders::VpcPeeringConnectionBuilder
source · #[non_exhaustive]pub struct VpcPeeringConnectionBuilder { /* private fields */ }
Expand description
A builder for VpcPeeringConnection
.
Implementations§
source§impl VpcPeeringConnectionBuilder
impl VpcPeeringConnectionBuilder
sourcepub fn accepter_vpc_info(self, input: VpcPeeringConnectionVpcInfo) -> Self
pub fn accepter_vpc_info(self, input: VpcPeeringConnectionVpcInfo) -> Self
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
sourcepub fn set_accepter_vpc_info(
self,
input: Option<VpcPeeringConnectionVpcInfo>,
) -> Self
pub fn set_accepter_vpc_info( self, input: Option<VpcPeeringConnectionVpcInfo>, ) -> Self
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
sourcepub fn get_accepter_vpc_info(&self) -> &Option<VpcPeeringConnectionVpcInfo>
pub fn get_accepter_vpc_info(&self) -> &Option<VpcPeeringConnectionVpcInfo>
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
sourcepub fn expiration_time(self, input: DateTime) -> Self
pub fn expiration_time(self, input: DateTime) -> Self
The time that an unaccepted VPC peering connection will expire.
sourcepub fn set_expiration_time(self, input: Option<DateTime>) -> Self
pub fn set_expiration_time(self, input: Option<DateTime>) -> Self
The time that an unaccepted VPC peering connection will expire.
sourcepub fn get_expiration_time(&self) -> &Option<DateTime>
pub fn get_expiration_time(&self) -> &Option<DateTime>
The time that an unaccepted VPC peering connection will expire.
sourcepub fn requester_vpc_info(self, input: VpcPeeringConnectionVpcInfo) -> Self
pub fn requester_vpc_info(self, input: VpcPeeringConnectionVpcInfo) -> Self
Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
sourcepub fn set_requester_vpc_info(
self,
input: Option<VpcPeeringConnectionVpcInfo>,
) -> Self
pub fn set_requester_vpc_info( self, input: Option<VpcPeeringConnectionVpcInfo>, ) -> Self
Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
sourcepub fn get_requester_vpc_info(&self) -> &Option<VpcPeeringConnectionVpcInfo>
pub fn get_requester_vpc_info(&self) -> &Option<VpcPeeringConnectionVpcInfo>
Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
sourcepub fn status(self, input: VpcPeeringConnectionStateReason) -> Self
pub fn status(self, input: VpcPeeringConnectionStateReason) -> Self
The status of the VPC peering connection.
sourcepub fn set_status(self, input: Option<VpcPeeringConnectionStateReason>) -> Self
pub fn set_status(self, input: Option<VpcPeeringConnectionStateReason>) -> Self
The status of the VPC peering connection.
sourcepub fn get_status(&self) -> &Option<VpcPeeringConnectionStateReason>
pub fn get_status(&self) -> &Option<VpcPeeringConnectionStateReason>
The status of the VPC peering connection.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the resource.
Any tags assigned to the resource.
Any tags assigned to the resource.
sourcepub fn vpc_peering_connection_id(self, input: impl Into<String>) -> Self
pub fn vpc_peering_connection_id(self, input: impl Into<String>) -> Self
The ID of the VPC peering connection.
sourcepub fn set_vpc_peering_connection_id(self, input: Option<String>) -> Self
pub fn set_vpc_peering_connection_id(self, input: Option<String>) -> Self
The ID of the VPC peering connection.
sourcepub fn get_vpc_peering_connection_id(&self) -> &Option<String>
pub fn get_vpc_peering_connection_id(&self) -> &Option<String>
The ID of the VPC peering connection.
sourcepub fn build(self) -> VpcPeeringConnection
pub fn build(self) -> VpcPeeringConnection
Consumes the builder and constructs a VpcPeeringConnection
.
Trait Implementations§
source§impl Clone for VpcPeeringConnectionBuilder
impl Clone for VpcPeeringConnectionBuilder
source§fn clone(&self) -> VpcPeeringConnectionBuilder
fn clone(&self) -> VpcPeeringConnectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VpcPeeringConnectionBuilder
impl Debug for VpcPeeringConnectionBuilder
source§impl Default for VpcPeeringConnectionBuilder
impl Default for VpcPeeringConnectionBuilder
source§fn default() -> VpcPeeringConnectionBuilder
fn default() -> VpcPeeringConnectionBuilder
source§impl PartialEq for VpcPeeringConnectionBuilder
impl PartialEq for VpcPeeringConnectionBuilder
source§fn eq(&self, other: &VpcPeeringConnectionBuilder) -> bool
fn eq(&self, other: &VpcPeeringConnectionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VpcPeeringConnectionBuilder
Auto Trait Implementations§
impl Freeze for VpcPeeringConnectionBuilder
impl RefUnwindSafe for VpcPeeringConnectionBuilder
impl Send for VpcPeeringConnectionBuilder
impl Sync for VpcPeeringConnectionBuilder
impl Unpin for VpcPeeringConnectionBuilder
impl UnwindSafe for VpcPeeringConnectionBuilder
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
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>
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>
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 more