Struct pulumi_wasm_docker::plugin::PluginArgsBuilder

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

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

Implementations§

source§

impl<__Alias, __EnableTimeout, __Enabled, __Envs, __ForceDestroy, __ForceDisable, __GrantAllPermissions, __GrantPermissions, __Name> PluginArgsBuilder<(__Alias, __EnableTimeout, __Enabled, __Envs, __ForceDestroy, __ForceDisable, __GrantAllPermissions, __GrantPermissions, __Name)>

source

pub fn build_struct(self) -> PluginArgs
where __Alias: IntoSet<Option<Output<Option<String>>>, PluginArgsBuilder__alias>, __EnableTimeout: IntoSet<Option<Output<Option<i32>>>, PluginArgsBuilder__enable_timeout>, __Enabled: IntoSet<Option<Output<Option<bool>>>, PluginArgsBuilder__enabled>, __Envs: IntoSet<Option<Output<Option<Vec<String>>>>, PluginArgsBuilder__envs>, __ForceDestroy: IntoSet<Option<Output<Option<bool>>>, PluginArgsBuilder__force_destroy>, __ForceDisable: IntoSet<Option<Output<Option<bool>>>, PluginArgsBuilder__force_disable>, __GrantAllPermissions: IntoSet<Option<Output<Option<bool>>>, PluginArgsBuilder__grant_all_permissions>, __GrantPermissions: IntoSet<Option<Output<Option<Vec<PluginGrantPermission>>>>, PluginArgsBuilder__grant_permissions>, __Name: IntoSet<Option<Output<Option<String>>>, PluginArgsBuilder__name>,

Finishes building and returns the requested object.

source

pub fn maybe_alias( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::Alias
where __Alias: IsUnset,

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

source

pub fn alias( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __PluginArgsBuilderSetMember>::Alias
where __Alias: IsUnset,

Docker Plugin alias

source

pub fn maybe_enable_timeout( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::EnableTimeout
where __EnableTimeout: IsUnset,

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

source

pub fn enable_timeout( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __PluginArgsBuilderSetMember>::EnableTimeout
where __EnableTimeout: IsUnset,

HTTP client timeout to enable the plugin

source

pub fn maybe_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::Enabled
where __Enabled: IsUnset,

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

source

pub fn enabled( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __PluginArgsBuilderSetMember>::Enabled
where __Enabled: IsUnset,

If true the plugin is enabled. Defaults to true

source

pub fn maybe_envs( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::Envs
where __Envs: IsUnset,

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

source

pub fn envs( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::Envs
where __Envs: IsUnset,

The environment variables in the form of KEY=VALUE, e.g. DEBUG=0

source

pub fn maybe_force_destroy( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::ForceDestroy
where __ForceDestroy: IsUnset,

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

source

pub fn force_destroy( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __PluginArgsBuilderSetMember>::ForceDestroy
where __ForceDestroy: IsUnset,

If true, then the plugin is destroyed forcibly

source

pub fn maybe_force_disable( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::ForceDisable
where __ForceDisable: IsUnset,

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

source

pub fn force_disable( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __PluginArgsBuilderSetMember>::ForceDisable
where __ForceDisable: IsUnset,

If true, then the plugin is disabled forcibly

source

pub fn maybe_grant_all_permissions( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::GrantAllPermissions
where __GrantAllPermissions: IsUnset,

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

source

pub fn grant_all_permissions( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __PluginArgsBuilderSetMember>::GrantAllPermissions
where __GrantAllPermissions: IsUnset,

If true, grant all permissions necessary to run the plugin

source

pub fn maybe_grant_permissions( self, value: Option<impl Into<Output<Option<Vec<PluginGrantPermission>>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::GrantPermissions
where __GrantPermissions: IsUnset,

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

source

pub fn grant_permissions( self, value: impl Into<Output<Option<Vec<PluginGrantPermission>>>>, ) -> <Self as __PluginArgsBuilderSetMember>::GrantPermissions
where __GrantPermissions: IsUnset,

Grant specific permissions only

source

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

The name of the permission

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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