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)>
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)>
sourcepub fn build_struct(self) -> NetworkArgswhere
__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>,
pub fn build_struct(self) -> NetworkArgswhere
__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.
sourcepub fn maybe_attachable(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Attachablewhere
__Attachable: IsUnset,
pub fn maybe_attachable(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Attachablewhere
__Attachable: IsUnset,
Same as Self::attachable
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn attachable(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Attachablewhere
__Attachable: IsUnset,
pub fn attachable(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Attachablewhere
__Attachable: IsUnset,
Enable manual container attachment to the network.
sourcepub fn maybe_check_duplicate(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::CheckDuplicatewhere
__CheckDuplicate: IsUnset,
pub fn maybe_check_duplicate(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::CheckDuplicatewhere
__CheckDuplicate: IsUnset,
Same as Self::check_duplicate
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn check_duplicate(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::CheckDuplicatewhere
__CheckDuplicate: IsUnset,
pub fn check_duplicate(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::CheckDuplicatewhere
__CheckDuplicate: IsUnset,
Requests daemon to check for networks with same name.
sourcepub fn maybe_driver(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Driverwhere
__Driver: IsUnset,
pub fn maybe_driver(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Driverwhere
__Driver: IsUnset,
Same as Self::driver
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn driver(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Driverwhere
__Driver: IsUnset,
pub fn driver(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Driverwhere
__Driver: IsUnset,
The driver of the Docker network. Possible values are bridge
, host
, overlay
, macvlan
. See network docs for more details.
sourcepub fn maybe_ingress(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Ingresswhere
__Ingress: IsUnset,
pub fn maybe_ingress(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Ingresswhere
__Ingress: IsUnset,
Same as Self::ingress
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ingress(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Ingresswhere
__Ingress: IsUnset,
pub fn ingress(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Ingresswhere
__Ingress: IsUnset,
Create swarm routing-mesh network. Defaults to false
.
sourcepub fn maybe_internal(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Internalwhere
__Internal: IsUnset,
pub fn maybe_internal(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Internalwhere
__Internal: IsUnset,
Same as Self::internal
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn internal(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Internalwhere
__Internal: IsUnset,
pub fn internal(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Internalwhere
__Internal: IsUnset,
Whether the network is internal.
sourcepub fn maybe_ipam_configs(
self,
value: Option<impl Into<Output<Option<Vec<NetworkIpamConfig>>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamConfigswhere
__IpamConfigs: IsUnset,
pub fn maybe_ipam_configs(
self,
value: Option<impl Into<Output<Option<Vec<NetworkIpamConfig>>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamConfigswhere
__IpamConfigs: IsUnset,
Same as Self::ipam_configs
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ipam_configs(
self,
value: impl Into<Output<Option<Vec<NetworkIpamConfig>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamConfigswhere
__IpamConfigs: IsUnset,
pub fn ipam_configs(
self,
value: impl Into<Output<Option<Vec<NetworkIpamConfig>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamConfigswhere
__IpamConfigs: IsUnset,
The IPAM configuration options
sourcepub fn maybe_ipam_driver(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamDriverwhere
__IpamDriver: IsUnset,
pub fn maybe_ipam_driver(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamDriverwhere
__IpamDriver: IsUnset,
Same as Self::ipam_driver
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ipam_driver(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamDriverwhere
__IpamDriver: IsUnset,
pub fn ipam_driver(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamDriverwhere
__IpamDriver: IsUnset,
Driver used by the custom IP scheme of the network. Defaults to default
sourcepub fn maybe_ipam_options(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamOptionswhere
__IpamOptions: IsUnset,
pub fn maybe_ipam_options(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamOptionswhere
__IpamOptions: IsUnset,
Same as Self::ipam_options
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ipam_options(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamOptionswhere
__IpamOptions: IsUnset,
pub fn ipam_options(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::IpamOptionswhere
__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.
sourcepub fn maybe_ipv6(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Ipv6where
__Ipv6: IsUnset,
pub fn maybe_ipv6(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Ipv6where
__Ipv6: IsUnset,
Same as Self::ipv6
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ipv6(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Ipv6where
__Ipv6: IsUnset,
pub fn ipv6(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Ipv6where
__Ipv6: IsUnset,
Enable IPv6 networking. Defaults to false
.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<Vec<NetworkLabel>>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<Vec<NetworkLabel>>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
Same as Self::labels
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn labels(
self,
value: impl Into<Output<Option<Vec<NetworkLabel>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Output<Option<Vec<NetworkLabel>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
User-defined key/value metadata
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
Same as Self::name
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
The name of the Docker network.
sourcepub fn maybe_options(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Optionswhere
__Options: IsUnset,
pub fn maybe_options(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __NetworkArgsBuilderSetMember>::Optionswhere
__Options: IsUnset,
Same as Self::options
, but accepts an Option
as input. See that method’s documentation for more details.