#[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<TrunkInterfaceAssociationBuilder> for TrunkInterfaceAssociationBuilder
impl PartialEq<TrunkInterfaceAssociationBuilder> 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 ==
.