Class ImmutableAuthenticatedUserRepositoriesFilter

    • Method Detail

      • affiliation

        @Nullable
        public String affiliation()
        Comma-separated list of values. Can include: * owner: Repositories that are owned by the authenticated user. * collaborator: Repositories that the user has been added to as a collaborator. * organization_member: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. Default: owner,collaborator,organization_member
        Specified by:
        affiliation in interface AuthenticatedUserRepositoriesFilter
      • type

        @Nullable
        public String type()
        Can be one of all, owner, public, private, member. Default: all Will cause a 422 error if used in the same request as visibility or affiliation.
        Specified by:
        type in interface AuthenticatedUserRepositoriesFilter
      • withVisibility

        public final ImmutableAuthenticatedUserRepositoriesFilter withVisibility​(@Nullable
                                                                                 String value)
        Copy the current immutable object by setting a value for the visibility attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for visibility (can be null)
        Returns:
        A modified copy of the this object
      • withAffiliation

        public final ImmutableAuthenticatedUserRepositoriesFilter withAffiliation​(@Nullable
                                                                                  String value)
        Copy the current immutable object by setting a value for the affiliation attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for affiliation (can be null)
        Returns:
        A modified copy of the this object
      • withType

        public final ImmutableAuthenticatedUserRepositoriesFilter withType​(@Nullable
                                                                           String value)
        Copy the current immutable object by setting a value for the type attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for type (can be null)
        Returns:
        A modified copy of the this object
      • withSort

        public final ImmutableAuthenticatedUserRepositoriesFilter withSort​(@Nullable
                                                                           String value)
        Copy the current immutable object by setting a value for the sort attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sort (can be null)
        Returns:
        A modified copy of the this object
      • withDirection

        public final ImmutableAuthenticatedUserRepositoriesFilter withDirection​(@Nullable
                                                                                String value)
        Copy the current immutable object by setting a value for the direction attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for direction (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableAuthenticatedUserRepositoriesFilter that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: visibility, affiliation, type, sort, direction.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value AuthenticatedUserRepositoriesFilter with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value