Struct aws_sdk_networkfirewall::model::rule_variables::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for RuleVariables
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ip_sets(self, k: impl Into<String>, v: IpSet) -> Self
pub fn ip_sets(self, k: impl Into<String>, v: IpSet) -> Self
Adds a key-value pair to ip_sets
.
To override the contents of this collection use set_ip_sets
.
A list of IP addresses and address ranges, in CIDR notation.
sourcepub fn set_ip_sets(self, input: Option<HashMap<String, IpSet>>) -> Self
pub fn set_ip_sets(self, input: Option<HashMap<String, IpSet>>) -> Self
A list of IP addresses and address ranges, in CIDR notation.
sourcepub fn port_sets(self, k: impl Into<String>, v: PortSet) -> Self
pub fn port_sets(self, k: impl Into<String>, v: PortSet) -> Self
Adds a key-value pair to port_sets
.
To override the contents of this collection use set_port_sets
.
A list of port ranges.
sourcepub fn set_port_sets(self, input: Option<HashMap<String, PortSet>>) -> Self
pub fn set_port_sets(self, input: Option<HashMap<String, PortSet>>) -> Self
A list of port ranges.
sourcepub fn build(self) -> RuleVariables
pub fn build(self) -> RuleVariables
Consumes the builder and constructs a RuleVariables
.