Package com.spotify.github.v3.repos
Class ImmutableFolderContent.Builder
- java.lang.Object
-
- com.spotify.github.v3.repos.ImmutableFolderContent.Builder
-
- Enclosing class:
- ImmutableFolderContent
@NotThreadSafe public static final class ImmutableFolderContent.Builder extends Object
Builds instances of typeImmutableFolderContent. 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableFolderContentbuild()Builds a newImmutableFolderContent.ImmutableFolderContent.BuilderdownloadUrl(URI downloadUrl)Initializes the value for thedownloadUrlattribute.ImmutableFolderContent.Builderfrom(ShaLink instance)Fill a builder with attribute values from the providedcom.spotify.github.v3.git.ShaLinkinstance.ImmutableFolderContent.Builderfrom(FolderContent instance)Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.FolderContentinstance.ImmutableFolderContent.BuildergitUrl(URI gitUrl)Initializes the value for thegitUrlattribute.ImmutableFolderContent.BuilderhtmlUrl(URI htmlUrl)Initializes the value for thehtmlUrlattribute.ImmutableFolderContent.Buildername(String name)Initializes the value for thenameattribute.ImmutableFolderContent.Builderpath(String path)Initializes the value for thepathattribute.ImmutableFolderContent.Buildersha(String sha)Initializes the value for theshaattribute.ImmutableFolderContent.Buildersize(Integer size)Initializes the value for thesizeattribute.ImmutableFolderContent.Buildertype(String type)Initializes the value for thetypeattribute.ImmutableFolderContent.Builderurl(URI url)Initializes the value for theurlattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder from(FolderContent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.FolderContentinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder from(ShaLink instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.git.ShaLinkinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
sha
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder sha(@Nullable String sha)
Initializes the value for theshaattribute.- Parameters:
sha- The value for sha (can benull)- Returns:
thisbuilder for use in a chained invocation
-
url
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder url(@Nullable URI url)
Initializes the value for theurlattribute.- Parameters:
url- The value for url (can benull)- Returns:
thisbuilder for use in a chained invocation
-
type
@CanIgnoreReturnValue public final ImmutableFolderContent.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
-
size
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder size(@Nullable Integer size)
Initializes the value for thesizeattribute.- Parameters:
size- The value for size (can benull)- Returns:
thisbuilder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder name(@Nullable String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
path
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder path(@Nullable String path)
Initializes the value for thepathattribute.- Parameters:
path- The value for path (can benull)- Returns:
thisbuilder for use in a chained invocation
-
gitUrl
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder gitUrl(@Nullable URI gitUrl)
Initializes the value for thegitUrlattribute.- Parameters:
gitUrl- The value for gitUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
htmlUrl
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder htmlUrl(@Nullable URI htmlUrl)
Initializes the value for thehtmlUrlattribute.- Parameters:
htmlUrl- The value for htmlUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
downloadUrl
@CanIgnoreReturnValue public final ImmutableFolderContent.Builder downloadUrl(@Nullable URI downloadUrl)
Initializes the value for thedownloadUrlattribute.- Parameters:
downloadUrl- The value for downloadUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableFolderContent build()
Builds a newImmutableFolderContent.- Returns:
- An immutable instance of FolderContent
- Throws:
IllegalStateException- if any required attributes are missing
-
-