#[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 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 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 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 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 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.
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.
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
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 Default for TrunkInterfaceAssociationBuilder
impl Default for TrunkInterfaceAssociationBuilder
source§fn default() -> TrunkInterfaceAssociationBuilder
fn default() -> TrunkInterfaceAssociationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<TrunkInterfaceAssociationBuilder> for TrunkInterfaceAssociationBuilder
impl PartialEq<TrunkInterfaceAssociationBuilder> for TrunkInterfaceAssociationBuilder
source§fn eq(&self, other: &TrunkInterfaceAssociationBuilder) -> bool
fn eq(&self, other: &TrunkInterfaceAssociationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrunkInterfaceAssociationBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more