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 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
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 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
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 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.
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 type number. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 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 type number. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 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 type number. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 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<SecurityGroupRuleBuilder> for SecurityGroupRuleBuilder
impl PartialEq<SecurityGroupRuleBuilder> 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 ==
.