Struct pulumi_wasm_docker::service::ServiceArgsBuilder

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

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

Implementations§

source§

impl<__Auth, __ConvergeConfig, __EndpointSpec, __Labels, __Mode, __Name, __RollbackConfig, __TaskSpec, __UpdateConfig> ServiceArgsBuilder<(__Auth, __ConvergeConfig, __EndpointSpec, __Labels, __Mode, __Name, __RollbackConfig, __TaskSpec, __UpdateConfig)>

source

pub fn build_struct(self) -> ServiceArgs
where __Auth: IntoSet<Option<Output<Option<ServiceAuth>>>, ServiceArgsBuilder__auth>, __ConvergeConfig: IntoSet<Option<Output<Option<ServiceConvergeConfig>>>, ServiceArgsBuilder__converge_config>, __EndpointSpec: IntoSet<Option<Output<Option<ServiceEndpointSpec>>>, ServiceArgsBuilder__endpoint_spec>, __Labels: IntoSet<Option<Output<Option<Vec<ServiceLabel>>>>, ServiceArgsBuilder__labels>, __Mode: IntoSet<Option<Output<Option<ServiceMode>>>, ServiceArgsBuilder__mode>, __Name: IntoSet<Option<Output<Option<String>>>, ServiceArgsBuilder__name>, __RollbackConfig: IntoSet<Option<Output<Option<ServiceRollbackConfig>>>, ServiceArgsBuilder__rollback_config>, __TaskSpec: IntoSet<Output<ServiceTaskSpec>, ServiceArgsBuilder__task_spec>, __UpdateConfig: IntoSet<Option<Output<Option<ServiceUpdateConfig>>>, ServiceArgsBuilder__update_config>,

Finishes building and returns the requested object.

source

pub fn maybe_auth( self, value: Option<impl Into<Output<Option<ServiceAuth>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::Auth
where __Auth: IsUnset,

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

source

pub fn auth( self, value: impl Into<Output<Option<ServiceAuth>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::Auth
where __Auth: IsUnset,

Configuration for the authentication for pulling the images of the service

source

pub fn maybe_converge_config( self, value: Option<impl Into<Output<Option<ServiceConvergeConfig>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::ConvergeConfig
where __ConvergeConfig: IsUnset,

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

source

pub fn converge_config( self, value: impl Into<Output<Option<ServiceConvergeConfig>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::ConvergeConfig
where __ConvergeConfig: IsUnset,

A configuration to ensure that a service converges aka reaches the desired that of all task up and running

source

pub fn maybe_endpoint_spec( self, value: Option<impl Into<Output<Option<ServiceEndpointSpec>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::EndpointSpec
where __EndpointSpec: IsUnset,

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

source

pub fn endpoint_spec( self, value: impl Into<Output<Option<ServiceEndpointSpec>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::EndpointSpec
where __EndpointSpec: IsUnset,

Properties that can be configured to access and load balance a service

source

pub fn maybe_labels( self, value: Option<impl Into<Output<Option<Vec<ServiceLabel>>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::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<ServiceLabel>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::Labels
where __Labels: IsUnset,

User-defined key/value metadata

source

pub fn maybe_mode( self, value: Option<impl Into<Output<Option<ServiceMode>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::Mode
where __Mode: IsUnset,

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

source

pub fn mode( self, value: impl Into<Output<Option<ServiceMode>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::Mode
where __Mode: IsUnset,

Scheduling mode for the service

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::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 __ServiceArgsBuilderSetMember>::Name
where __Name: IsUnset,

Name of the service

source

pub fn maybe_rollback_config( self, value: Option<impl Into<Output<Option<ServiceRollbackConfig>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::RollbackConfig
where __RollbackConfig: IsUnset,

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

source

pub fn rollback_config( self, value: impl Into<Output<Option<ServiceRollbackConfig>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::RollbackConfig
where __RollbackConfig: IsUnset,

Specification for the rollback strategy of the service

source

pub fn task_spec( self, value: impl Into<Output<ServiceTaskSpec>>, ) -> <Self as __ServiceArgsBuilderSetMember>::TaskSpec
where __TaskSpec: IsUnset,

User modifiable task configuration

source

pub fn maybe_update_config( self, value: Option<impl Into<Output<Option<ServiceUpdateConfig>>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::UpdateConfig
where __UpdateConfig: IsUnset,

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

source

pub fn update_config( self, value: impl Into<Output<Option<ServiceUpdateConfig>>>, ) -> <Self as __ServiceArgsBuilderSetMember>::UpdateConfig
where __UpdateConfig: IsUnset,

Specification for the update strategy of the service

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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