public static class Storage.GetHmacKeyOption extends Option<UnifiedOpts.HmacKeySourceOpt>
Class for specifying getHmacKey options
Inheritance
java.lang.Object > com.google.cloud.storage.UnifiedOpts.OptionShim > Option > Storage.GetHmacKeyOptionStatic Methods
dedupe(Storage.GetHmacKeyOption[] os)
public static Storage.GetHmacKeyOption[] dedupe(Storage.GetHmacKeyOption[] 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 |
GetHmacKeyOption[] |
Returns | |
---|---|
Type | Description |
GetHmacKeyOption[] |
dedupe(Storage.GetHmacKeyOption[] array, Storage.GetHmacKeyOption[] os)
public static Storage.GetHmacKeyOption[] dedupe(Storage.GetHmacKeyOption[] array, Storage.GetHmacKeyOption[] 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 |
GetHmacKeyOption[] |
os |
GetHmacKeyOption[] |
Returns | |
---|---|
Type | Description |
GetHmacKeyOption[] |
dedupe(Collection<Storage.GetHmacKeyOption> collection, Storage.GetHmacKeyOption[] os)
public static Storage.GetHmacKeyOption[] dedupe(Collection<Storage.GetHmacKeyOption> collection, Storage.GetHmacKeyOption[] 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<GetHmacKeyOption> |
os |
GetHmacKeyOption[] |
Returns | |
---|---|
Type | Description |
GetHmacKeyOption[] |
projectId(@NonNull String projectId)
public static Storage.GetHmacKeyOption 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.GetHmacKeyOption |
userProject(@NonNull String userProject)
public static Storage.GetHmacKeyOption 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.GetHmacKeyOption |