Class Storage.CreateHmacKeyOption (2.29.0)

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

Class for specifying createHmacKey options

Inheritance

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

Static Methods

dedupe(Storage.CreateHmacKeyOption[] os)

public static Storage.CreateHmacKeyOption[] dedupe(Storage.CreateHmacKeyOption[] 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
osCreateHmacKeyOption[]
Returns
TypeDescription
CreateHmacKeyOption[]

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

public static Storage.CreateHmacKeyOption[] dedupe(Storage.CreateHmacKeyOption[] array, Storage.CreateHmacKeyOption[] 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
arrayCreateHmacKeyOption[]
osCreateHmacKeyOption[]
Returns
TypeDescription
CreateHmacKeyOption[]

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

public static Storage.CreateHmacKeyOption[] dedupe(Collection<Storage.CreateHmacKeyOption> collection, Storage.CreateHmacKeyOption[] 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<CreateHmacKeyOption>
osCreateHmacKeyOption[]
Returns
TypeDescription
CreateHmacKeyOption[]

projectId(@NonNull String projectId)

public static Storage.CreateHmacKeyOption projectId(@NonNull String projectId)

Returns an option to specify the Project ID for this request. If not specified, defaults to Application Default Credentials.

Parameter
NameDescription
projectId@org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
TypeDescription
Storage.CreateHmacKeyOption

userProject(@NonNull String userProject)

public static Storage.CreateHmacKeyOption 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.CreateHmacKeyOption