Struct pulumi_wasm_docker::volume::VolumeArgsBuilder
source · pub struct VolumeArgsBuilder<___State = __VolumeArgsBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Driver, __DriverOpts, __Labels, __Name> VolumeArgsBuilder<(__Driver, __DriverOpts, __Labels, __Name)>
impl<__Driver, __DriverOpts, __Labels, __Name> VolumeArgsBuilder<(__Driver, __DriverOpts, __Labels, __Name)>
sourcepub fn build_struct(self) -> VolumeArgswhere
__Driver: IntoSet<Option<Output<Option<String>>>, VolumeArgsBuilder__driver>,
__DriverOpts: IntoSet<Option<Output<Option<HashMap<String, String>>>>, VolumeArgsBuilder__driver_opts>,
__Labels: IntoSet<Option<Output<Option<Vec<VolumeLabel>>>>, VolumeArgsBuilder__labels>,
__Name: IntoSet<Option<Output<Option<String>>>, VolumeArgsBuilder__name>,
pub fn build_struct(self) -> VolumeArgswhere
__Driver: IntoSet<Option<Output<Option<String>>>, VolumeArgsBuilder__driver>,
__DriverOpts: IntoSet<Option<Output<Option<HashMap<String, String>>>>, VolumeArgsBuilder__driver_opts>,
__Labels: IntoSet<Option<Output<Option<Vec<VolumeLabel>>>>, VolumeArgsBuilder__labels>,
__Name: IntoSet<Option<Output<Option<String>>>, VolumeArgsBuilder__name>,
Finishes building and returns the requested object.
sourcepub fn maybe_driver(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::Driverwhere
__Driver: IsUnset,
pub fn maybe_driver(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::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 __VolumeArgsBuilderSetMember>::Driverwhere
__Driver: IsUnset,
pub fn driver(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::Driverwhere
__Driver: IsUnset,
Driver type for the volume. Defaults to local
.
sourcepub fn maybe_driver_opts(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::DriverOptswhere
__DriverOpts: IsUnset,
pub fn maybe_driver_opts(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::DriverOptswhere
__DriverOpts: IsUnset,
Same as Self::driver_opts
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn driver_opts(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::DriverOptswhere
__DriverOpts: IsUnset,
pub fn driver_opts(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::DriverOptswhere
__DriverOpts: IsUnset,
Options specific to the driver.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<Vec<VolumeLabel>>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<Vec<VolumeLabel>>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::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<VolumeLabel>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Output<Option<Vec<VolumeLabel>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
User-defined key/value metadata
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __VolumeArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
Same as Self::name
, but accepts an Option
as input. See that method’s documentation for more details.
Auto Trait Implementations§
impl<___State> Freeze for VolumeArgsBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for VolumeArgsBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for VolumeArgsBuilder<___State>where
___State: Send,
impl<___State> Sync for VolumeArgsBuilder<___State>where
___State: Sync,
impl<___State> Unpin for VolumeArgsBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for VolumeArgsBuilder<___State>where
___State: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more