Package com.spotify.github.v3.repos
Class ImmutableRepository.Builder
- java.lang.Object
-
- com.spotify.github.v3.repos.ImmutableRepository.Builder
-
- Enclosing class:
- ImmutableRepository
@NotThreadSafe public static final class ImmutableRepository.Builder extends Object
Builds instances of typeImmutableRepository. 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 Deprecated Methods Modifier and Type Method Description ImmutableRepository.BuilderallowAutoMerge(Boolean allowAutoMerge)Initializes the value for theallowAutoMergeattribute.ImmutableRepository.BuilderallowMergeCommit(Boolean allowMergeCommit)Initializes the value for theallowMergeCommitattribute.ImmutableRepository.BuilderallowRebaseMerge(Boolean allowRebaseMerge)Initializes the value for theallowRebaseMergeattribute.ImmutableRepository.BuilderallowSquashMerge(Boolean allowSquashMerge)Initializes the value for theallowSquashMergeattribute.ImmutableRepository.BuilderarchiveUrl(String archiveUrl)Initializes the value for thearchiveUrlattribute.ImmutableRepository.BuilderassigneesUrl(String assigneesUrl)Initializes the value for theassigneesUrlattribute.ImmutableRepository.BuilderblobsUrl(String blobsUrl)Initializes the value for theblobsUrlattribute.ImmutableRepository.BuilderbranchesUrl(String branchesUrl)Initializes the value for thebranchesUrlattribute.ImmutableRepositorybuild()Builds a newImmutableRepository.ImmutableRepository.BuildercloneUrl(URI cloneUrl)Initializes the value for thecloneUrlattribute.ImmutableRepository.BuildercollaboratorsUrl(String collaboratorsUrl)Initializes the value for thecollaboratorsUrlattribute.ImmutableRepository.BuildercommentsUrl(String commentsUrl)Initializes the value for thecommentsUrlattribute.ImmutableRepository.BuildercommitsUrl(String commitsUrl)Initializes the value for thecommitsUrlattribute.ImmutableRepository.BuildercompareUrl(String compareUrl)Initializes the value for thecompareUrlattribute.ImmutableRepository.BuildercontentsUrl(String contentsUrl)Initializes the value for thecontentsUrlattribute.ImmutableRepository.BuildercontributorsUrl(URI contributorsUrl)Initializes the value for thecontributorsUrlattribute.ImmutableRepository.BuildercreatedAt(GitHubInstant createdAt)Initializes the value for thecreatedAtattribute.ImmutableRepository.BuilderdefaultBranch(String defaultBranch)Initializes the value for thedefaultBranchattribute.ImmutableRepository.BuilderdeploymentsUrl(URI deploymentsUrl)Initializes the optional valuedeploymentsUrlto deploymentsUrl.ImmutableRepository.BuilderdeploymentsUrl(Optional<? extends URI> deploymentsUrl)Initializes the optional valuedeploymentsUrlto deploymentsUrl.ImmutableRepository.Builderdescription(String description)Initializes the optional valuedescriptionto description.ImmutableRepository.Builderdescription(Optional<String> description)Initializes the optional valuedescriptionto description.ImmutableRepository.BuilderdownloadsUrl(URI downloadsUrl)Initializes the value for thedownloadsUrlattribute.ImmutableRepository.BuildereventsUrl(URI eventsUrl)Initializes the value for theeventsUrlattribute.ImmutableRepository.Builderfork(Boolean fork)Initializes the value for theforkattribute.ImmutableRepository.Builderforks(Integer forks)Deprecated.ImmutableRepository.BuilderforksCount(Integer forksCount)Initializes the value for theforksCountattribute.ImmutableRepository.BuilderforksUrl(URI forksUrl)Initializes the value for theforksUrlattribute.ImmutableRepository.Builderfrom(UpdateTracking instance)Fill a builder with attribute values from the providedcom.spotify.github.UpdateTrackinginstance.ImmutableRepository.Builderfrom(Repository instance)Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.Repositoryinstance.ImmutableRepository.Builderfrom(RepositoryBase instance)Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.RepositoryBaseinstance.ImmutableRepository.BuilderfullName(String fullName)Initializes the value for thefullNameattribute.ImmutableRepository.BuildergitCommitsUrl(String gitCommitsUrl)Initializes the value for thegitCommitsUrlattribute.ImmutableRepository.BuildergitRefsUrl(String gitRefsUrl)Initializes the value for thegitRefsUrlattribute.ImmutableRepository.BuildergitTagsUrl(String gitTagsUrl)Initializes the value for thegitTagsUrlattribute.ImmutableRepository.BuildergitUrl(URI gitUrl)Initializes the value for thegitUrlattribute.ImmutableRepository.BuilderhasDownloads(Boolean hasDownloads)Initializes the value for thehasDownloadsattribute.ImmutableRepository.BuilderhasIssues(Boolean hasIssues)Initializes the value for thehasIssuesattribute.ImmutableRepository.BuilderhasPages(Boolean hasPages)Initializes the value for thehasPagesattribute.ImmutableRepository.BuilderhasWiki(Boolean hasWiki)Initializes the value for thehasWikiattribute.ImmutableRepository.Builderhomepage(String homepage)Initializes the optional valuehomepageto homepage.ImmutableRepository.Builderhomepage(Optional<String> homepage)Initializes the optional valuehomepageto homepage.ImmutableRepository.BuilderhooksUrl(URI hooksUrl)Initializes the value for thehooksUrlattribute.ImmutableRepository.BuilderhtmlUrl(URI htmlUrl)Initializes the value for thehtmlUrlattribute.ImmutableRepository.Builderid(Integer id)Initializes the value for theidattribute.ImmutableRepository.BuilderisArchived(Boolean isArchived)Initializes the value for theisArchivedattribute.ImmutableRepository.BuilderisPrivate(Boolean isPrivate)Initializes the value for theisPrivateattribute.ImmutableRepository.BuilderisPublic(boolean isPublic)Initializes the optional valueisPublicto isPublic.ImmutableRepository.BuilderisPublic(Optional<Boolean> isPublic)Initializes the optional valueisPublicto isPublic.ImmutableRepository.BuilderissueCommentUrl(String issueCommentUrl)Initializes the value for theissueCommentUrlattribute.ImmutableRepository.BuilderissueEventsUrl(String issueEventsUrl)Initializes the value for theissueEventsUrlattribute.ImmutableRepository.BuilderissuesUrl(String issuesUrl)Initializes the value for theissuesUrlattribute.ImmutableRepository.BuilderkeysUrl(String keysUrl)Initializes the value for thekeysUrlattribute.ImmutableRepository.BuilderlabelsUrl(String labelsUrl)Initializes the value for thelabelsUrlattribute.ImmutableRepository.Builderlanguage(String language)Initializes the optional valuelanguageto language.ImmutableRepository.Builderlanguage(Optional<String> language)Initializes the optional valuelanguageto language.ImmutableRepository.BuilderlanguagesUrl(URI languagesUrl)Initializes the value for thelanguagesUrlattribute.ImmutableRepository.BuildermasterBranch(String masterBranch)Deprecated.ImmutableRepository.BuildermasterBranch(Optional<String> masterBranch)Deprecated.ImmutableRepository.BuildermergesUrl(URI mergesUrl)Initializes the value for themergesUrlattribute.ImmutableRepository.BuildermilestonesUrl(String milestonesUrl)Initializes the value for themilestonesUrlattribute.ImmutableRepository.BuildermirrorUrl(URI mirrorUrl)Initializes the optional valuemirrorUrlto mirrorUrl.ImmutableRepository.BuildermirrorUrl(Optional<? extends URI> mirrorUrl)Initializes the optional valuemirrorUrlto mirrorUrl.ImmutableRepository.Buildername(String name)Initializes the value for thenameattribute.ImmutableRepository.BuildernotificationsUrl(String notificationsUrl)Initializes the value for thenotificationsUrlattribute.ImmutableRepository.BuilderopenIssues(int openIssues)Deprecated.ImmutableRepository.BuilderopenIssues(Optional<Integer> openIssues)Deprecated.ImmutableRepository.BuilderopenIssuesCount(Integer openIssuesCount)Initializes the value for theopenIssuesCountattribute.ImmutableRepository.Builderowner(User owner)Initializes the value for theownerattribute.ImmutableRepository.Builderpermissions(Permissions permissions)Initializes the optional valuepermissionsto permissions.ImmutableRepository.Builderpermissions(Optional<? extends Permissions> permissions)Initializes the optional valuepermissionsto permissions.ImmutableRepository.BuilderpullsUrl(String pullsUrl)Initializes the value for thepullsUrlattribute.ImmutableRepository.BuilderpushedAt(GitHubInstant pushedAt)Initializes the value for thepushedAtattribute.ImmutableRepository.BuilderreleasesUrl(String releasesUrl)Initializes the value for thereleasesUrlattribute.ImmutableRepository.Buildersize(Integer size)Initializes the value for thesizeattribute.ImmutableRepository.BuildersshUrl(String sshUrl)Initializes the value for thesshUrlattribute.ImmutableRepository.Builderstargazers(int stargazers)Deprecated.ImmutableRepository.Builderstargazers(Optional<Integer> stargazers)Deprecated.ImmutableRepository.BuilderstargazersCount(Integer stargazersCount)Initializes the value for thestargazersCountattribute.ImmutableRepository.BuilderstargazersUrl(URI stargazersUrl)Initializes the value for thestargazersUrlattribute.ImmutableRepository.BuilderstatusesUrl(String statusesUrl)Initializes the value for thestatusesUrlattribute.ImmutableRepository.BuildersubscribersUrl(URI subscribersUrl)Initializes the value for thesubscribersUrlattribute.ImmutableRepository.BuildersubscriptionUrl(URI subscriptionUrl)Initializes the value for thesubscriptionUrlattribute.ImmutableRepository.BuildersvnUrl(URI svnUrl)Initializes the value for thesvnUrlattribute.ImmutableRepository.BuildertagsUrl(URI tagsUrl)Initializes the value for thetagsUrlattribute.ImmutableRepository.BuilderteamsUrl(String teamsUrl)Initializes the value for theteamsUrlattribute.ImmutableRepository.BuildertreesUrl(String treesUrl)Initializes the value for thetreesUrlattribute.ImmutableRepository.BuilderupdatedAt(GitHubInstant updatedAt)Initializes the value for theupdatedAtattribute.ImmutableRepository.Builderurl(URI url)Initializes the value for theurlattribute.ImmutableRepository.Builderwatchers(int watchers)Deprecated.ImmutableRepository.Builderwatchers(Optional<Integer> watchers)Deprecated.ImmutableRepository.BuilderwatchersCount(Integer watchersCount)Initializes the value for thewatchersCountattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableRepository.Builder from(Repository instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.Repositoryinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableRepository.Builder from(RepositoryBase instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.RepositoryBaseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableRepository.Builder from(UpdateTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.UpdateTrackinginstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
createdAt
@CanIgnoreReturnValue public final ImmutableRepository.Builder createdAt(@Nullable GitHubInstant createdAt)
Initializes the value for thecreatedAtattribute.- Parameters:
createdAt- The value for createdAt (can benull)- Returns:
thisbuilder for use in a chained invocation
-
updatedAt
@CanIgnoreReturnValue public final ImmutableRepository.Builder updatedAt(@Nullable GitHubInstant updatedAt)
Initializes the value for theupdatedAtattribute.- Parameters:
updatedAt- The value for updatedAt (can benull)- Returns:
thisbuilder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableRepository.Builder id(@Nullable Integer id)
Initializes the value for theidattribute.- Parameters:
id- The value for id (can benull)- Returns:
thisbuilder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutableRepository.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
-
fullName
@CanIgnoreReturnValue public final ImmutableRepository.Builder fullName(@Nullable String fullName)
Initializes the value for thefullNameattribute.- Parameters:
fullName- The value for fullName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableRepository.Builder description(String description)
Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableRepository.Builder description(Optional<String> description)
Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
isPrivate
@CanIgnoreReturnValue public final ImmutableRepository.Builder isPrivate(@Nullable Boolean isPrivate)
Initializes the value for theisPrivateattribute.- Parameters:
isPrivate- The value for isPrivate (can benull)- Returns:
thisbuilder for use in a chained invocation
-
isArchived
@CanIgnoreReturnValue public final ImmutableRepository.Builder isArchived(@Nullable Boolean isArchived)
Initializes the value for theisArchivedattribute.- Parameters:
isArchived- The value for isArchived (can benull)- Returns:
thisbuilder for use in a chained invocation
-
isPublic
@CanIgnoreReturnValue public final ImmutableRepository.Builder isPublic(boolean isPublic)
Initializes the optional valueisPublicto isPublic.- Parameters:
isPublic- The value for isPublic- Returns:
thisbuilder for chained invocation
-
isPublic
@CanIgnoreReturnValue public final ImmutableRepository.Builder isPublic(Optional<Boolean> isPublic)
Initializes the optional valueisPublicto isPublic.- Parameters:
isPublic- The value for isPublic- Returns:
thisbuilder for use in a chained invocation
-
fork
@CanIgnoreReturnValue public final ImmutableRepository.Builder fork(@Nullable Boolean fork)
Initializes the value for theforkattribute.- Parameters:
fork- The value for fork (can benull)- Returns:
thisbuilder for use in a chained invocation
-
url
@CanIgnoreReturnValue public final ImmutableRepository.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
-
htmlUrl
@CanIgnoreReturnValue public final ImmutableRepository.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
-
allowAutoMerge
@CanIgnoreReturnValue public final ImmutableRepository.Builder allowAutoMerge(@Nullable Boolean allowAutoMerge)
Initializes the value for theallowAutoMergeattribute.- Parameters:
allowAutoMerge- The value for allowAutoMerge (can benull)- Returns:
thisbuilder for use in a chained invocation
-
allowSquashMerge
@CanIgnoreReturnValue public final ImmutableRepository.Builder allowSquashMerge(@Nullable Boolean allowSquashMerge)
Initializes the value for theallowSquashMergeattribute.- Parameters:
allowSquashMerge- The value for allowSquashMerge (can benull)- Returns:
thisbuilder for use in a chained invocation
-
allowMergeCommit
@CanIgnoreReturnValue public final ImmutableRepository.Builder allowMergeCommit(@Nullable Boolean allowMergeCommit)
Initializes the value for theallowMergeCommitattribute.- Parameters:
allowMergeCommit- The value for allowMergeCommit (can benull)- Returns:
thisbuilder for use in a chained invocation
-
allowRebaseMerge
@CanIgnoreReturnValue public final ImmutableRepository.Builder allowRebaseMerge(@Nullable Boolean allowRebaseMerge)
Initializes the value for theallowRebaseMergeattribute.- Parameters:
allowRebaseMerge- The value for allowRebaseMerge (can benull)- Returns:
thisbuilder for use in a chained invocation
-
archiveUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder archiveUrl(@Nullable String archiveUrl)
Initializes the value for thearchiveUrlattribute.- Parameters:
archiveUrl- The value for archiveUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
assigneesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder assigneesUrl(@Nullable String assigneesUrl)
Initializes the value for theassigneesUrlattribute.- Parameters:
assigneesUrl- The value for assigneesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
blobsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder blobsUrl(@Nullable String blobsUrl)
Initializes the value for theblobsUrlattribute.- Parameters:
blobsUrl- The value for blobsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
branchesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder branchesUrl(@Nullable String branchesUrl)
Initializes the value for thebranchesUrlattribute.- Parameters:
branchesUrl- The value for branchesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
cloneUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder cloneUrl(@Nullable URI cloneUrl)
Initializes the value for thecloneUrlattribute.- Parameters:
cloneUrl- The value for cloneUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
collaboratorsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder collaboratorsUrl(@Nullable String collaboratorsUrl)
Initializes the value for thecollaboratorsUrlattribute.- Parameters:
collaboratorsUrl- The value for collaboratorsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
commentsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder commentsUrl(@Nullable String commentsUrl)
Initializes the value for thecommentsUrlattribute.- Parameters:
commentsUrl- The value for commentsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
commitsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder commitsUrl(@Nullable String commitsUrl)
Initializes the value for thecommitsUrlattribute.- Parameters:
commitsUrl- The value for commitsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
compareUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder compareUrl(@Nullable String compareUrl)
Initializes the value for thecompareUrlattribute.- Parameters:
compareUrl- The value for compareUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
contentsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder contentsUrl(@Nullable String contentsUrl)
Initializes the value for thecontentsUrlattribute.- Parameters:
contentsUrl- The value for contentsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
contributorsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder contributorsUrl(@Nullable URI contributorsUrl)
Initializes the value for thecontributorsUrlattribute.- Parameters:
contributorsUrl- The value for contributorsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
deploymentsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder deploymentsUrl(URI deploymentsUrl)
Initializes the optional valuedeploymentsUrlto deploymentsUrl.- Parameters:
deploymentsUrl- The value for deploymentsUrl- Returns:
thisbuilder for chained invocation
-
deploymentsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder deploymentsUrl(Optional<? extends URI> deploymentsUrl)
Initializes the optional valuedeploymentsUrlto deploymentsUrl.- Parameters:
deploymentsUrl- The value for deploymentsUrl- Returns:
thisbuilder for use in a chained invocation
-
downloadsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder downloadsUrl(@Nullable URI downloadsUrl)
Initializes the value for thedownloadsUrlattribute.- Parameters:
downloadsUrl- The value for downloadsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
eventsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder eventsUrl(@Nullable URI eventsUrl)
Initializes the value for theeventsUrlattribute.- Parameters:
eventsUrl- The value for eventsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
forksUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder forksUrl(@Nullable URI forksUrl)
Initializes the value for theforksUrlattribute.- Parameters:
forksUrl- The value for forksUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
gitCommitsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder gitCommitsUrl(@Nullable String gitCommitsUrl)
Initializes the value for thegitCommitsUrlattribute.- Parameters:
gitCommitsUrl- The value for gitCommitsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
gitRefsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder gitRefsUrl(@Nullable String gitRefsUrl)
Initializes the value for thegitRefsUrlattribute.- Parameters:
gitRefsUrl- The value for gitRefsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
gitTagsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder gitTagsUrl(@Nullable String gitTagsUrl)
Initializes the value for thegitTagsUrlattribute.- Parameters:
gitTagsUrl- The value for gitTagsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
gitUrl
@CanIgnoreReturnValue public final ImmutableRepository.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
-
hooksUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder hooksUrl(@Nullable URI hooksUrl)
Initializes the value for thehooksUrlattribute.- Parameters:
hooksUrl- The value for hooksUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
homepage
@CanIgnoreReturnValue public final ImmutableRepository.Builder homepage(String homepage)
Initializes the optional valuehomepageto homepage.- Parameters:
homepage- The value for homepage- Returns:
thisbuilder for chained invocation
-
homepage
@CanIgnoreReturnValue public final ImmutableRepository.Builder homepage(Optional<String> homepage)
Initializes the optional valuehomepageto homepage.- Parameters:
homepage- The value for homepage- Returns:
thisbuilder for use in a chained invocation
-
language
@CanIgnoreReturnValue public final ImmutableRepository.Builder language(String language)
Initializes the optional valuelanguageto language.- Parameters:
language- The value for language- Returns:
thisbuilder for chained invocation
-
language
@CanIgnoreReturnValue public final ImmutableRepository.Builder language(Optional<String> language)
Initializes the optional valuelanguageto language.- Parameters:
language- The value for language- Returns:
thisbuilder for use in a chained invocation
-
forksCount
@CanIgnoreReturnValue public final ImmutableRepository.Builder forksCount(@Nullable Integer forksCount)
Initializes the value for theforksCountattribute.- Parameters:
forksCount- The value for forksCount (can benull)- Returns:
thisbuilder for use in a chained invocation
-
stargazersCount
@CanIgnoreReturnValue public final ImmutableRepository.Builder stargazersCount(@Nullable Integer stargazersCount)
Initializes the value for thestargazersCountattribute.- Parameters:
stargazersCount- The value for stargazersCount (can benull)- Returns:
thisbuilder for use in a chained invocation
-
watchersCount
@CanIgnoreReturnValue public final ImmutableRepository.Builder watchersCount(@Nullable Integer watchersCount)
Initializes the value for thewatchersCountattribute.- Parameters:
watchersCount- The value for watchersCount (can benull)- Returns:
thisbuilder for use in a chained invocation
-
size
@CanIgnoreReturnValue public final ImmutableRepository.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
-
defaultBranch
@CanIgnoreReturnValue public final ImmutableRepository.Builder defaultBranch(@Nullable String defaultBranch)
Initializes the value for thedefaultBranchattribute.- Parameters:
defaultBranch- The value for defaultBranch (can benull)- Returns:
thisbuilder for use in a chained invocation
-
openIssuesCount
@CanIgnoreReturnValue public final ImmutableRepository.Builder openIssuesCount(@Nullable Integer openIssuesCount)
Initializes the value for theopenIssuesCountattribute.- Parameters:
openIssuesCount- The value for openIssuesCount (can benull)- Returns:
thisbuilder for use in a chained invocation
-
hasIssues
@CanIgnoreReturnValue public final ImmutableRepository.Builder hasIssues(@Nullable Boolean hasIssues)
Initializes the value for thehasIssuesattribute.- Parameters:
hasIssues- The value for hasIssues (can benull)- Returns:
thisbuilder for use in a chained invocation
-
hasWiki
@CanIgnoreReturnValue public final ImmutableRepository.Builder hasWiki(@Nullable Boolean hasWiki)
Initializes the value for thehasWikiattribute.- Parameters:
hasWiki- The value for hasWiki (can benull)- Returns:
thisbuilder for use in a chained invocation
-
hasPages
@CanIgnoreReturnValue public final ImmutableRepository.Builder hasPages(@Nullable Boolean hasPages)
Initializes the value for thehasPagesattribute.- Parameters:
hasPages- The value for hasPages (can benull)- Returns:
thisbuilder for use in a chained invocation
-
hasDownloads
@CanIgnoreReturnValue public final ImmutableRepository.Builder hasDownloads(@Nullable Boolean hasDownloads)
Initializes the value for thehasDownloadsattribute.- Parameters:
hasDownloads- The value for hasDownloads (can benull)- Returns:
thisbuilder for use in a chained invocation
-
permissions
@CanIgnoreReturnValue public final ImmutableRepository.Builder permissions(Permissions permissions)
Initializes the optional valuepermissionsto permissions.- Parameters:
permissions- The value for permissions- Returns:
thisbuilder for chained invocation
-
permissions
@CanIgnoreReturnValue public final ImmutableRepository.Builder permissions(Optional<? extends Permissions> permissions)
Initializes the optional valuepermissionsto permissions.- Parameters:
permissions- The value for permissions- Returns:
thisbuilder for use in a chained invocation
-
forks
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder forks(@Nullable Integer forks)
Deprecated.Initializes the value for theforksattribute.- Parameters:
forks- The value for forks (can benull)- Returns:
thisbuilder for use in a chained invocation
-
pushedAt
@CanIgnoreReturnValue public final ImmutableRepository.Builder pushedAt(@Nullable GitHubInstant pushedAt)
Initializes the value for thepushedAtattribute.- Parameters:
pushedAt- The value for pushedAt (can benull)- Returns:
thisbuilder for use in a chained invocation
-
issuesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder issuesUrl(@Nullable String issuesUrl)
Initializes the value for theissuesUrlattribute.- Parameters:
issuesUrl- The value for issuesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
issueCommentUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder issueCommentUrl(@Nullable String issueCommentUrl)
Initializes the value for theissueCommentUrlattribute.- Parameters:
issueCommentUrl- The value for issueCommentUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
issueEventsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder issueEventsUrl(@Nullable String issueEventsUrl)
Initializes the value for theissueEventsUrlattribute.- Parameters:
issueEventsUrl- The value for issueEventsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
keysUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder keysUrl(@Nullable String keysUrl)
Initializes the value for thekeysUrlattribute.- Parameters:
keysUrl- The value for keysUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
labelsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder labelsUrl(@Nullable String labelsUrl)
Initializes the value for thelabelsUrlattribute.- Parameters:
labelsUrl- The value for labelsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
languagesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder languagesUrl(@Nullable URI languagesUrl)
Initializes the value for thelanguagesUrlattribute.- Parameters:
languagesUrl- The value for languagesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
mergesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder mergesUrl(@Nullable URI mergesUrl)
Initializes the value for themergesUrlattribute.- Parameters:
mergesUrl- The value for mergesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
milestonesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder milestonesUrl(@Nullable String milestonesUrl)
Initializes the value for themilestonesUrlattribute.- Parameters:
milestonesUrl- The value for milestonesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
mirrorUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder mirrorUrl(URI mirrorUrl)
Initializes the optional valuemirrorUrlto mirrorUrl.- Parameters:
mirrorUrl- The value for mirrorUrl- Returns:
thisbuilder for chained invocation
-
mirrorUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder mirrorUrl(Optional<? extends URI> mirrorUrl)
Initializes the optional valuemirrorUrlto mirrorUrl.- Parameters:
mirrorUrl- The value for mirrorUrl- Returns:
thisbuilder for use in a chained invocation
-
notificationsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder notificationsUrl(@Nullable String notificationsUrl)
Initializes the value for thenotificationsUrlattribute.- Parameters:
notificationsUrl- The value for notificationsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
openIssues
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder openIssues(int openIssues)
Deprecated.Initializes the optional valueopenIssuesto openIssues.- Parameters:
openIssues- The value for openIssues- Returns:
thisbuilder for chained invocation
-
openIssues
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder openIssues(Optional<Integer> openIssues)
Deprecated.Initializes the optional valueopenIssuesto openIssues.- Parameters:
openIssues- The value for openIssues- Returns:
thisbuilder for use in a chained invocation
-
pullsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder pullsUrl(@Nullable String pullsUrl)
Initializes the value for thepullsUrlattribute.- Parameters:
pullsUrl- The value for pullsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
releasesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder releasesUrl(@Nullable String releasesUrl)
Initializes the value for thereleasesUrlattribute.- Parameters:
releasesUrl- The value for releasesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
sshUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder sshUrl(@Nullable String sshUrl)
Initializes the value for thesshUrlattribute.- Parameters:
sshUrl- The value for sshUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
stargazersUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder stargazersUrl(@Nullable URI stargazersUrl)
Initializes the value for thestargazersUrlattribute.- Parameters:
stargazersUrl- The value for stargazersUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
statusesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder statusesUrl(@Nullable String statusesUrl)
Initializes the value for thestatusesUrlattribute.- Parameters:
statusesUrl- The value for statusesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
subscribersUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder subscribersUrl(@Nullable URI subscribersUrl)
Initializes the value for thesubscribersUrlattribute.- Parameters:
subscribersUrl- The value for subscribersUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
subscriptionUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder subscriptionUrl(@Nullable URI subscriptionUrl)
Initializes the value for thesubscriptionUrlattribute.- Parameters:
subscriptionUrl- The value for subscriptionUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
svnUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder svnUrl(@Nullable URI svnUrl)
Initializes the value for thesvnUrlattribute.- Parameters:
svnUrl- The value for svnUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
tagsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder tagsUrl(@Nullable URI tagsUrl)
Initializes the value for thetagsUrlattribute.- Parameters:
tagsUrl- The value for tagsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
treesUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder treesUrl(@Nullable String treesUrl)
Initializes the value for thetreesUrlattribute.- Parameters:
treesUrl- The value for treesUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
teamsUrl
@CanIgnoreReturnValue public final ImmutableRepository.Builder teamsUrl(@Nullable String teamsUrl)
Initializes the value for theteamsUrlattribute.- Parameters:
teamsUrl- The value for teamsUrl (can benull)- Returns:
thisbuilder for use in a chained invocation
-
watchers
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder watchers(int watchers)
Deprecated.Initializes the optional valuewatchersto watchers.- Parameters:
watchers- The value for watchers- Returns:
thisbuilder for chained invocation
-
watchers
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder watchers(Optional<Integer> watchers)
Deprecated.Initializes the optional valuewatchersto watchers.- Parameters:
watchers- The value for watchers- Returns:
thisbuilder for use in a chained invocation
-
stargazers
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder stargazers(int stargazers)
Deprecated.Initializes the optional valuestargazersto stargazers.- Parameters:
stargazers- The value for stargazers- Returns:
thisbuilder for chained invocation
-
stargazers
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder stargazers(Optional<Integer> stargazers)
Deprecated.Initializes the optional valuestargazersto stargazers.- Parameters:
stargazers- The value for stargazers- Returns:
thisbuilder for use in a chained invocation
-
masterBranch
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder masterBranch(String masterBranch)
Deprecated.Initializes the optional valuemasterBranchto masterBranch.- Parameters:
masterBranch- The value for masterBranch- Returns:
thisbuilder for chained invocation
-
masterBranch
@CanIgnoreReturnValue @Deprecated public final ImmutableRepository.Builder masterBranch(Optional<String> masterBranch)
Deprecated.Initializes the optional valuemasterBranchto masterBranch.- Parameters:
masterBranch- The value for masterBranch- Returns:
thisbuilder for use in a chained invocation
-
owner
@CanIgnoreReturnValue public final ImmutableRepository.Builder owner(@Nullable User owner)
Initializes the value for theownerattribute.- Parameters:
owner- The value for owner (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableRepository build()
Builds a newImmutableRepository.- Returns:
- An immutable instance of Repository
- Throws:
IllegalStateException- if any required attributes are missing
-
-