Class Storage.CreateHmacKeyOption (2.17.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

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