Class Storage.CreateHmacKeyOption (2.11.2)

public static class Storage.CreateHmacKeyOption extends Option

Class for specifying createHmacKey options

Inheritance

Object > Option > Storage.CreateHmacKeyOption

Static Methods

projectId(String projectId)

public static Storage.CreateHmacKeyOption projectId(String projectId)

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

Parameter
NameDescription
projectIdString
Returns
TypeDescription
Storage.CreateHmacKeyOption

userProject(String userProject)

public static Storage.CreateHmacKeyOption userProject(String userProject)

Returns an option to specify the project to be billed for this request. Required for Requester Pays buckets.

Parameter
NameDescription
userProjectString
Returns
TypeDescription
Storage.CreateHmacKeyOption