Struct aws_sdk_ec2::types::builders::SecurityGroupBuilder
source · #[non_exhaustive]pub struct SecurityGroupBuilder { /* private fields */ }
Expand description
A builder for SecurityGroup
.
Implementations§
source§impl SecurityGroupBuilder
impl SecurityGroupBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the security group.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the security group.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the security group.
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
The name of the security group.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
The name of the security group.
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
The name of the security group.
sourcepub fn ip_permissions(self, input: IpPermission) -> Self
pub fn ip_permissions(self, input: IpPermission) -> Self
Appends an item to ip_permissions
.
To override the contents of this collection use set_ip_permissions
.
The inbound rules associated with the security group.
sourcepub fn set_ip_permissions(self, input: Option<Vec<IpPermission>>) -> Self
pub fn set_ip_permissions(self, input: Option<Vec<IpPermission>>) -> Self
The inbound rules associated with the security group.
sourcepub fn get_ip_permissions(&self) -> &Option<Vec<IpPermission>>
pub fn get_ip_permissions(&self) -> &Option<Vec<IpPermission>>
The inbound rules associated with the security group.
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the owner of the security group.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the owner of the security group.
sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
The Amazon Web Services account ID of the owner of the security group.
sourcepub fn set_group_id(self, input: Option<String>) -> Self
pub fn set_group_id(self, input: Option<String>) -> Self
The ID of the security group.
sourcepub fn get_group_id(&self) -> &Option<String>
pub fn get_group_id(&self) -> &Option<String>
The ID of the security group.
sourcepub fn ip_permissions_egress(self, input: IpPermission) -> Self
pub fn ip_permissions_egress(self, input: IpPermission) -> Self
Appends an item to ip_permissions_egress
.
To override the contents of this collection use set_ip_permissions_egress
.
The outbound rules associated with the security group.
sourcepub fn set_ip_permissions_egress(self, input: Option<Vec<IpPermission>>) -> Self
pub fn set_ip_permissions_egress(self, input: Option<Vec<IpPermission>>) -> Self
The outbound rules associated with the security group.
sourcepub fn get_ip_permissions_egress(&self) -> &Option<Vec<IpPermission>>
pub fn get_ip_permissions_egress(&self) -> &Option<Vec<IpPermission>>
The outbound rules associated with the security group.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the security group.
Any tags assigned to the security group.
Any tags assigned to the security group.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The ID of the VPC for the security group.
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 for the security group.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The ID of the VPC for the security group.
sourcepub fn build(self) -> SecurityGroup
pub fn build(self) -> SecurityGroup
Consumes the builder and constructs a SecurityGroup
.
Trait Implementations§
source§impl Clone for SecurityGroupBuilder
impl Clone for SecurityGroupBuilder
source§fn clone(&self) -> SecurityGroupBuilder
fn clone(&self) -> SecurityGroupBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecurityGroupBuilder
impl Debug for SecurityGroupBuilder
source§impl Default for SecurityGroupBuilder
impl Default for SecurityGroupBuilder
source§fn default() -> SecurityGroupBuilder
fn default() -> SecurityGroupBuilder
source§impl PartialEq<SecurityGroupBuilder> for SecurityGroupBuilder
impl PartialEq<SecurityGroupBuilder> for SecurityGroupBuilder
source§fn eq(&self, other: &SecurityGroupBuilder) -> bool
fn eq(&self, other: &SecurityGroupBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.