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 address range. You can either specify a CIDR block 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 address range. You can either specify a CIDR block 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 address range. You can either specify a CIDR block 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 for IpRangeBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for IpRangeBuilder
Auto Trait Implementations§
impl Freeze for IpRangeBuilder
impl RefUnwindSafe for IpRangeBuilder
impl Send for IpRangeBuilder
impl Sync for IpRangeBuilder
impl Unpin for IpRangeBuilder
impl UnwindSafe for IpRangeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more