Struct pulumi_wasm_docker::image::ImageArgsBuilder

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

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

Implementations§

source§

impl<__Build, __BuildOnPreview, __ImageName, __Registry, __SkipPush> ImageArgsBuilder<(__Build, __BuildOnPreview, __ImageName, __Registry, __SkipPush)>

source

pub fn build_struct(self) -> ImageArgs
where __Build: IntoSet<Option<Output<Option<DockerBuild>>>, ImageArgsBuilder__build>, __BuildOnPreview: IntoSet<Option<Output<Option<bool>>>, ImageArgsBuilder__build_on_preview>, __ImageName: IntoSet<Output<String>, ImageArgsBuilder__image_name>, __Registry: IntoSet<Option<Output<Option<Registry>>>, ImageArgsBuilder__registry>, __SkipPush: IntoSet<Option<Output<Option<bool>>>, ImageArgsBuilder__skip_push>,

Finishes building and returns the requested object.

source

pub fn maybe_build( self, value: Option<impl Into<Output<Option<DockerBuild>>>>, ) -> <Self as __ImageArgsBuilderSetMember>::Build
where __Build: IsUnset,

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

source

pub fn build( self, value: impl Into<Output<Option<DockerBuild>>>, ) -> <Self as __ImageArgsBuilderSetMember>::Build
where __Build: IsUnset,

The Docker build context

source

pub fn maybe_build_on_preview( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ImageArgsBuilderSetMember>::BuildOnPreview
where __BuildOnPreview: IsUnset,

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

source

pub fn build_on_preview( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ImageArgsBuilderSetMember>::BuildOnPreview
where __BuildOnPreview: IsUnset,

A flag to build an image on preview

source

pub fn image_name( self, value: impl Into<Output<String>>, ) -> <Self as __ImageArgsBuilderSetMember>::ImageName
where __ImageName: IsUnset,

The image name, of the format repository[:tag], e.g. docker.io/username/demo-image:v1. This reference is not unique to each build and push.For the unique manifest SHA of a pushed docker image, or the local image ID, please use repoDigest.

source

pub fn maybe_registry( self, value: Option<impl Into<Output<Option<Registry>>>>, ) -> <Self as __ImageArgsBuilderSetMember>::Registry
where __Registry: IsUnset,

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

source

pub fn registry( self, value: impl Into<Output<Option<Registry>>>, ) -> <Self as __ImageArgsBuilderSetMember>::Registry
where __Registry: IsUnset,

The registry to push the image to

source

pub fn maybe_skip_push( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ImageArgsBuilderSetMember>::SkipPush
where __SkipPush: IsUnset,

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

source

pub fn skip_push( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ImageArgsBuilderSetMember>::SkipPush
where __SkipPush: IsUnset,

A flag to skip a registry push.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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