Class Storage.CreateHmacKeyOption (2.29.1)

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
Name Description
os CreateHmacKeyOption[]
Returns
Type Description
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
Name Description
array CreateHmacKeyOption[]
os CreateHmacKeyOption[]
Returns
Type Description
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
Name Description
collection Collection<CreateHmacKeyOption>
os CreateHmacKeyOption[]
Returns
Type Description
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
Name Description
projectId @org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
Type Description
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
Name Description
userProject @org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
Type Description
Storage.CreateHmacKeyOption