#[non_exhaustive]pub struct InternetGatewayAttachmentBuilder { /* private fields */ }
Expand description
A builder for InternetGatewayAttachment
.
Implementations§
source§impl InternetGatewayAttachmentBuilder
impl InternetGatewayAttachmentBuilder
sourcepub fn state(self, input: AttachmentStatus) -> Self
pub fn state(self, input: AttachmentStatus) -> Self
The current state of the attachment. For an internet gateway, the state is available
when attached to a VPC; otherwise, this value is not returned.
sourcepub fn set_state(self, input: Option<AttachmentStatus>) -> Self
pub fn set_state(self, input: Option<AttachmentStatus>) -> Self
The current state of the attachment. For an internet gateway, the state is available
when attached to a VPC; otherwise, this value is not returned.
sourcepub fn get_state(&self) -> &Option<AttachmentStatus>
pub fn get_state(&self) -> &Option<AttachmentStatus>
The current state of the attachment. For an internet gateway, the state is available
when attached to a VPC; otherwise, this value is not returned.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The ID of the VPC.
sourcepub fn build(self) -> InternetGatewayAttachment
pub fn build(self) -> InternetGatewayAttachment
Consumes the builder and constructs a InternetGatewayAttachment
.
Trait Implementations§
source§impl Clone for InternetGatewayAttachmentBuilder
impl Clone for InternetGatewayAttachmentBuilder
source§fn clone(&self) -> InternetGatewayAttachmentBuilder
fn clone(&self) -> InternetGatewayAttachmentBuilder
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 Default for InternetGatewayAttachmentBuilder
impl Default for InternetGatewayAttachmentBuilder
source§fn default() -> InternetGatewayAttachmentBuilder
fn default() -> InternetGatewayAttachmentBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InternetGatewayAttachmentBuilder
impl PartialEq for InternetGatewayAttachmentBuilder
source§fn eq(&self, other: &InternetGatewayAttachmentBuilder) -> bool
fn eq(&self, other: &InternetGatewayAttachmentBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InternetGatewayAttachmentBuilder
Auto Trait Implementations§
impl Freeze for InternetGatewayAttachmentBuilder
impl RefUnwindSafe for InternetGatewayAttachmentBuilder
impl Send for InternetGatewayAttachmentBuilder
impl Sync for InternetGatewayAttachmentBuilder
impl Unpin for InternetGatewayAttachmentBuilder
impl UnwindSafe for InternetGatewayAttachmentBuilder
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>
Creates a shared type from an unshared type.