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<IcmpTypeCodeBuilder> for IcmpTypeCodeBuilder
impl PartialEq<IcmpTypeCodeBuilder> 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 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