public class BucketInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BucketInfo.AgeDeleteRule
Delete rule class that sets a Time To Live for blobs in the bucket.
|
static class |
BucketInfo.Builder
Builder for
BucketInfo . |
static class |
BucketInfo.CreatedBeforeDeleteRule
Delete rule class for blobs in the bucket that have been created before a certain date.
|
static class |
BucketInfo.DeleteRule
Base class for bucket's delete rules.
|
static class |
BucketInfo.IsLiveDeleteRule
Delete rule class to distinguish between live and archived blobs.
|
static class |
BucketInfo.NumNewerVersionsDeleteRule
Delete rule class for versioned blobs.
|
Modifier and Type | Method and Description |
---|---|
List<Acl> |
acl()
Deprecated.
|
static BucketInfo.Builder |
builder(String name)
Deprecated.
|
List<Cors> |
cors()
Deprecated.
|
Long |
createTime()
Deprecated.
|
List<Acl> |
defaultAcl()
Deprecated.
|
List<? extends BucketInfo.DeleteRule> |
deleteRules()
Deprecated.
|
boolean |
equals(Object obj) |
String |
etag()
Deprecated.
|
String |
generatedId()
Deprecated.
|
List<Acl> |
getAcl()
Returns the bucket's access control configuration.
|
List<Cors> |
getCors()
Returns the bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
Long |
getCreateTime()
Returns the time at which the bucket was created.
|
List<Acl> |
getDefaultAcl()
Returns the default access control configuration for this bucket's blobs.
|
List<? extends BucketInfo.DeleteRule> |
getDeleteRules()
Returns bucket's lifecycle configuration as a number of delete rules.
|
String |
getEtag()
Returns HTTP 1.1 Entity tag for the bucket.
|
String |
getGeneratedId()
Returns the service-generated id for the bucket.
|
String |
getIndexPage()
Returns bucket's website index page.
|
String |
getLocation()
Returns the bucket's location.
|
Long |
getMetageneration()
Returns the metadata generation of this bucket.
|
String |
getName()
Returns the bucket's name.
|
String |
getNotFoundPage()
Returns the custom object to return when a requested resource is not found.
|
Acl.Entity |
getOwner()
Returns the bucket's owner.
|
String |
getSelfLink()
Returns the URI of this bucket as a string.
|
String |
getStorageClass()
Returns the bucket's storage class.
|
int |
hashCode() |
String |
indexPage()
Deprecated.
|
String |
location()
Deprecated.
|
Long |
metageneration()
Deprecated.
|
String |
name()
Deprecated.
|
static BucketInfo.Builder |
newBuilder(String name)
Returns a
BucketInfo builder where the bucket's name is set to the provided name. |
String |
notFoundPage()
Deprecated.
|
static BucketInfo |
of(String name)
Creates a
BucketInfo object for the provided bucket name. |
Acl.Entity |
owner()
Deprecated.
|
String |
selfLink()
Deprecated.
|
String |
storageClass()
Deprecated.
|
BucketInfo.Builder |
toBuilder()
Returns a builder for the current bucket.
|
String |
toString() |
Boolean |
versioningEnabled()
Returns
true if versioning is fully enabled for this bucket, false otherwise. |
@Deprecated public String generatedId()
public String getGeneratedId()
@Deprecated public String name()
public String getName()
@Deprecated public Acl.Entity owner()
public Acl.Entity getOwner()
@Deprecated public String selfLink()
public String getSelfLink()
public Boolean versioningEnabled()
true
if versioning is fully enabled for this bucket, false
otherwise.@Deprecated public String indexPage()
public String getIndexPage()
@Deprecated public String notFoundPage()
public String getNotFoundPage()
@Deprecated public List<? extends BucketInfo.DeleteRule> deleteRules()
public List<? extends BucketInfo.DeleteRule> getDeleteRules()
@Deprecated public String etag()
public String getEtag()
@Deprecated public Long createTime()
public Long getCreateTime()
@Deprecated public Long metageneration()
public Long getMetageneration()
@Deprecated public String location()
public String getLocation()
@Deprecated public String storageClass()
public String getStorageClass()
@Deprecated public List<Cors> cors()
public List<Cors> getCors()
@Deprecated public List<Acl> acl()
public List<Acl> getAcl()
@Deprecated public List<Acl> defaultAcl()
public List<Acl> getDefaultAcl()
public BucketInfo.Builder toBuilder()
public static BucketInfo of(String name)
BucketInfo
object for the provided bucket name.@Deprecated public static BucketInfo.Builder builder(String name)
BucketInfo
builder where the bucket's name is set to the provided name.public static BucketInfo.Builder newBuilder(String name)
BucketInfo
builder where the bucket's name is set to the provided name.Copyright © 2017 Google. All rights reserved.