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)>
impl<__Auth, __ConvergeConfig, __EndpointSpec, __Labels, __Mode, __Name, __RollbackConfig, __TaskSpec, __UpdateConfig> ServiceArgsBuilder<(__Auth, __ConvergeConfig, __EndpointSpec, __Labels, __Mode, __Name, __RollbackConfig, __TaskSpec, __UpdateConfig)>
sourcepub fn build_struct(self) -> ServiceArgswhere
__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>,
pub fn build_struct(self) -> ServiceArgswhere
__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.
sourcepub fn maybe_auth(
self,
value: Option<impl Into<Output<Option<ServiceAuth>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Authwhere
__Auth: IsUnset,
pub fn maybe_auth(
self,
value: Option<impl Into<Output<Option<ServiceAuth>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Authwhere
__Auth: IsUnset,
Same as Self::auth
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn auth(
self,
value: impl Into<Output<Option<ServiceAuth>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Authwhere
__Auth: IsUnset,
pub fn auth(
self,
value: impl Into<Output<Option<ServiceAuth>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Authwhere
__Auth: IsUnset,
Configuration for the authentication for pulling the images of the service
sourcepub fn maybe_converge_config(
self,
value: Option<impl Into<Output<Option<ServiceConvergeConfig>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::ConvergeConfigwhere
__ConvergeConfig: IsUnset,
pub fn maybe_converge_config(
self,
value: Option<impl Into<Output<Option<ServiceConvergeConfig>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::ConvergeConfigwhere
__ConvergeConfig: IsUnset,
Same as Self::converge_config
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn converge_config(
self,
value: impl Into<Output<Option<ServiceConvergeConfig>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::ConvergeConfigwhere
__ConvergeConfig: IsUnset,
pub fn converge_config(
self,
value: impl Into<Output<Option<ServiceConvergeConfig>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::ConvergeConfigwhere
__ConvergeConfig: IsUnset,
A configuration to ensure that a service converges aka reaches the desired that of all task up and running
sourcepub fn maybe_endpoint_spec(
self,
value: Option<impl Into<Output<Option<ServiceEndpointSpec>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::EndpointSpecwhere
__EndpointSpec: IsUnset,
pub fn maybe_endpoint_spec(
self,
value: Option<impl Into<Output<Option<ServiceEndpointSpec>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::EndpointSpecwhere
__EndpointSpec: IsUnset,
Same as Self::endpoint_spec
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn endpoint_spec(
self,
value: impl Into<Output<Option<ServiceEndpointSpec>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::EndpointSpecwhere
__EndpointSpec: IsUnset,
pub fn endpoint_spec(
self,
value: impl Into<Output<Option<ServiceEndpointSpec>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::EndpointSpecwhere
__EndpointSpec: IsUnset,
Properties that can be configured to access and load balance a service
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<Vec<ServiceLabel>>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<Vec<ServiceLabel>>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::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<ServiceLabel>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Output<Option<Vec<ServiceLabel>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
User-defined key/value metadata
sourcepub fn maybe_mode(
self,
value: Option<impl Into<Output<Option<ServiceMode>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Modewhere
__Mode: IsUnset,
pub fn maybe_mode(
self,
value: Option<impl Into<Output<Option<ServiceMode>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Modewhere
__Mode: IsUnset,
Same as Self::mode
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn mode(
self,
value: impl Into<Output<Option<ServiceMode>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Modewhere
__Mode: IsUnset,
pub fn mode(
self,
value: impl Into<Output<Option<ServiceMode>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Modewhere
__Mode: IsUnset,
Scheduling mode for the service
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::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 __ServiceArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
Name of the service
sourcepub fn maybe_rollback_config(
self,
value: Option<impl Into<Output<Option<ServiceRollbackConfig>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::RollbackConfigwhere
__RollbackConfig: IsUnset,
pub fn maybe_rollback_config(
self,
value: Option<impl Into<Output<Option<ServiceRollbackConfig>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::RollbackConfigwhere
__RollbackConfig: IsUnset,
Same as Self::rollback_config
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn rollback_config(
self,
value: impl Into<Output<Option<ServiceRollbackConfig>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::RollbackConfigwhere
__RollbackConfig: IsUnset,
pub fn rollback_config(
self,
value: impl Into<Output<Option<ServiceRollbackConfig>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::RollbackConfigwhere
__RollbackConfig: IsUnset,
Specification for the rollback strategy of the service
sourcepub fn task_spec(
self,
value: impl Into<Output<ServiceTaskSpec>>,
) -> <Self as __ServiceArgsBuilderSetMember>::TaskSpecwhere
__TaskSpec: IsUnset,
pub fn task_spec(
self,
value: impl Into<Output<ServiceTaskSpec>>,
) -> <Self as __ServiceArgsBuilderSetMember>::TaskSpecwhere
__TaskSpec: IsUnset,
User modifiable task configuration
sourcepub fn maybe_update_config(
self,
value: Option<impl Into<Output<Option<ServiceUpdateConfig>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::UpdateConfigwhere
__UpdateConfig: IsUnset,
pub fn maybe_update_config(
self,
value: Option<impl Into<Output<Option<ServiceUpdateConfig>>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::UpdateConfigwhere
__UpdateConfig: IsUnset,
Same as Self::update_config
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn update_config(
self,
value: impl Into<Output<Option<ServiceUpdateConfig>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::UpdateConfigwhere
__UpdateConfig: IsUnset,
pub fn update_config(
self,
value: impl Into<Output<Option<ServiceUpdateConfig>>>,
) -> <Self as __ServiceArgsBuilderSetMember>::UpdateConfigwhere
__UpdateConfig: IsUnset,
Specification for the update strategy of the service