pub struct RouterInterfaceArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> RouterInterfaceArgsBuilder<S>
impl<S: State> RouterInterfaceArgsBuilder<S>
sourcepub fn build_struct(self) -> RouterInterfaceArgswhere
S: IsComplete,
pub fn build_struct(self) -> RouterInterfaceArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn interconnect_attachment(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetInterconnectAttachment<S>>where
S::InterconnectAttachment: IsUnset,
pub fn interconnect_attachment(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetInterconnectAttachment<S>>where
S::InterconnectAttachment: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name or resource link to the
VLAN interconnect for this interface. Changing this forces a new interface to
be created. Only one of vpn_tunnel
, interconnect_attachment
or subnetwork
can be specified.
sourcepub fn maybe_interconnect_attachment(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetInterconnectAttachment<S>>where
S::InterconnectAttachment: IsUnset,
pub fn maybe_interconnect_attachment(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetInterconnectAttachment<S>>where
S::InterconnectAttachment: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name or resource link to the
VLAN interconnect for this interface. Changing this forces a new interface to
be created. Only one of vpn_tunnel
, interconnect_attachment
or subnetwork
can be specified.
sourcepub fn ip_range(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetIpRange<S>>where
S::IpRange: IsUnset,
pub fn ip_range(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetIpRange<S>>where
S::IpRange: IsUnset,
sourcepub fn maybe_ip_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetIpRange<S>>where
S::IpRange: IsUnset,
pub fn maybe_ip_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetIpRange<S>>where
S::IpRange: IsUnset,
sourcepub fn ip_version(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetIpVersion<S>>where
S::IpVersion: IsUnset,
pub fn ip_version(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetIpVersion<S>>where
S::IpVersion: IsUnset,
sourcepub fn maybe_ip_version(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetIpVersion<S>>where
S::IpVersion: IsUnset,
pub fn maybe_ip_version(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetIpVersion<S>>where
S::IpVersion: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn private_ip_address(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetPrivateIpAddress<S>>where
S::PrivateIpAddress: IsUnset,
pub fn private_ip_address(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetPrivateIpAddress<S>>where
S::PrivateIpAddress: IsUnset,
sourcepub fn maybe_private_ip_address(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetPrivateIpAddress<S>>where
S::PrivateIpAddress: IsUnset,
pub fn maybe_private_ip_address(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetPrivateIpAddress<S>>where
S::PrivateIpAddress: IsUnset,
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn redundant_interface(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetRedundantInterface<S>>where
S::RedundantInterface: IsUnset,
pub fn redundant_interface(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetRedundantInterface<S>>where
S::RedundantInterface: IsUnset,
sourcepub fn maybe_redundant_interface(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetRedundantInterface<S>>where
S::RedundantInterface: IsUnset,
pub fn maybe_redundant_interface(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetRedundantInterface<S>>where
S::RedundantInterface: IsUnset,
sourcepub fn region(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
pub fn region(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
sourcepub fn maybe_region(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
pub fn maybe_region(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
sourcepub fn router(
self,
value: impl Into<Output<String>>,
) -> RouterInterfaceArgsBuilder<SetRouter<S>>where
S::Router: IsUnset,
pub fn router(
self,
value: impl Into<Output<String>>,
) -> RouterInterfaceArgsBuilder<SetRouter<S>>where
S::Router: IsUnset,
Required.
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either ip_range
or exactly one of vpn_tunnel
, interconnect_attachment
or subnetwork
, or both.
sourcepub fn subnetwork(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetSubnetwork<S>>where
S::Subnetwork: IsUnset,
pub fn subnetwork(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetSubnetwork<S>>where
S::Subnetwork: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The URI of the subnetwork resource that this interface
belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of vpn_tunnel
, interconnect_attachment
or subnetwork
can be specified.
sourcepub fn maybe_subnetwork(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetSubnetwork<S>>where
S::Subnetwork: IsUnset,
pub fn maybe_subnetwork(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetSubnetwork<S>>where
S::Subnetwork: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The URI of the subnetwork resource that this interface
belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of vpn_tunnel
, interconnect_attachment
or subnetwork
can be specified.
sourcepub fn vpn_tunnel(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetVpnTunnel<S>>where
S::VpnTunnel: IsUnset,
pub fn vpn_tunnel(
self,
value: impl Into<Output<Option<String>>>,
) -> RouterInterfaceArgsBuilder<SetVpnTunnel<S>>where
S::VpnTunnel: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name or resource link to the VPN tunnel this
interface will be linked to. Changing this forces a new interface to be created. Only
one of vpn_tunnel
, interconnect_attachment
or subnetwork
can be specified.
sourcepub fn maybe_vpn_tunnel(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetVpnTunnel<S>>where
S::VpnTunnel: IsUnset,
pub fn maybe_vpn_tunnel(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RouterInterfaceArgsBuilder<SetVpnTunnel<S>>where
S::VpnTunnel: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name or resource link to the VPN tunnel this
interface will be linked to. Changing this forces a new interface to be created. Only
one of vpn_tunnel
, interconnect_attachment
or subnetwork
can be specified.