Struct pulumi_wasm_docker::network::NetworkArgsBuilder

source ·
pub struct NetworkArgsBuilder<___State = __NetworkArgsBuilderInitialState> { /* private fields */ }
Expand description

Use builder syntax to set the required parameters and finish by calling the method Self::build_struct().

Implementations§

source§

impl<__Attachable, __CheckDuplicate, __Driver, __Ingress, __Internal, __IpamConfigs, __IpamDriver, __IpamOptions, __Ipv6, __Labels, __Name, __Options> NetworkArgsBuilder<(__Attachable, __CheckDuplicate, __Driver, __Ingress, __Internal, __IpamConfigs, __IpamDriver, __IpamOptions, __Ipv6, __Labels, __Name, __Options)>

source

pub fn build_struct(self) -> NetworkArgs
where __Attachable: IntoSet<Option<Output<Option<bool>>>, NetworkArgsBuilder__attachable>, __CheckDuplicate: IntoSet<Option<Output<Option<bool>>>, NetworkArgsBuilder__check_duplicate>, __Driver: IntoSet<Option<Output<Option<String>>>, NetworkArgsBuilder__driver>, __Ingress: IntoSet<Option<Output<Option<bool>>>, NetworkArgsBuilder__ingress>, __Internal: IntoSet<Option<Output<Option<bool>>>, NetworkArgsBuilder__internal>, __IpamConfigs: IntoSet<Option<Output<Option<Vec<NetworkIpamConfig>>>>, NetworkArgsBuilder__ipam_configs>, __IpamDriver: IntoSet<Option<Output<Option<String>>>, NetworkArgsBuilder__ipam_driver>, __IpamOptions: IntoSet<Option<Output<Option<HashMap<String, String>>>>, NetworkArgsBuilder__ipam_options>, __Ipv6: IntoSet<Option<Output<Option<bool>>>, NetworkArgsBuilder__ipv6>, __Labels: IntoSet<Option<Output<Option<Vec<NetworkLabel>>>>, NetworkArgsBuilder__labels>, __Name: IntoSet<Option<Output<Option<String>>>, NetworkArgsBuilder__name>, __Options: IntoSet<Option<Output<Option<HashMap<String, String>>>>, NetworkArgsBuilder__options>,

Finishes building and returns the requested object.

source

pub fn maybe_attachable( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Attachable
where __Attachable: IsUnset,

Same as Self::attachable, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn attachable( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Attachable
where __Attachable: IsUnset,

Enable manual container attachment to the network.

source

pub fn maybe_check_duplicate( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::CheckDuplicate
where __CheckDuplicate: IsUnset,

Same as Self::check_duplicate, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn check_duplicate( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::CheckDuplicate
where __CheckDuplicate: IsUnset,

Requests daemon to check for networks with same name.

source

pub fn maybe_driver( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Driver
where __Driver: IsUnset,

Same as Self::driver, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn driver( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Driver
where __Driver: IsUnset,

The driver of the Docker network. Possible values are bridge, host, overlay, macvlan. See network docs for more details.

source

pub fn maybe_ingress( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Ingress
where __Ingress: IsUnset,

Same as Self::ingress, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ingress( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Ingress
where __Ingress: IsUnset,

Create swarm routing-mesh network. Defaults to false.

source

pub fn maybe_internal( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Internal
where __Internal: IsUnset,

Same as Self::internal, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn internal( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Internal
where __Internal: IsUnset,

Whether the network is internal.

source

pub fn maybe_ipam_configs( self, value: Option<impl Into<Output<Option<Vec<NetworkIpamConfig>>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::IpamConfigs
where __IpamConfigs: IsUnset,

Same as Self::ipam_configs, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ipam_configs( self, value: impl Into<Output<Option<Vec<NetworkIpamConfig>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::IpamConfigs
where __IpamConfigs: IsUnset,

The IPAM configuration options

source

pub fn maybe_ipam_driver( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::IpamDriver
where __IpamDriver: IsUnset,

Same as Self::ipam_driver, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ipam_driver( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::IpamDriver
where __IpamDriver: IsUnset,

Driver used by the custom IP scheme of the network. Defaults to default

source

pub fn maybe_ipam_options( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::IpamOptions
where __IpamOptions: IsUnset,

Same as Self::ipam_options, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ipam_options( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::IpamOptions
where __IpamOptions: IsUnset,

Provide explicit options to the IPAM driver. Valid options vary with ipam_driver and refer to that driver’s documentation for more details.

source

pub fn maybe_ipv6( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Ipv6
where __Ipv6: IsUnset,

Same as Self::ipv6, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ipv6( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Ipv6
where __Ipv6: IsUnset,

Enable IPv6 networking. Defaults to false.

source

pub fn maybe_labels( self, value: Option<impl Into<Output<Option<Vec<NetworkLabel>>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Labels
where __Labels: IsUnset,

Same as Self::labels, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn labels( self, value: impl Into<Output<Option<Vec<NetworkLabel>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Labels
where __Labels: IsUnset,

User-defined key/value metadata

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Name
where __Name: IsUnset,

Same as Self::name, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Name
where __Name: IsUnset,

The name of the Docker network.

source

pub fn maybe_options( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Options
where __Options: IsUnset,

Same as Self::options, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn options( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> <Self as __NetworkArgsBuilderSetMember>::Options
where __Options: IsUnset,

Only available with bridge networks. See bridge options docs for more details.

Auto Trait Implementations§

§

impl<___State> Freeze for NetworkArgsBuilder<___State>
where ___State: Freeze,

§

impl<___State> RefUnwindSafe for NetworkArgsBuilder<___State>
where ___State: RefUnwindSafe,

§

impl<___State> Send for NetworkArgsBuilder<___State>
where ___State: Send,

§

impl<___State> Sync for NetworkArgsBuilder<___State>
where ___State: Sync,

§

impl<___State> Unpin for NetworkArgsBuilder<___State>
where ___State: Unpin,

§

impl<___State> UnwindSafe for NetworkArgsBuilder<___State>
where ___State: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.