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