pulumi_wasm_providers_azure_mini::storage::blob

Struct BlobArgsBuilder

source
pub struct BlobArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> BlobArgsBuilder<S>

source

pub fn build_struct(self) -> BlobArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn access_tier( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetAccessTier<S>>
where S::AccessTier: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The access tier of the storage blob. Possible values are Archive, Cool and Hot.

source

pub fn maybe_access_tier( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetAccessTier<S>>
where S::AccessTier: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The access tier of the storage blob. Possible values are Archive, Cool and Hot.

source

pub fn cache_control( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetCacheControl<S>>
where S::CacheControl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Controls the cache control header content of the response when blob is requested .

source

pub fn maybe_cache_control( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetCacheControl<S>>
where S::CacheControl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Controls the cache control header content of the response when blob is requested .

source

pub fn content_md5( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetContentMd5<S>>
where S::ContentMd5: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The MD5 sum of the blob contents. Cannot be defined if source_uri is defined, or if blob type is Append or Page. Changing this forces a new resource to be created.

source

pub fn maybe_content_md5( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetContentMd5<S>>
where S::ContentMd5: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The MD5 sum of the blob contents. Cannot be defined if source_uri is defined, or if blob type is Append or Page. Changing this forces a new resource to be created.

source

pub fn content_type( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetContentType<S>>
where S::ContentType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The content type of the storage blob. Cannot be defined if source_uri is defined. Defaults to application/octet-stream.

source

pub fn maybe_content_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetContentType<S>>
where S::ContentType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The content type of the storage blob. Cannot be defined if source_uri is defined. Defaults to application/octet-stream.

source

pub fn encryption_scope( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetEncryptionScope<S>>
where S::EncryptionScope: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The encryption scope to use for this blob.

source

pub fn maybe_encryption_scope( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetEncryptionScope<S>>
where S::EncryptionScope: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The encryption scope to use for this blob.

source

pub fn metadata( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> BlobArgsBuilder<SetMetadata<S>>
where S::Metadata: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A map of custom blob metadata.

source

pub fn maybe_metadata( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> BlobArgsBuilder<SetMetadata<S>>
where S::Metadata: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A map of custom blob metadata.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The name of the storage blob. Must be unique within the storage container the blob is located. Changing this forces a new resource to be created.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The name of the storage blob. Must be unique within the storage container the blob is located. Changing this forces a new resource to be created.

source

pub fn parallelism( self, value: impl Into<Output<Option<i32>>>, ) -> BlobArgsBuilder<SetParallelism<S>>
where S::Parallelism: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The number of workers per CPU core to run for concurrent uploads. Defaults to 8. Changing this forces a new resource to be created.

NOTE: parallelism is only applicable for Page blobs - support for Block Blobs is blocked on the upstream issue.

source

pub fn maybe_parallelism( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> BlobArgsBuilder<SetParallelism<S>>
where S::Parallelism: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The number of workers per CPU core to run for concurrent uploads. Defaults to 8. Changing this forces a new resource to be created.

NOTE: parallelism is only applicable for Page blobs - support for Block Blobs is blocked on the upstream issue.

source

pub fn size( self, value: impl Into<Output<Option<i32>>>, ) -> BlobArgsBuilder<SetSize<S>>
where S::Size: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

Used only for page blobs to specify the size in bytes of the blob to be created. Must be a multiple of 512. Defaults to 0. Changing this forces a new resource to be created.

Note: size is required if source_uri is not set.

source

pub fn maybe_size( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> BlobArgsBuilder<SetSize<S>>
where S::Size: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

Used only for page blobs to specify the size in bytes of the blob to be created. Must be a multiple of 512. Defaults to 0. Changing this forces a new resource to be created.

Note: size is required if source_uri is not set.

source

pub fn source( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetSource<S>>
where S::Source: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

An absolute path to a file on the local system. This field cannot be specified for Append blobs and cannot be specified if source_content or source_uri is specified. Changing this forces a new resource to be created.

source

pub fn maybe_source( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetSource<S>>
where S::Source: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

An absolute path to a file on the local system. This field cannot be specified for Append blobs and cannot be specified if source_content or source_uri is specified. Changing this forces a new resource to be created.

source

pub fn source_content( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetSourceContent<S>>
where S::SourceContent: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The content for this blob which should be defined inline. This field can only be specified for Block blobs and cannot be specified if source or source_uri is specified. Changing this forces a new resource to be created.

source

pub fn maybe_source_content( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetSourceContent<S>>
where S::SourceContent: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The content for this blob which should be defined inline. This field can only be specified for Block blobs and cannot be specified if source or source_uri is specified. Changing this forces a new resource to be created.

source

pub fn source_uri( self, value: impl Into<Output<Option<String>>>, ) -> BlobArgsBuilder<SetSourceUri<S>>
where S::SourceUri: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The URI of an existing blob, or a file in the Azure File service, to use as the source contents for the blob to be created. Changing this forces a new resource to be created. This field cannot be specified for Append blobs and cannot be specified if source or source_content is specified.

source

pub fn maybe_source_uri( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BlobArgsBuilder<SetSourceUri<S>>
where S::SourceUri: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The URI of an existing blob, or a file in the Azure File service, to use as the source contents for the blob to be created. Changing this forces a new resource to be created. This field cannot be specified for Append blobs and cannot be specified if source or source_content is specified.

source

pub fn storage_account_name( self, value: impl Into<Output<String>>, ) -> BlobArgsBuilder<SetStorageAccountName<S>>
where S::StorageAccountName: IsUnset,

Required.

Specifies the storage account in which to create the storage container. Changing this forces a new resource to be created.

source

pub fn storage_container_name( self, value: impl Into<Output<String>>, ) -> BlobArgsBuilder<SetStorageContainerName<S>>
where S::StorageContainerName: IsUnset,

Required.

The name of the storage container in which this blob should be created. Changing this forces a new resource to be created.

source

pub fn type_( self, value: impl Into<Output<String>>, ) -> BlobArgsBuilder<SetType<S>>
where S::Type: IsUnset,

Required.

The type of the storage blob to be created. Possible values are Append, Block or Page. Changing this forces a new resource to be created.

Auto Trait Implementations§

§

impl<S> Freeze for BlobArgsBuilder<S>

§

impl<S> RefUnwindSafe for BlobArgsBuilder<S>

§

impl<S> Send for BlobArgsBuilder<S>

§

impl<S> Sync for BlobArgsBuilder<S>

§

impl<S> Unpin for BlobArgsBuilder<S>

§

impl<S> UnwindSafe for BlobArgsBuilder<S>

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>,

source§

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>,

source§

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.