Struct aws_sdk_ec2::types::builders::SecurityGroupReferenceBuilder
source · #[non_exhaustive]pub struct SecurityGroupReferenceBuilder { /* private fields */ }
Expand description
A builder for SecurityGroupReference
.
Implementations§
source§impl SecurityGroupReferenceBuilder
impl SecurityGroupReferenceBuilder
sourcepub fn set_group_id(self, input: Option<String>) -> Self
pub fn set_group_id(self, input: Option<String>) -> Self
The ID of your security group.
sourcepub fn get_group_id(&self) -> &Option<String>
pub fn get_group_id(&self) -> &Option<String>
The ID of your security group.
sourcepub fn referencing_vpc_id(self, input: impl Into<String>) -> Self
pub fn referencing_vpc_id(self, input: impl Into<String>) -> Self
The ID of the VPC with the referencing security group.
sourcepub fn set_referencing_vpc_id(self, input: Option<String>) -> Self
pub fn set_referencing_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC with the referencing security group.
sourcepub fn get_referencing_vpc_id(&self) -> &Option<String>
pub fn get_referencing_vpc_id(&self) -> &Option<String>
The ID of the VPC with the referencing security group.
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 (if applicable). For more information about security group referencing for peering connections, see Update your security groups to reference peer security groups in the VPC Peering Guide.
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 (if applicable). For more information about security group referencing for peering connections, see Update your security groups to reference peer security groups in the VPC Peering Guide.
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 (if applicable). For more information about security group referencing for peering connections, see Update your security groups to reference peer security groups in the VPC Peering Guide.
sourcepub fn transit_gateway_id(self, input: impl Into<String>) -> Self
pub fn transit_gateway_id(self, input: impl Into<String>) -> Self
The ID of the transit gateway (if applicable). For more information about security group referencing for transit gateways, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.
sourcepub fn set_transit_gateway_id(self, input: Option<String>) -> Self
pub fn set_transit_gateway_id(self, input: Option<String>) -> Self
The ID of the transit gateway (if applicable). For more information about security group referencing for transit gateways, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.
sourcepub fn get_transit_gateway_id(&self) -> &Option<String>
pub fn get_transit_gateway_id(&self) -> &Option<String>
The ID of the transit gateway (if applicable). For more information about security group referencing for transit gateways, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.
sourcepub fn build(self) -> SecurityGroupReference
pub fn build(self) -> SecurityGroupReference
Consumes the builder and constructs a SecurityGroupReference
.
Trait Implementations§
source§impl Clone for SecurityGroupReferenceBuilder
impl Clone for SecurityGroupReferenceBuilder
source§fn clone(&self) -> SecurityGroupReferenceBuilder
fn clone(&self) -> SecurityGroupReferenceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SecurityGroupReferenceBuilder
impl Default for SecurityGroupReferenceBuilder
source§fn default() -> SecurityGroupReferenceBuilder
fn default() -> SecurityGroupReferenceBuilder
source§impl PartialEq for SecurityGroupReferenceBuilder
impl PartialEq for SecurityGroupReferenceBuilder
source§fn eq(&self, other: &SecurityGroupReferenceBuilder) -> bool
fn eq(&self, other: &SecurityGroupReferenceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.