Struct pulumi_wasm_docker::ContainerUploadBuilder

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

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

Implementations§

source§

impl<__Content, __ContentBase64, __Executable, __File, __Source, __SourceHash> ContainerUploadBuilder<(__Content, __ContentBase64, __Executable, __File, __Source, __SourceHash)>

source

pub fn build_struct(self) -> ContainerUpload
where __Content: IntoSet<Option<Box<Option<String>>>, ContainerUploadBuilder__content>, __ContentBase64: IntoSet<Option<Box<Option<String>>>, ContainerUploadBuilder__content_base_64>, __Executable: IntoSet<Option<Box<Option<bool>>>, ContainerUploadBuilder__executable>, __File: IntoSet<Box<String>, ContainerUploadBuilder__file>, __Source: IntoSet<Option<Box<Option<String>>>, ContainerUploadBuilder__source>, __SourceHash: IntoSet<Option<Box<Option<String>>>, ContainerUploadBuilder__source_hash>,

Finishes building and returns the requested object.

source

pub fn maybe_content( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::Content
where __Content: IsUnset,

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

source

pub fn content( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::Content
where __Content: IsUnset,

Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with content_base64 & source

source

pub fn maybe_content_base_64( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::ContentBase64
where __ContentBase64: IsUnset,

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

source

pub fn content_base_64( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::ContentBase64
where __ContentBase64: IsUnset,

Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the base64encode interpolation function. See here for the reason. Conflicts with content & source

source

pub fn maybe_executable( self, value: Option<impl Into<Box<Option<bool>>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::Executable
where __Executable: IsUnset,

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

source

pub fn executable( self, value: impl Into<Box<Option<bool>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::Executable
where __Executable: IsUnset,

If true, the file will be uploaded with user executable permission. Defaults to false.

source

pub fn file( self, value: impl Into<Box<String>>, ) -> <Self as __ContainerUploadBuilderSetMember>::File
where __File: IsUnset,

Path to the file in the container where is upload goes to

source

pub fn maybe_source( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::Source
where __Source: IsUnset,

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

source

pub fn source( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::Source
where __Source: IsUnset,

A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with content & content_base64

source

pub fn maybe_source_hash( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::SourceHash
where __SourceHash: IsUnset,

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

source

pub fn source_hash( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerUploadBuilderSetMember>::SourceHash
where __SourceHash: IsUnset,

If using source, this will force an update if the file content has updated but the filename has not.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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