Struct aws_sdk_ec2::types::builders::SecurityGroupRuleBuilder
source · #[non_exhaustive]pub struct SecurityGroupRuleBuilder { /* private fields */ }
Expand description
A builder for SecurityGroupRule
.
Implementations§
source§impl SecurityGroupRuleBuilder
impl SecurityGroupRuleBuilder
sourcepub fn security_group_rule_id(self, input: impl Into<String>) -> Self
pub fn security_group_rule_id(self, input: impl Into<String>) -> Self
The ID of the security group rule.
sourcepub fn set_security_group_rule_id(self, input: Option<String>) -> Self
pub fn set_security_group_rule_id(self, input: Option<String>) -> Self
The ID of the security group rule.
sourcepub fn get_security_group_rule_id(&self) -> &Option<String>
pub fn get_security_group_rule_id(&self) -> &Option<String>
The ID of the security group rule.
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 group_owner_id(self, input: impl Into<String>) -> Self
pub fn group_owner_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the security group.
sourcepub fn set_group_owner_id(self, input: Option<String>) -> Self
pub fn set_group_owner_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the security group.
sourcepub fn get_group_owner_id(&self) -> &Option<String>
pub fn get_group_owner_id(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the security group.
sourcepub fn is_egress(self, input: bool) -> Self
pub fn is_egress(self, input: bool) -> Self
Indicates whether the security group rule is an outbound rule.
sourcepub fn set_is_egress(self, input: Option<bool>) -> Self
pub fn set_is_egress(self, input: Option<bool>) -> Self
Indicates whether the security group rule is an outbound rule.
sourcepub fn get_is_egress(&self) -> &Option<bool>
pub fn get_is_egress(&self) -> &Option<bool>
Indicates whether the security group rule is an outbound rule.
sourcepub fn ip_protocol(self, input: impl Into<String>) -> Self
pub fn ip_protocol(self, input: impl Into<String>) -> Self
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number (see Protocol Numbers).
Use -1
to specify all protocols.
sourcepub fn set_ip_protocol(self, input: Option<String>) -> Self
pub fn set_ip_protocol(self, input: Option<String>) -> Self
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number (see Protocol Numbers).
Use -1
to specify all protocols.
sourcepub fn get_ip_protocol(&self) -> &Option<String>
pub fn get_ip_protocol(&self) -> &Option<String>
The IP protocol name (tcp
, udp
, icmp
, icmpv6
) or number (see Protocol Numbers).
Use -1
to specify all protocols.
sourcepub fn from_port(self, input: i32) -> Self
pub fn from_port(self, input: i32) -> Self
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
sourcepub fn set_from_port(self, input: Option<i32>) -> Self
pub fn set_from_port(self, input: Option<i32>) -> Self
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
sourcepub fn get_from_port(&self) -> &Option<i32>
pub fn get_from_port(&self) -> &Option<i32>
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
sourcepub fn to_port(self, input: i32) -> Self
pub fn to_port(self, input: i32) -> Self
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
sourcepub fn set_to_port(self, input: Option<i32>) -> Self
pub fn set_to_port(self, input: Option<i32>) -> Self
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
sourcepub fn get_to_port(&self) -> &Option<i32>
pub fn get_to_port(&self) -> &Option<i32>
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
sourcepub fn set_cidr_ipv4(self, input: Option<String>) -> Self
pub fn set_cidr_ipv4(self, input: Option<String>) -> Self
The IPv4 CIDR range.
sourcepub fn get_cidr_ipv4(&self) -> &Option<String>
pub fn get_cidr_ipv4(&self) -> &Option<String>
The IPv4 CIDR range.
sourcepub fn set_cidr_ipv6(self, input: Option<String>) -> Self
pub fn set_cidr_ipv6(self, input: Option<String>) -> Self
The IPv6 CIDR range.
sourcepub fn get_cidr_ipv6(&self) -> &Option<String>
pub fn get_cidr_ipv6(&self) -> &Option<String>
The IPv6 CIDR range.
sourcepub fn prefix_list_id(self, input: impl Into<String>) -> Self
pub fn prefix_list_id(self, input: impl Into<String>) -> Self
The ID of the prefix list.
sourcepub fn set_prefix_list_id(self, input: Option<String>) -> Self
pub fn set_prefix_list_id(self, input: Option<String>) -> Self
The ID of the prefix list.
sourcepub fn get_prefix_list_id(&self) -> &Option<String>
pub fn get_prefix_list_id(&self) -> &Option<String>
The ID of the prefix list.
sourcepub fn referenced_group_info(self, input: ReferencedSecurityGroup) -> Self
pub fn referenced_group_info(self, input: ReferencedSecurityGroup) -> Self
Describes the security group that is referenced in the rule.
sourcepub fn set_referenced_group_info(
self,
input: Option<ReferencedSecurityGroup>,
) -> Self
pub fn set_referenced_group_info( self, input: Option<ReferencedSecurityGroup>, ) -> Self
Describes the security group that is referenced in the rule.
sourcepub fn get_referenced_group_info(&self) -> &Option<ReferencedSecurityGroup>
pub fn get_referenced_group_info(&self) -> &Option<ReferencedSecurityGroup>
Describes the security group that is referenced in the rule.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The security group rule description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The security group rule description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The security group rule description.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags applied to the security group rule.
The tags applied to the security group rule.
The tags applied to the security group rule.
sourcepub fn build(self) -> SecurityGroupRule
pub fn build(self) -> SecurityGroupRule
Consumes the builder and constructs a SecurityGroupRule
.
Trait Implementations§
source§impl Clone for SecurityGroupRuleBuilder
impl Clone for SecurityGroupRuleBuilder
source§fn clone(&self) -> SecurityGroupRuleBuilder
fn clone(&self) -> SecurityGroupRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecurityGroupRuleBuilder
impl Debug for SecurityGroupRuleBuilder
source§impl Default for SecurityGroupRuleBuilder
impl Default for SecurityGroupRuleBuilder
source§fn default() -> SecurityGroupRuleBuilder
fn default() -> SecurityGroupRuleBuilder
source§impl PartialEq for SecurityGroupRuleBuilder
impl PartialEq for SecurityGroupRuleBuilder
source§fn eq(&self, other: &SecurityGroupRuleBuilder) -> bool
fn eq(&self, other: &SecurityGroupRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecurityGroupRuleBuilder
Auto Trait Implementations§
impl Freeze for SecurityGroupRuleBuilder
impl RefUnwindSafe for SecurityGroupRuleBuilder
impl Send for SecurityGroupRuleBuilder
impl Sync for SecurityGroupRuleBuilder
impl Unpin for SecurityGroupRuleBuilder
impl UnwindSafe for SecurityGroupRuleBuilder
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