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 |
---|---|
boolean |
equals(Object obj) |
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.
|
StorageClass |
getStorageClass()
Returns the bucket's storage class.
|
int |
hashCode() |
static BucketInfo.Builder |
newBuilder(String name)
Returns a
BucketInfo builder where the bucket's name is set to the provided name. |
static BucketInfo |
of(String name)
Creates a
BucketInfo object for the provided bucket name. |
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. |
public String getGeneratedId()
public String getName()
public Acl.Entity getOwner()
public String getSelfLink()
public Boolean versioningEnabled()
true
if versioning is fully enabled for this bucket, false
otherwise.public String getIndexPage()
public String getNotFoundPage()
public List<? extends BucketInfo.DeleteRule> getDeleteRules()
public String getEtag()
public Long getCreateTime()
public Long getMetageneration()
public String getLocation()
public StorageClass getStorageClass()
public List<Cors> getCors()
public List<Acl> getAcl()
public List<Acl> getDefaultAcl()
public BucketInfo.Builder toBuilder()
public static BucketInfo of(String name)
BucketInfo
object for the provided bucket 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.