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 for SecurityGroupBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for SecurityGroupBuilder
Auto Trait Implementations§
impl Freeze for SecurityGroupBuilder
impl RefUnwindSafe for SecurityGroupBuilder
impl Send for SecurityGroupBuilder
impl Sync for SecurityGroupBuilder
impl Unpin for SecurityGroupBuilder
impl UnwindSafe for SecurityGroupBuilder
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