Struct aws_sdk_ec2::model::internet_gateway_attachment::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InternetGatewayAttachment
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> InternetGatewayAttachment
pub fn build(self) -> InternetGatewayAttachment
Consumes the builder and constructs a InternetGatewayAttachment
.