Struct aws_sdk_ec2::types::builders::FirewallStatelessRuleBuilder
source · #[non_exhaustive]pub struct FirewallStatelessRuleBuilder { /* private fields */ }
Expand description
A builder for FirewallStatelessRule
.
Implementations§
source§impl FirewallStatelessRuleBuilder
impl FirewallStatelessRuleBuilder
sourcepub fn rule_group_arn(self, input: impl Into<String>) -> Self
pub fn rule_group_arn(self, input: impl Into<String>) -> Self
The ARN of the stateless rule group.
sourcepub fn set_rule_group_arn(self, input: Option<String>) -> Self
pub fn set_rule_group_arn(self, input: Option<String>) -> Self
The ARN of the stateless rule group.
sourcepub fn get_rule_group_arn(&self) -> &Option<String>
pub fn get_rule_group_arn(&self) -> &Option<String>
The ARN of the stateless rule group.
sourcepub fn sources(self, input: impl Into<String>) -> Self
pub fn sources(self, input: impl Into<String>) -> Self
Appends an item to sources
.
To override the contents of this collection use set_sources
.
The source IP addresses, in CIDR notation.
sourcepub fn set_sources(self, input: Option<Vec<String>>) -> Self
pub fn set_sources(self, input: Option<Vec<String>>) -> Self
The source IP addresses, in CIDR notation.
sourcepub fn get_sources(&self) -> &Option<Vec<String>>
pub fn get_sources(&self) -> &Option<Vec<String>>
The source IP addresses, in CIDR notation.
sourcepub fn destinations(self, input: impl Into<String>) -> Self
pub fn destinations(self, input: impl Into<String>) -> Self
Appends an item to destinations
.
To override the contents of this collection use set_destinations
.
The destination IP addresses, in CIDR notation.
sourcepub fn set_destinations(self, input: Option<Vec<String>>) -> Self
pub fn set_destinations(self, input: Option<Vec<String>>) -> Self
The destination IP addresses, in CIDR notation.
sourcepub fn get_destinations(&self) -> &Option<Vec<String>>
pub fn get_destinations(&self) -> &Option<Vec<String>>
The destination IP addresses, in CIDR notation.
sourcepub fn source_ports(self, input: PortRange) -> Self
pub fn source_ports(self, input: PortRange) -> Self
Appends an item to source_ports
.
To override the contents of this collection use set_source_ports
.
The source ports.
sourcepub fn set_source_ports(self, input: Option<Vec<PortRange>>) -> Self
pub fn set_source_ports(self, input: Option<Vec<PortRange>>) -> Self
The source ports.
sourcepub fn get_source_ports(&self) -> &Option<Vec<PortRange>>
pub fn get_source_ports(&self) -> &Option<Vec<PortRange>>
The source ports.
sourcepub fn destination_ports(self, input: PortRange) -> Self
pub fn destination_ports(self, input: PortRange) -> Self
Appends an item to destination_ports
.
To override the contents of this collection use set_destination_ports
.
The destination ports.
sourcepub fn set_destination_ports(self, input: Option<Vec<PortRange>>) -> Self
pub fn set_destination_ports(self, input: Option<Vec<PortRange>>) -> Self
The destination ports.
sourcepub fn get_destination_ports(&self) -> &Option<Vec<PortRange>>
pub fn get_destination_ports(&self) -> &Option<Vec<PortRange>>
The destination ports.
sourcepub fn protocols(self, input: i32) -> Self
pub fn protocols(self, input: i32) -> Self
Appends an item to protocols
.
To override the contents of this collection use set_protocols
.
The protocols.
sourcepub fn set_protocols(self, input: Option<Vec<i32>>) -> Self
pub fn set_protocols(self, input: Option<Vec<i32>>) -> Self
The protocols.
sourcepub fn get_protocols(&self) -> &Option<Vec<i32>>
pub fn get_protocols(&self) -> &Option<Vec<i32>>
The protocols.
sourcepub fn rule_action(self, input: impl Into<String>) -> Self
pub fn rule_action(self, input: impl Into<String>) -> Self
The rule action. The possible values are pass
, drop
, and forward_to_site
.
sourcepub fn set_rule_action(self, input: Option<String>) -> Self
pub fn set_rule_action(self, input: Option<String>) -> Self
The rule action. The possible values are pass
, drop
, and forward_to_site
.
sourcepub fn get_rule_action(&self) -> &Option<String>
pub fn get_rule_action(&self) -> &Option<String>
The rule action. The possible values are pass
, drop
, and forward_to_site
.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
The rule priority.
sourcepub fn get_priority(&self) -> &Option<i32>
pub fn get_priority(&self) -> &Option<i32>
The rule priority.
sourcepub fn build(self) -> FirewallStatelessRule
pub fn build(self) -> FirewallStatelessRule
Consumes the builder and constructs a FirewallStatelessRule
.
Trait Implementations§
source§impl Clone for FirewallStatelessRuleBuilder
impl Clone for FirewallStatelessRuleBuilder
source§fn clone(&self) -> FirewallStatelessRuleBuilder
fn clone(&self) -> FirewallStatelessRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirewallStatelessRuleBuilder
impl Debug for FirewallStatelessRuleBuilder
source§impl Default for FirewallStatelessRuleBuilder
impl Default for FirewallStatelessRuleBuilder
source§fn default() -> FirewallStatelessRuleBuilder
fn default() -> FirewallStatelessRuleBuilder
source§impl PartialEq<FirewallStatelessRuleBuilder> for FirewallStatelessRuleBuilder
impl PartialEq<FirewallStatelessRuleBuilder> for FirewallStatelessRuleBuilder
source§fn eq(&self, other: &FirewallStatelessRuleBuilder) -> bool
fn eq(&self, other: &FirewallStatelessRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.