Class Storage.UpdateHmacKeyOption (2.36.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
NameDescription
osUpdateHmacKeyOption[]
Returns
TypeDescription
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
NameDescription
arrayUpdateHmacKeyOption[]
osUpdateHmacKeyOption[]
Returns
TypeDescription
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
NameDescription
collectionCollection<UpdateHmacKeyOption>
osUpdateHmacKeyOption[]
Returns
TypeDescription
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
NameDescription
userProject@org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
TypeDescription
Storage.UpdateHmacKeyOption