org.jclouds.googlecloudstorage.domain
Class Resource
java.lang.Object
org.jclouds.googlecloudstorage.domain.Resource
- Direct Known Subclasses:
- Bucket, BucketAccessControls, DefaultObjectAccessControls, GCSObject, ObjectAccessControls
public class Resource
- extends Object
Base class for Google Cloud Storage resources.
kind
protected final Resource.Kind kind
id
protected final String id
selfLink
protected final URI selfLink
etag
protected final String etag
Resource
@ConstructorProperties(value={"kind","id","selfLink","etag"})
protected Resource(Resource.Kind kind,
@Nullable
String id,
@Nullable
URI selfLink,
@Nullable
String etag)
getKind
public Resource.Kind getKind()
getId
public String getId()
getSelfLink
public URI getSelfLink()
getEtag
public String getEtag()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
builder
public static Resource.Builder<?> builder()
toBuilder
public Resource.Builder<?> toBuilder()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.