Struct aws_sdk_ec2::types::builders::IcmpTypeCodeBuilder   
source · #[non_exhaustive]pub struct IcmpTypeCodeBuilder { /* private fields */ }Expand description
A builder for IcmpTypeCode.
Implementations§
source§impl IcmpTypeCodeBuilder
 
impl IcmpTypeCodeBuilder
sourcepub fn code(self, input: i32) -> Self
 
pub fn code(self, input: i32) -> Self
The ICMP code. A value of -1 means all codes for the specified ICMP type.
sourcepub fn set_code(self, input: Option<i32>) -> Self
 
pub fn set_code(self, input: Option<i32>) -> Self
The ICMP code. A value of -1 means all codes for the specified ICMP type.
sourcepub fn get_code(&self) -> &Option<i32>
 
pub fn get_code(&self) -> &Option<i32>
The ICMP code. A value of -1 means all codes for the specified ICMP type.
sourcepub fn set_type(self, input: Option<i32>) -> Self
 
pub fn set_type(self, input: Option<i32>) -> Self
The ICMP type. A value of -1 means all types.
sourcepub fn build(self) -> IcmpTypeCode
 
pub fn build(self) -> IcmpTypeCode
Consumes the builder and constructs a IcmpTypeCode.
Trait Implementations§
source§impl Clone for IcmpTypeCodeBuilder
 
impl Clone for IcmpTypeCodeBuilder
source§fn clone(&self) -> IcmpTypeCodeBuilder
 
fn clone(&self) -> IcmpTypeCodeBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for IcmpTypeCodeBuilder
 
impl Debug for IcmpTypeCodeBuilder
source§impl Default for IcmpTypeCodeBuilder
 
impl Default for IcmpTypeCodeBuilder
source§fn default() -> IcmpTypeCodeBuilder
 
fn default() -> IcmpTypeCodeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for IcmpTypeCodeBuilder
 
impl PartialEq for IcmpTypeCodeBuilder
source§fn eq(&self, other: &IcmpTypeCodeBuilder) -> bool
 
fn eq(&self, other: &IcmpTypeCodeBuilder) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IcmpTypeCodeBuilder
Auto Trait Implementations§
impl Freeze for IcmpTypeCodeBuilder
impl RefUnwindSafe for IcmpTypeCodeBuilder
impl Send for IcmpTypeCodeBuilder
impl Sync for IcmpTypeCodeBuilder
impl Unpin for IcmpTypeCodeBuilder
impl UnwindSafe for IcmpTypeCodeBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts 
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>
Converts 
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 moreCreates a shared type from an unshared type.