Class ImmutableAuthenticatedUserRepositoriesFilter
- java.lang.Object
-
- com.spotify.github.v3.repos.requests.ImmutableAuthenticatedUserRepositoriesFilter
-
- All Implemented Interfaces:
Parameters
,AuthenticatedUserRepositoriesFilter
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAuthenticatedUserRepositoriesFilter extends Object implements AuthenticatedUserRepositoriesFilter
Immutable implementation ofAuthenticatedUserRepositoriesFilter
.Use the builder to create immutable instances:
ImmutableAuthenticatedUserRepositoriesFilter.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableAuthenticatedUserRepositoriesFilter.Builder
Builds instances of typeImmutableAuthenticatedUserRepositoriesFilter
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
affiliation()
Comma-separated list of values.static ImmutableAuthenticatedUserRepositoriesFilter.Builder
builder()
Creates a builder forImmutableAuthenticatedUserRepositoriesFilter
.static ImmutableAuthenticatedUserRepositoriesFilter
copyOf(AuthenticatedUserRepositoriesFilter instance)
Creates an immutable copy of aAuthenticatedUserRepositoriesFilter
value.String
direction()
Can be one of asc or desc.boolean
equals(Object another)
This instance is equal to all instances ofImmutableAuthenticatedUserRepositoriesFilter
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:visibility
,affiliation
,type
,sort
,direction
.String
sort()
Can be one of created, updated, pushed, full_name.String
toString()
Prints the immutable valueAuthenticatedUserRepositoriesFilter
with attribute values.String
type()
Can be one of all, owner, public, private, member.String
visibility()
Can be one of all, public, or private.ImmutableAuthenticatedUserRepositoriesFilter
withAffiliation(String value)
Copy the current immutable object by setting a value for theaffiliation
attribute.ImmutableAuthenticatedUserRepositoriesFilter
withDirection(String value)
Copy the current immutable object by setting a value for thedirection
attribute.ImmutableAuthenticatedUserRepositoriesFilter
withSort(String value)
Copy the current immutable object by setting a value for thesort
attribute.ImmutableAuthenticatedUserRepositoriesFilter
withType(String value)
Copy the current immutable object by setting a value for thetype
attribute.ImmutableAuthenticatedUserRepositoriesFilter
withVisibility(String value)
Copy the current immutable object by setting a value for thevisibility
attribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.spotify.github.Parameters
serialize
-
-
-
-
Method Detail
-
visibility
@Nullable public String visibility()
Can be one of all, public, or private. Default: all- Specified by:
visibility
in interfaceAuthenticatedUserRepositoriesFilter
-
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 interfaceAuthenticatedUserRepositoriesFilter
-
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 interfaceAuthenticatedUserRepositoriesFilter
-
sort
@Nullable public String sort()
Can be one of created, updated, pushed, full_name. Default: full_name- Specified by:
sort
in interfaceAuthenticatedUserRepositoriesFilter
-
direction
@Nullable public String direction()
Can be one of asc or desc. Default: asc when using full_name, otherwise desc- Specified by:
direction
in interfaceAuthenticatedUserRepositoriesFilter
-
withVisibility
public final ImmutableAuthenticatedUserRepositoriesFilter withVisibility(@Nullable String value)
Copy the current immutable object by setting a value for thevisibility
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for visibility (can benull
)- 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 theaffiliation
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for affiliation (can benull
)- 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 thetype
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for type (can benull
)- 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 thesort
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for sort (can benull
)- 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 thedirection
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for direction (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableAuthenticatedUserRepositoriesFilter
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:visibility
,affiliation
,type
,sort
,direction
.
-
toString
public String toString()
Prints the immutable valueAuthenticatedUserRepositoriesFilter
with attribute values.
-
copyOf
public static ImmutableAuthenticatedUserRepositoriesFilter copyOf(AuthenticatedUserRepositoriesFilter instance)
Creates an immutable copy of aAuthenticatedUserRepositoriesFilter
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable AuthenticatedUserRepositoriesFilter instance
-
builder
public static ImmutableAuthenticatedUserRepositoriesFilter.Builder builder()
Creates a builder forImmutableAuthenticatedUserRepositoriesFilter
.ImmutableAuthenticatedUserRepositoriesFilter.builder() .visibility(String | null) // nullable
visibility
.affiliation(String | null) // nullableaffiliation
.type(String | null) // nullabletype
.sort(String | null) // nullablesort
.direction(String | null) // nullabledirection
.build();- Returns:
- A new ImmutableAuthenticatedUserRepositoriesFilter builder
-
-