Class Acl.Project

java.lang.Object
com.google.cloud.storage.Acl.Entity
com.google.cloud.storage.Acl.Project
All Implemented Interfaces:
Serializable
Enclosing class:
Acl

public static final class Acl.Project extends Acl.Entity
Class for ACL Project entities.
See Also:
  • Constructor Details

    • Project

      public Project(Acl.Project.ProjectRole projectRole, String projectId)
      Creates a project entity.
      Parameters:
      projectRole - a role in the project, used to select project's teams
      projectId - id of the project
  • Method Details

    • getProjectRole

      public Acl.Project.ProjectRole getProjectRole()
      Returns the role in the project for this entity.
    • getProjectId

      public String getProjectId()
      Returns the project id for this entity.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Acl.Entity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Acl.Entity