Package com.google.cloud.storage
Class Storage.CreateHmacKeyOption
java.lang.Object
com.google.cloud.storage.Option<com.google.cloud.storage.UnifiedOpts.HmacKeyTargetOpt>
com.google.cloud.storage.Storage.CreateHmacKeyOption
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- Storage
public static class Storage.CreateHmacKeyOption
extends Option<com.google.cloud.storage.UnifiedOpts.HmacKeyTargetOpt>
Class for specifying createHmacKey options
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Storage.CreateHmacKeyOption[]
Deduplicate any options which are the same parameter.static Storage.CreateHmacKeyOption[]
dedupe
(Storage.CreateHmacKeyOption[] array, Storage.CreateHmacKeyOption... os) Deduplicate any options which are the same parameter.static Storage.CreateHmacKeyOption[]
dedupe
(Collection<Storage.CreateHmacKeyOption> collection, Storage.CreateHmacKeyOption... os) Deduplicate any options which are the same parameter.boolean
Deprecated.int
hashCode()
Deprecated.static Storage.CreateHmacKeyOption
Returns an option to specify the Project ID for this request.toString()
Deprecated.static Storage.CreateHmacKeyOption
userProject
(@NonNull String userProject) Returns an option to specify the project to be billed for this request.
-
Method Details
-
userProject
@TransportCompatibility({HTTP,GRPC}) 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. -
projectId
@TransportCompatibility({HTTP,GRPC}) 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. -
dedupe
Deduplicate any options which are the same parameter. The value which comes last inos
will be the value included in the return. -
dedupe
@BetaApi 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
andos
will be the value included in the return. All options fromos
will override their counterparts incollection
. -
dedupe
@BetaApi 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
andos
will be the value included in the return. All options fromos
will override their counterparts incollection
. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-