Class ImmutableAuthenticatedUserRepositoriesFilter.Builder
- java.lang.Object
-
- com.spotify.github.v3.repos.requests.ImmutableAuthenticatedUserRepositoriesFilter.Builder
-
- Enclosing class:
- ImmutableAuthenticatedUserRepositoriesFilter
@NotThreadSafe public static final class ImmutableAuthenticatedUserRepositoriesFilter.Builder extends Object
Builds instances of typeImmutableAuthenticatedUserRepositoriesFilter. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableAuthenticatedUserRepositoriesFilter.Builder from(AuthenticatedUserRepositoriesFilter instance)
Fill a builder with attribute values from the providedAuthenticatedUserRepositoriesFilterinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
visibility
@CanIgnoreReturnValue public final ImmutableAuthenticatedUserRepositoriesFilter.Builder visibility(@Nullable String visibility)
Initializes the value for thevisibilityattribute.- Parameters:
visibility- The value for visibility (can benull)- Returns:
thisbuilder for use in a chained invocation
-
affiliation
@CanIgnoreReturnValue public final ImmutableAuthenticatedUserRepositoriesFilter.Builder affiliation(@Nullable String affiliation)
Initializes the value for theaffiliationattribute.- Parameters:
affiliation- The value for affiliation (can benull)- Returns:
thisbuilder for use in a chained invocation
-
type
@CanIgnoreReturnValue public final ImmutableAuthenticatedUserRepositoriesFilter.Builder type(@Nullable String type)
Initializes the value for thetypeattribute.- Parameters:
type- The value for type (can benull)- Returns:
thisbuilder for use in a chained invocation
-
sort
@CanIgnoreReturnValue public final ImmutableAuthenticatedUserRepositoriesFilter.Builder sort(@Nullable String sort)
Initializes the value for thesortattribute.- Parameters:
sort- The value for sort (can benull)- Returns:
thisbuilder for use in a chained invocation
-
direction
@CanIgnoreReturnValue public final ImmutableAuthenticatedUserRepositoriesFilter.Builder direction(@Nullable String direction)
Initializes the value for thedirectionattribute.- Parameters:
direction- The value for direction (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableAuthenticatedUserRepositoriesFilter build()
Builds a newImmutableAuthenticatedUserRepositoriesFilter.- Returns:
- An immutable instance of AuthenticatedUserRepositoriesFilter
- Throws:
IllegalStateException- if any required attributes are missing
-
-