Class Storage.UpdateHmacKeyOption (2.44.1)

public static class Storage.UpdateHmacKeyOption extends Option<UnifiedOpts.HmacKeyTargetOpt>

Class for specifying updateHmacKey options

Inheritance

java.lang.Object > com.google.cloud.storage.UnifiedOpts.OptionShim > Option > Storage.UpdateHmacKeyOption

Static Methods

dedupe(Storage.UpdateHmacKeyOption[] os)

public static Storage.UpdateHmacKeyOption[] dedupe(Storage.UpdateHmacKeyOption[] os)

Deduplicate any options which are the same parameter. The value which comes last in os will be the value included in the return.

Parameter
Name Description
os UpdateHmacKeyOption[]
Returns
Type Description
UpdateHmacKeyOption[]

dedupe(Storage.UpdateHmacKeyOption[] array, Storage.UpdateHmacKeyOption[] os)

public static Storage.UpdateHmacKeyOption[] dedupe(Storage.UpdateHmacKeyOption[] array, Storage.UpdateHmacKeyOption[] os)

Deduplicate any options which are the same parameter.

The value which comes last in collection and os will be the value included in the return. All options from os will override their counterparts in collection.

Parameters
Name Description
array UpdateHmacKeyOption[]
os UpdateHmacKeyOption[]
Returns
Type Description
UpdateHmacKeyOption[]

dedupe(Collection<Storage.UpdateHmacKeyOption> collection, Storage.UpdateHmacKeyOption[] os)

public static Storage.UpdateHmacKeyOption[] dedupe(Collection<Storage.UpdateHmacKeyOption> collection, Storage.UpdateHmacKeyOption[] os)

Deduplicate any options which are the same parameter.

The value which comes last in collection and os will be the value included in the return. All options from os will override their counterparts in collection.

Parameters
Name Description
collection Collection<UpdateHmacKeyOption>
os UpdateHmacKeyOption[]
Returns
Type Description
UpdateHmacKeyOption[]

userProject(@NonNull String userProject)

public static Storage.UpdateHmacKeyOption userProject(@NonNull String userProject)

Returns an option to specify the project to be billed for this request. Required for Requester Pays buckets.

Parameter
Name Description
userProject @org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
Type Description
Storage.UpdateHmacKeyOption