pub struct BucketObjectArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> BucketObjectArgsBuilder<S>
impl<S: State> BucketObjectArgsBuilder<S>
sourcepub fn build_struct(self) -> BucketObjectArgswhere
S: IsComplete,
pub fn build_struct(self) -> BucketObjectArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn bucket(
self,
value: impl Into<Output<String>>,
) -> BucketObjectArgsBuilder<SetBucket<S>>where
S::Bucket: IsUnset,
pub fn bucket(
self,
value: impl Into<Output<String>>,
) -> BucketObjectArgsBuilder<SetBucket<S>>where
S::Bucket: IsUnset,
Required.
The name of the containing bucket.
sourcepub fn cache_control(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetCacheControl<S>>where
S::CacheControl: IsUnset,
pub fn cache_control(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetCacheControl<S>>where
S::CacheControl: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
sourcepub fn maybe_cache_control(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetCacheControl<S>>where
S::CacheControl: IsUnset,
pub fn maybe_cache_control(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetCacheControl<S>>where
S::CacheControl: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
sourcepub fn content(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContent<S>>where
S::Content: IsUnset,
pub fn content(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContent<S>>where
S::Content: IsUnset,
sourcepub fn maybe_content(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContent<S>>where
S::Content: IsUnset,
pub fn maybe_content(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContent<S>>where
S::Content: IsUnset,
sourcepub fn content_disposition(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContentDisposition<S>>where
S::ContentDisposition: IsUnset,
pub fn content_disposition(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContentDisposition<S>>where
S::ContentDisposition: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Content-Disposition of the object data.
sourcepub fn maybe_content_disposition(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContentDisposition<S>>where
S::ContentDisposition: IsUnset,
pub fn maybe_content_disposition(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContentDisposition<S>>where
S::ContentDisposition: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Content-Disposition of the object data.
sourcepub fn content_encoding(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContentEncoding<S>>where
S::ContentEncoding: IsUnset,
pub fn content_encoding(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContentEncoding<S>>where
S::ContentEncoding: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Content-Encoding of the object data.
sourcepub fn maybe_content_encoding(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContentEncoding<S>>where
S::ContentEncoding: IsUnset,
pub fn maybe_content_encoding(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContentEncoding<S>>where
S::ContentEncoding: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Content-Encoding of the object data.
sourcepub fn content_language(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContentLanguage<S>>where
S::ContentLanguage: IsUnset,
pub fn content_language(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContentLanguage<S>>where
S::ContentLanguage: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Content-Language of the object data.
sourcepub fn maybe_content_language(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContentLanguage<S>>where
S::ContentLanguage: IsUnset,
pub fn maybe_content_language(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContentLanguage<S>>where
S::ContentLanguage: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Content-Language of the object data.
sourcepub fn content_type(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContentType<S>>where
S::ContentType: IsUnset,
pub fn content_type(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetContentType<S>>where
S::ContentType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Content-Type of the object data. Defaults to “application/octet-stream” or “text/plain; charset=utf-8”.
sourcepub fn maybe_content_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContentType<S>>where
S::ContentType: IsUnset,
pub fn maybe_content_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetContentType<S>>where
S::ContentType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Content-Type of the object data. Defaults to “application/octet-stream” or “text/plain; charset=utf-8”.
sourcepub fn customer_encryption(
self,
value: impl Into<Output<Option<BucketObjectCustomerEncryption>>>,
) -> BucketObjectArgsBuilder<SetCustomerEncryption<S>>where
S::CustomerEncryption: IsUnset,
pub fn customer_encryption(
self,
value: impl Into<Output<Option<BucketObjectCustomerEncryption>>>,
) -> BucketObjectArgsBuilder<SetCustomerEncryption<S>>where
S::CustomerEncryption: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::storage::BucketObjectCustomerEncryption>,
> as Default>::default()
Enables object encryption with Customer-Supplied Encryption Key (CSEK). Google documentation about CSEK. Structure is documented below.
sourcepub fn maybe_customer_encryption(
self,
value: Option<impl Into<Output<Option<BucketObjectCustomerEncryption>>>>,
) -> BucketObjectArgsBuilder<SetCustomerEncryption<S>>where
S::CustomerEncryption: IsUnset,
pub fn maybe_customer_encryption(
self,
value: Option<impl Into<Output<Option<BucketObjectCustomerEncryption>>>>,
) -> BucketObjectArgsBuilder<SetCustomerEncryption<S>>where
S::CustomerEncryption: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::storage::BucketObjectCustomerEncryption>,
> as Default>::default()
Enables object encryption with Customer-Supplied Encryption Key (CSEK). Google documentation about CSEK. Structure is documented below.
sourcepub fn detect_md5hash(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetDetectMd5hash<S>>where
S::DetectMd5hash: IsUnset,
pub fn detect_md5hash(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetDetectMd5hash<S>>where
S::DetectMd5hash: IsUnset,
sourcepub fn maybe_detect_md5hash(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetDetectMd5hash<S>>where
S::DetectMd5hash: IsUnset,
pub fn maybe_detect_md5hash(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetDetectMd5hash<S>>where
S::DetectMd5hash: IsUnset,
sourcepub fn event_based_hold(
self,
value: impl Into<Output<Option<bool>>>,
) -> BucketObjectArgsBuilder<SetEventBasedHold<S>>where
S::EventBasedHold: IsUnset,
pub fn event_based_hold(
self,
value: impl Into<Output<Option<bool>>>,
) -> BucketObjectArgsBuilder<SetEventBasedHold<S>>where
S::EventBasedHold: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold’s release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any).
sourcepub fn maybe_event_based_hold(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> BucketObjectArgsBuilder<SetEventBasedHold<S>>where
S::EventBasedHold: IsUnset,
pub fn maybe_event_based_hold(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> BucketObjectArgsBuilder<SetEventBasedHold<S>>where
S::EventBasedHold: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold’s release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any).
sourcepub fn kms_key_name(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetKmsKeyName<S>>where
S::KmsKeyName: IsUnset,
pub fn kms_key_name(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetKmsKeyName<S>>where
S::KmsKeyName: IsUnset,
sourcepub fn maybe_kms_key_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetKmsKeyName<S>>where
S::KmsKeyName: IsUnset,
pub fn maybe_kms_key_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetKmsKeyName<S>>where
S::KmsKeyName: IsUnset,
sourcepub fn metadata(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> BucketObjectArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn metadata(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> BucketObjectArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
sourcepub fn maybe_metadata(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> BucketObjectArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn maybe_metadata(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> BucketObjectArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn retention(
self,
value: impl Into<Output<Option<BucketObjectRetention>>>,
) -> BucketObjectArgsBuilder<SetRetention<S>>where
S::Retention: IsUnset,
pub fn retention(
self,
value: impl Into<Output<Option<BucketObjectRetention>>>,
) -> BucketObjectArgsBuilder<SetRetention<S>>where
S::Retention: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::storage::BucketObjectRetention>,
> as Default>::default()
The object retention settings for the object. The retention settings allow an object to be retained until a provided date. Structure is documented below.
sourcepub fn maybe_retention(
self,
value: Option<impl Into<Output<Option<BucketObjectRetention>>>>,
) -> BucketObjectArgsBuilder<SetRetention<S>>where
S::Retention: IsUnset,
pub fn maybe_retention(
self,
value: Option<impl Into<Output<Option<BucketObjectRetention>>>>,
) -> BucketObjectArgsBuilder<SetRetention<S>>where
S::Retention: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::storage::BucketObjectRetention>,
> as Default>::default()
The object retention settings for the object. The retention settings allow an object to be retained until a provided date. Structure is documented below.
sourcepub fn source(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetSource<S>>where
S::Source: IsUnset,
pub fn source(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetSource<S>>where
S::Source: IsUnset,
sourcepub fn maybe_source(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetSource<S>>where
S::Source: IsUnset,
pub fn maybe_source(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetSource<S>>where
S::Source: IsUnset,
sourcepub fn storage_class(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetStorageClass<S>>where
S::StorageClass: IsUnset,
pub fn storage_class(
self,
value: impl Into<Output<Option<String>>>,
) -> BucketObjectArgsBuilder<SetStorageClass<S>>where
S::StorageClass: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The StorageClass of the new bucket object.
Supported values include: MULTI_REGIONAL
, REGIONAL
, NEARLINE
, COLDLINE
, ARCHIVE
. If not provided, this defaults to the bucket’s default
storage class or to a standard class.
sourcepub fn maybe_storage_class(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetStorageClass<S>>where
S::StorageClass: IsUnset,
pub fn maybe_storage_class(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> BucketObjectArgsBuilder<SetStorageClass<S>>where
S::StorageClass: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The StorageClass of the new bucket object.
Supported values include: MULTI_REGIONAL
, REGIONAL
, NEARLINE
, COLDLINE
, ARCHIVE
. If not provided, this defaults to the bucket’s default
storage class or to a standard class.
sourcepub fn temporary_hold(
self,
value: impl Into<Output<Option<bool>>>,
) -> BucketObjectArgsBuilder<SetTemporaryHold<S>>where
S::TemporaryHold: IsUnset,
pub fn temporary_hold(
self,
value: impl Into<Output<Option<bool>>>,
) -> BucketObjectArgsBuilder<SetTemporaryHold<S>>where
S::TemporaryHold: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites.
sourcepub fn maybe_temporary_hold(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> BucketObjectArgsBuilder<SetTemporaryHold<S>>where
S::TemporaryHold: IsUnset,
pub fn maybe_temporary_hold(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> BucketObjectArgsBuilder<SetTemporaryHold<S>>where
S::TemporaryHold: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites.