Struct aws_sdk_ec2::types::builders::IpRangeBuilder
source · #[non_exhaustive]pub struct IpRangeBuilder { /* private fields */ }
Expand description
A builder for IpRange
.
Implementations§
source§impl IpRangeBuilder
impl IpRangeBuilder
sourcepub fn cidr_ip(self, input: impl Into<String>) -> Self
pub fn cidr_ip(self, input: impl Into<String>) -> Self
The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
sourcepub fn set_cidr_ip(self, input: Option<String>) -> Self
pub fn set_cidr_ip(self, input: Option<String>) -> Self
The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
sourcepub fn get_cidr_ip(&self) -> &Option<String>
pub fn get_cidr_ip(&self) -> &Option<String>
The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
Trait Implementations§
source§impl Clone for IpRangeBuilder
impl Clone for IpRangeBuilder
source§fn clone(&self) -> IpRangeBuilder
fn clone(&self) -> IpRangeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IpRangeBuilder
impl Debug for IpRangeBuilder
source§impl Default for IpRangeBuilder
impl Default for IpRangeBuilder
source§fn default() -> IpRangeBuilder
fn default() -> IpRangeBuilder
source§impl PartialEq<IpRangeBuilder> for IpRangeBuilder
impl PartialEq<IpRangeBuilder> for IpRangeBuilder
source§fn eq(&self, other: &IpRangeBuilder) -> bool
fn eq(&self, other: &IpRangeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.