#[non_exhaustive]pub struct TrunkInterfaceAssociationBuilder { /* private fields */ }
Expand description
A builder for TrunkInterfaceAssociation
.
Implementations§
source§impl TrunkInterfaceAssociationBuilder
impl TrunkInterfaceAssociationBuilder
sourcepub fn association_id(self, input: impl Into<String>) -> Self
pub fn association_id(self, input: impl Into<String>) -> Self
The ID of the association.
sourcepub fn set_association_id(self, input: Option<String>) -> Self
pub fn set_association_id(self, input: Option<String>) -> Self
The ID of the association.
sourcepub fn get_association_id(&self) -> &Option<String>
pub fn get_association_id(&self) -> &Option<String>
The ID of the association.
sourcepub fn branch_interface_id(self, input: impl Into<String>) -> Self
pub fn branch_interface_id(self, input: impl Into<String>) -> Self
The ID of the branch network interface.
sourcepub fn set_branch_interface_id(self, input: Option<String>) -> Self
pub fn set_branch_interface_id(self, input: Option<String>) -> Self
The ID of the branch network interface.
sourcepub fn get_branch_interface_id(&self) -> &Option<String>
pub fn get_branch_interface_id(&self) -> &Option<String>
The ID of the branch network interface.
sourcepub fn trunk_interface_id(self, input: impl Into<String>) -> Self
pub fn trunk_interface_id(self, input: impl Into<String>) -> Self
The ID of the trunk network interface.
sourcepub fn set_trunk_interface_id(self, input: Option<String>) -> Self
pub fn set_trunk_interface_id(self, input: Option<String>) -> Self
The ID of the trunk network interface.
sourcepub fn get_trunk_interface_id(&self) -> &Option<String>
pub fn get_trunk_interface_id(&self) -> &Option<String>
The ID of the trunk network interface.
sourcepub fn interface_protocol(self, input: InterfaceProtocolType) -> Self
pub fn interface_protocol(self, input: InterfaceProtocolType) -> Self
The interface protocol. Valid values are VLAN
and GRE
.
sourcepub fn set_interface_protocol(
self,
input: Option<InterfaceProtocolType>,
) -> Self
pub fn set_interface_protocol( self, input: Option<InterfaceProtocolType>, ) -> Self
The interface protocol. Valid values are VLAN
and GRE
.
sourcepub fn get_interface_protocol(&self) -> &Option<InterfaceProtocolType>
pub fn get_interface_protocol(&self) -> &Option<InterfaceProtocolType>
The interface protocol. Valid values are VLAN
and GRE
.
sourcepub fn set_vlan_id(self, input: Option<i32>) -> Self
pub fn set_vlan_id(self, input: Option<i32>) -> Self
The ID of the VLAN when you use the VLAN protocol.
sourcepub fn get_vlan_id(&self) -> &Option<i32>
pub fn get_vlan_id(&self) -> &Option<i32>
The ID of the VLAN when you use the VLAN protocol.
sourcepub fn set_gre_key(self, input: Option<i32>) -> Self
pub fn set_gre_key(self, input: Option<i32>) -> Self
The application key when you use the GRE protocol.
sourcepub fn get_gre_key(&self) -> &Option<i32>
pub fn get_gre_key(&self) -> &Option<i32>
The application key when you use the GRE protocol.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for the trunk interface association.
The tags for the trunk interface association.
The tags for the trunk interface association.
sourcepub fn build(self) -> TrunkInterfaceAssociation
pub fn build(self) -> TrunkInterfaceAssociation
Consumes the builder and constructs a TrunkInterfaceAssociation
.
Trait Implementations§
source§impl Clone for TrunkInterfaceAssociationBuilder
impl Clone for TrunkInterfaceAssociationBuilder
source§fn clone(&self) -> TrunkInterfaceAssociationBuilder
fn clone(&self) -> TrunkInterfaceAssociationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TrunkInterfaceAssociationBuilder
impl Default for TrunkInterfaceAssociationBuilder
source§fn default() -> TrunkInterfaceAssociationBuilder
fn default() -> TrunkInterfaceAssociationBuilder
source§impl PartialEq for TrunkInterfaceAssociationBuilder
impl PartialEq for TrunkInterfaceAssociationBuilder
source§fn eq(&self, other: &TrunkInterfaceAssociationBuilder) -> bool
fn eq(&self, other: &TrunkInterfaceAssociationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrunkInterfaceAssociationBuilder
Auto Trait Implementations§
impl Freeze for TrunkInterfaceAssociationBuilder
impl RefUnwindSafe for TrunkInterfaceAssociationBuilder
impl Send for TrunkInterfaceAssociationBuilder
impl Sync for TrunkInterfaceAssociationBuilder
impl Unpin for TrunkInterfaceAssociationBuilder
impl UnwindSafe for TrunkInterfaceAssociationBuilder
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