#[non_exhaustive]pub struct SecurityGroupRuleRequestBuilder { /* private fields */ }
Expand description
A builder for SecurityGroupRuleRequest
.
Implementations§
source§impl SecurityGroupRuleRequestBuilder
impl SecurityGroupRuleRequestBuilder
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 code. 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 code. 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 code. 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 cidr_ipv4(self, input: impl Into<String>) -> Self
pub fn cidr_ipv4(self, input: impl Into<String>) -> Self
The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.
sourcepub fn set_cidr_ipv4(self, input: Option<String>) -> Self
pub fn set_cidr_ipv4(self, input: Option<String>) -> Self
The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.
sourcepub fn get_cidr_ipv4(&self) -> &Option<String>
pub fn get_cidr_ipv4(&self) -> &Option<String>
The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.
sourcepub fn cidr_ipv6(self, input: impl Into<String>) -> Self
pub fn cidr_ipv6(self, input: impl Into<String>) -> Self
The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.
sourcepub fn set_cidr_ipv6(self, input: Option<String>) -> Self
pub fn set_cidr_ipv6(self, input: Option<String>) -> Self
The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.
sourcepub fn get_cidr_ipv6(&self) -> &Option<String>
pub fn get_cidr_ipv6(&self) -> &Option<String>
The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.
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_id(self, input: impl Into<String>) -> Self
pub fn referenced_group_id(self, input: impl Into<String>) -> Self
The ID of the security group that is referenced in the security group rule.
sourcepub fn set_referenced_group_id(self, input: Option<String>) -> Self
pub fn set_referenced_group_id(self, input: Option<String>) -> Self
The ID of the security group that is referenced in the security group rule.
sourcepub fn get_referenced_group_id(&self) -> &Option<String>
pub fn get_referenced_group_id(&self) -> &Option<String>
The ID of the security group that is referenced in the security group rule.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the security group rule.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the security group rule.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the security group rule.
sourcepub fn build(self) -> SecurityGroupRuleRequest
pub fn build(self) -> SecurityGroupRuleRequest
Consumes the builder and constructs a SecurityGroupRuleRequest
.
Trait Implementations§
source§impl Clone for SecurityGroupRuleRequestBuilder
impl Clone for SecurityGroupRuleRequestBuilder
source§fn clone(&self) -> SecurityGroupRuleRequestBuilder
fn clone(&self) -> SecurityGroupRuleRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SecurityGroupRuleRequestBuilder
impl Default for SecurityGroupRuleRequestBuilder
source§fn default() -> SecurityGroupRuleRequestBuilder
fn default() -> SecurityGroupRuleRequestBuilder
source§impl PartialEq<SecurityGroupRuleRequestBuilder> for SecurityGroupRuleRequestBuilder
impl PartialEq<SecurityGroupRuleRequestBuilder> for SecurityGroupRuleRequestBuilder
source§fn eq(&self, other: &SecurityGroupRuleRequestBuilder) -> bool
fn eq(&self, other: &SecurityGroupRuleRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.