Class Acl

java.lang.Object
com.google.cloud.storage.Acl
All Implemented Interfaces:
Serializable

public final class Acl extends Object implements Serializable
Access Control List for buckets or blobs.
See Also:
  • Method Details

    • getEntity

      public Acl.Entity getEntity()
      Returns the entity for this ACL object.
    • getRole

      public Acl.Role getRole()
      Returns the role associated to the entity in this ACL object.
    • getId

      public String getId()
      Returns the ID of the ACL entry.
    • getEtag

      public String getEtag()
      Returns HTTP 1.1 Entity tag for the ACL entry.
      See Also:
    • toBuilder

      public Acl.Builder toBuilder()
      Returns a builder for this Acl object.
    • of

      public static Acl of(Acl.Entity entity, Acl.Role role)
      Returns an Acl object.
      Parameters:
      entity - the entity for this ACL object
      role - the role to associate to the entity object
    • newBuilder

      public static Acl.Builder newBuilder(Acl.Entity entity, Acl.Role role)
      Returns a builder for Acl objects.
      Parameters:
      entity - the entity for this ACL object
      role - the role to associate to the entity object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object