Struct pulumi_wasm_docker::ServiceTaskSpecBuilder

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

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

Implementations§

source§

impl<__ContainerSpec, __ForceUpdate, __LogDriver, __NetworksAdvanceds, __Placement, __Resources, __RestartPolicy, __Runtime> ServiceTaskSpecBuilder<(__ContainerSpec, __ForceUpdate, __LogDriver, __NetworksAdvanceds, __Placement, __Resources, __RestartPolicy, __Runtime)>

source

pub fn build_struct(self) -> ServiceTaskSpec
where __ContainerSpec: IntoSet<Box<ServiceTaskSpecContainerSpec>, ServiceTaskSpecBuilder__container_spec>, __ForceUpdate: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecBuilder__force_update>, __LogDriver: IntoSet<Option<Box<Option<ServiceTaskSpecLogDriver>>>, ServiceTaskSpecBuilder__log_driver>, __NetworksAdvanceds: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecNetworksAdvanced>>>>, ServiceTaskSpecBuilder__networks_advanceds>, __Placement: IntoSet<Option<Box<Option<ServiceTaskSpecPlacement>>>, ServiceTaskSpecBuilder__placement>, __Resources: IntoSet<Option<Box<Option<ServiceTaskSpecResources>>>, ServiceTaskSpecBuilder__resources>, __RestartPolicy: IntoSet<Option<Box<Option<ServiceTaskSpecRestartPolicy>>>, ServiceTaskSpecBuilder__restart_policy>, __Runtime: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecBuilder__runtime>,

Finishes building and returns the requested object.

source

pub fn container_spec( self, value: impl Into<Box<ServiceTaskSpecContainerSpec>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::ContainerSpec
where __ContainerSpec: IsUnset,

The spec for each container

source

pub fn maybe_force_update( self, value: Option<impl Into<Box<Option<i32>>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::ForceUpdate
where __ForceUpdate: IsUnset,

Same as [Self::r#force_update], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn force_update( self, value: impl Into<Box<Option<i32>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::ForceUpdate
where __ForceUpdate: IsUnset,

A counter that triggers an update even if no relevant parameters have been changed. See the spec.

source

pub fn maybe_log_driver( self, value: Option<impl Into<Box<Option<ServiceTaskSpecLogDriver>>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::LogDriver
where __LogDriver: IsUnset,

Same as [Self::r#log_driver], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn log_driver( self, value: impl Into<Box<Option<ServiceTaskSpecLogDriver>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::LogDriver
where __LogDriver: IsUnset,

Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified

source

pub fn maybe_networks_advanceds( self, value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecNetworksAdvanced>>>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::NetworksAdvanceds
where __NetworksAdvanceds: IsUnset,

Same as [Self::r#networks_advanceds], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn networks_advanceds( self, value: impl Into<Box<Option<Vec<ServiceTaskSpecNetworksAdvanced>>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::NetworksAdvanceds
where __NetworksAdvanceds: IsUnset,

The networks the container is attached to

source

pub fn maybe_placement( self, value: Option<impl Into<Box<Option<ServiceTaskSpecPlacement>>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::Placement
where __Placement: IsUnset,

Same as [Self::r#placement], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn placement( self, value: impl Into<Box<Option<ServiceTaskSpecPlacement>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::Placement
where __Placement: IsUnset,

The placement preferences

source

pub fn maybe_resources( self, value: Option<impl Into<Box<Option<ServiceTaskSpecResources>>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::Resources
where __Resources: IsUnset,

Same as [Self::r#resources], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn resources( self, value: impl Into<Box<Option<ServiceTaskSpecResources>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::Resources
where __Resources: IsUnset,

Resource requirements which apply to each individual container created as part of the service

source

pub fn maybe_restart_policy( self, value: Option<impl Into<Box<Option<ServiceTaskSpecRestartPolicy>>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::RestartPolicy
where __RestartPolicy: IsUnset,

Same as [Self::r#restart_policy], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn restart_policy( self, value: impl Into<Box<Option<ServiceTaskSpecRestartPolicy>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::RestartPolicy
where __RestartPolicy: IsUnset,

Specification for the restart policy which applies to containers created as part of this service.

source

pub fn maybe_runtime( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::Runtime
where __Runtime: IsUnset,

Same as [Self::r#runtime], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn runtime( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecBuilderSetMember>::Runtime
where __Runtime: IsUnset,

Runtime is the type of runtime specified for the task executor. See the types.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<___State> UnwindSafe for ServiceTaskSpecBuilder<___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.