public abstract class CreateObjectOptions extends Object
GoogleCloudStorage.| Modifier and Type | Class and Description |
|---|---|
static class |
CreateObjectOptions.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE_DEFAULT |
static CreateObjectOptions |
DEFAULT_NO_OVERWRITE |
static CreateObjectOptions |
DEFAULT_OVERWRITE |
| Constructor and Description |
|---|
CreateObjectOptions() |
| Modifier and Type | Method and Description |
|---|---|
static CreateObjectOptions.Builder |
builder() |
abstract String |
getContentEncoding()
Content encoding for the created object.
|
abstract String |
getContentType()
Content type for the created object.
|
abstract String |
getKmsKeyName()
A KMS key name to encrypt the created object.
|
abstract com.google.common.collect.ImmutableMap<String,byte[]> |
getMetadata()
A metadata to apply to the create object.
|
abstract boolean |
isEnsureEmptyObjectsMetadataMatch()
When creating an empty object and certain types of errors occur, any existing object is checked
for an exact metadata match to the metadata in this
CreateObjectOptions before
accepting the creation as successful. |
abstract boolean |
isOverwriteExisting()
Whether to overwrite any existing objects with the same name
|
abstract CreateObjectOptions.Builder |
toBuilder() |
public static final String CONTENT_TYPE_DEFAULT
public static final CreateObjectOptions DEFAULT_NO_OVERWRITE
public static final CreateObjectOptions DEFAULT_OVERWRITE
public static CreateObjectOptions.Builder builder()
public abstract CreateObjectOptions.Builder toBuilder()
@Nullable public abstract String getContentEncoding()
@Nullable public abstract String getContentType()
public abstract boolean isEnsureEmptyObjectsMetadataMatch()
CreateObjectOptions before
accepting the creation as successful. If false, then on error for creating empty
objects, as long as an appropriate empty object already exists, even if it holds different
metadata than provided in this CreateObjectOptions instance, it may be considered
created successfully.@Nullable public abstract String getKmsKeyName()
public abstract com.google.common.collect.ImmutableMap<String,byte[]> getMetadata()
public abstract boolean isOverwriteExisting()
Copyright © 2023. All rights reserved.