Struct aws_sdk_ec2::types::builders::FirewallStatefulRuleBuilder
source · #[non_exhaustive]pub struct FirewallStatefulRuleBuilder { /* private fields */ }
Expand description
A builder for FirewallStatefulRule
.
Implementations§
source§impl FirewallStatefulRuleBuilder
impl FirewallStatefulRuleBuilder
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 stateful 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 stateful rule group.
sourcepub fn get_rule_group_arn(&self) -> &Option<String>
pub fn get_rule_group_arn(&self) -> &Option<String>
The ARN of the stateful 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 set_protocol(self, input: Option<String>) -> Self
pub fn set_protocol(self, input: Option<String>) -> Self
The protocol.
sourcepub fn get_protocol(&self) -> &Option<String>
pub fn get_protocol(&self) -> &Option<String>
The protocol.
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 alert
.
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 alert
.
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 alert
.
sourcepub fn direction(self, input: impl Into<String>) -> Self
pub fn direction(self, input: impl Into<String>) -> Self
The direction. The possible values are FORWARD
and ANY
.
sourcepub fn set_direction(self, input: Option<String>) -> Self
pub fn set_direction(self, input: Option<String>) -> Self
The direction. The possible values are FORWARD
and ANY
.
sourcepub fn get_direction(&self) -> &Option<String>
pub fn get_direction(&self) -> &Option<String>
The direction. The possible values are FORWARD
and ANY
.
sourcepub fn build(self) -> FirewallStatefulRule
pub fn build(self) -> FirewallStatefulRule
Consumes the builder and constructs a FirewallStatefulRule
.
Trait Implementations§
source§impl Clone for FirewallStatefulRuleBuilder
impl Clone for FirewallStatefulRuleBuilder
source§fn clone(&self) -> FirewallStatefulRuleBuilder
fn clone(&self) -> FirewallStatefulRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirewallStatefulRuleBuilder
impl Debug for FirewallStatefulRuleBuilder
source§impl Default for FirewallStatefulRuleBuilder
impl Default for FirewallStatefulRuleBuilder
source§fn default() -> FirewallStatefulRuleBuilder
fn default() -> FirewallStatefulRuleBuilder
source§impl PartialEq<FirewallStatefulRuleBuilder> for FirewallStatefulRuleBuilder
impl PartialEq<FirewallStatefulRuleBuilder> for FirewallStatefulRuleBuilder
source§fn eq(&self, other: &FirewallStatefulRuleBuilder) -> bool
fn eq(&self, other: &FirewallStatefulRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.