Struct aws_sdk_ec2::model::trunk_interface_association::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TrunkInterfaceAssociation
.
Implementations§
source§impl Builder
impl Builder
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
.