Package com.spotify.github.v3.repos
Class ImmutableRepository
- java.lang.Object
-
- com.spotify.github.v3.repos.ImmutableRepository
-
- All Implemented Interfaces:
UpdateTracking,Repository,RepositoryBase
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRepository extends Object implements Repository
Immutable implementation ofRepository.Use the builder to create immutable instances:
ImmutableRepository.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRepository.BuilderBuilds instances of typeImmutableRepository.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BooleanallowAutoMerge()Allow auto mergesBooleanallowMergeCommit()Allow merge commitsBooleanallowRebaseMerge()Allow rebase mergesBooleanallowSquashMerge()Allow squash mergesStringarchiveUrl()Archive URL templateStringassigneesUrl()Assignees URL templateStringblobsUrl()Blobs URL templateStringbranchesUrl()Branches URL templatestatic ImmutableRepository.Builderbuilder()Creates a builder forImmutableRepository.URIcloneUrl()Clone URLStringcollaboratorsUrl()Collaborators URL templateStringcommentsUrl()Comments URL templateStringcommitsUrl()Commits URL templateStringcompareUrl()Compare URL templateStringcontentsUrl()Contents URL templateURIcontributorsUrl()Contributors URLstatic ImmutableRepositorycopyOf(Repository instance)Creates an immutable copy of aRepositoryvalue.GitHubInstantcreatedAt()Created dateStringdefaultBranch()Default branchOptional<URI>deploymentsUrl()Deployments URLOptional<String>description()DescriptionURIdownloadsUrl()Downloads URLbooleanequals(Object another)This instance is equal to all instances ofImmutableRepositorythat have equal attribute values.URIeventsUrl()Events URLBooleanfork()Is it a forkIntegerforks()Deprecated.IntegerforksCount()Forks countURIforksUrl()Forks URLStringfullName()Full name: org/repoStringgitCommitsUrl()Git commits URL templateStringgitRefsUrl()Git references URL templateStringgitTagsUrl()Git tags URL templateURIgitUrl()Git URLBooleanhasDownloads()Does it have downloadsinthashCode()Computes a hash code from attributes:createdAt,updatedAt,id,name,fullName,description,isPrivate,isArchived,isPublic,fork,url,htmlUrl,allowAutoMerge,allowSquashMerge,allowMergeCommit,allowRebaseMerge,archiveUrl,assigneesUrl,blobsUrl,branchesUrl,cloneUrl,collaboratorsUrl,commentsUrl,commitsUrl,compareUrl,contentsUrl,contributorsUrl,deploymentsUrl,downloadsUrl,eventsUrl,forksUrl,gitCommitsUrl,gitRefsUrl,gitTagsUrl,gitUrl,hooksUrl,homepage,language,forksCount,stargazersCount,watchersCount,size,defaultBranch,openIssuesCount,hasIssues,hasWiki,hasPages,hasDownloads,permissions,forks,pushedAt,issuesUrl,issueCommentUrl,issueEventsUrl,keysUrl,labelsUrl,languagesUrl,mergesUrl,milestonesUrl,mirrorUrl,notificationsUrl,openIssues,pullsUrl,releasesUrl,sshUrl,stargazersUrl,statusesUrl,subscribersUrl,subscriptionUrl,svnUrl,tagsUrl,treesUrl,teamsUrl,watchers,stargazers,masterBranch,owner.BooleanhasIssues()Does it have issuesBooleanhasPages()Does it have pagesBooleanhasWiki()Does it have wikiOptional<String>homepage()Homepage URLURIhooksUrl()Hooks URLURIhtmlUrl()HTML URLIntegerid()IDBooleanisArchived()Is it archivedBooleanisPrivate()Is it privateOptional<Boolean>isPublic()Is it publicStringissueCommentUrl()Issue Comment URL templateStringissueEventsUrl()Issue event URL templateStringissuesUrl()Issues URL templateStringkeysUrl()Keys URL templateStringlabelsUrl()Labels URL templateOptional<String>language()LanguageURIlanguagesUrl()Languages URLOptional<String>masterBranch()Deprecated.URImergesUrl()Merges URLStringmilestonesUrl()Milestones URL templateOptional<URI>mirrorUrl()Mirror url, if this repo is a mirrorStringname()NameStringnotificationsUrl()Notifications URL templateOptional<Integer>openIssues()Deprecated.IntegeropenIssuesCount()Open issues countUserowner()OwnerOptional<Permissions>permissions()PermissionsStringpullsUrl()Pulls URL templateGitHubInstantpushedAt()Pushed dateStringreleasesUrl()Releases URL templateIntegersize()Size in kBStringsshUrl()SSH URL.Optional<Integer>stargazers()Deprecated.IntegerstargazersCount()Stargazers countURIstargazersUrl()Stargazers URLStringstatusesUrl()Statuses URL templateURIsubscribersUrl()Subscribers URLURIsubscriptionUrl()Subscription URLURIsvnUrl()Subversion URLURItagsUrl()Tags URLStringteamsUrl()Teams URLStringtoString()Prints the immutable valueRepositorywith attribute values.StringtreesUrl()Trees URL templateGitHubInstantupdatedAt()Updated dateURIurl()API URLOptional<Integer>watchers()Deprecated.IntegerwatchersCount()Watchers countImmutableRepositorywithAllowAutoMerge(Boolean value)Copy the current immutable object by setting a value for theallowAutoMergeattribute.ImmutableRepositorywithAllowMergeCommit(Boolean value)Copy the current immutable object by setting a value for theallowMergeCommitattribute.ImmutableRepositorywithAllowRebaseMerge(Boolean value)Copy the current immutable object by setting a value for theallowRebaseMergeattribute.ImmutableRepositorywithAllowSquashMerge(Boolean value)Copy the current immutable object by setting a value for theallowSquashMergeattribute.ImmutableRepositorywithArchiveUrl(String value)Copy the current immutable object by setting a value for thearchiveUrlattribute.ImmutableRepositorywithAssigneesUrl(String value)Copy the current immutable object by setting a value for theassigneesUrlattribute.ImmutableRepositorywithBlobsUrl(String value)Copy the current immutable object by setting a value for theblobsUrlattribute.ImmutableRepositorywithBranchesUrl(String value)Copy the current immutable object by setting a value for thebranchesUrlattribute.ImmutableRepositorywithCloneUrl(URI value)Copy the current immutable object by setting a value for thecloneUrlattribute.ImmutableRepositorywithCollaboratorsUrl(String value)Copy the current immutable object by setting a value for thecollaboratorsUrlattribute.ImmutableRepositorywithCommentsUrl(String value)Copy the current immutable object by setting a value for thecommentsUrlattribute.ImmutableRepositorywithCommitsUrl(String value)Copy the current immutable object by setting a value for thecommitsUrlattribute.ImmutableRepositorywithCompareUrl(String value)Copy the current immutable object by setting a value for thecompareUrlattribute.ImmutableRepositorywithContentsUrl(String value)Copy the current immutable object by setting a value for thecontentsUrlattribute.ImmutableRepositorywithContributorsUrl(URI value)Copy the current immutable object by setting a value for thecontributorsUrlattribute.ImmutableRepositorywithCreatedAt(GitHubInstant value)Copy the current immutable object by setting a value for thecreatedAtattribute.ImmutableRepositorywithDefaultBranch(String value)Copy the current immutable object by setting a value for thedefaultBranchattribute.ImmutableRepositorywithDeploymentsUrl(URI value)Copy the current immutable object by setting a present value for the optionaldeploymentsUrlattribute.ImmutableRepositorywithDeploymentsUrl(Optional<? extends URI> optional)Copy the current immutable object by setting an optional value for thedeploymentsUrlattribute.ImmutableRepositorywithDescription(String value)Copy the current immutable object by setting a present value for the optionaldescriptionattribute.ImmutableRepositorywithDescription(Optional<String> optional)Copy the current immutable object by setting an optional value for thedescriptionattribute.ImmutableRepositorywithDownloadsUrl(URI value)Copy the current immutable object by setting a value for thedownloadsUrlattribute.ImmutableRepositorywithEventsUrl(URI value)Copy the current immutable object by setting a value for theeventsUrlattribute.ImmutableRepositorywithFork(Boolean value)Copy the current immutable object by setting a value for theforkattribute.ImmutableRepositorywithForks(Integer value)Deprecated.ImmutableRepositorywithForksCount(Integer value)Copy the current immutable object by setting a value for theforksCountattribute.ImmutableRepositorywithForksUrl(URI value)Copy the current immutable object by setting a value for theforksUrlattribute.ImmutableRepositorywithFullName(String value)Copy the current immutable object by setting a value for thefullNameattribute.ImmutableRepositorywithGitCommitsUrl(String value)Copy the current immutable object by setting a value for thegitCommitsUrlattribute.ImmutableRepositorywithGitRefsUrl(String value)Copy the current immutable object by setting a value for thegitRefsUrlattribute.ImmutableRepositorywithGitTagsUrl(String value)Copy the current immutable object by setting a value for thegitTagsUrlattribute.ImmutableRepositorywithGitUrl(URI value)Copy the current immutable object by setting a value for thegitUrlattribute.ImmutableRepositorywithHasDownloads(Boolean value)Copy the current immutable object by setting a value for thehasDownloadsattribute.ImmutableRepositorywithHasIssues(Boolean value)Copy the current immutable object by setting a value for thehasIssuesattribute.ImmutableRepositorywithHasPages(Boolean value)Copy the current immutable object by setting a value for thehasPagesattribute.ImmutableRepositorywithHasWiki(Boolean value)Copy the current immutable object by setting a value for thehasWikiattribute.ImmutableRepositorywithHomepage(String value)Copy the current immutable object by setting a present value for the optionalhomepageattribute.ImmutableRepositorywithHomepage(Optional<String> optional)Copy the current immutable object by setting an optional value for thehomepageattribute.ImmutableRepositorywithHooksUrl(URI value)Copy the current immutable object by setting a value for thehooksUrlattribute.ImmutableRepositorywithHtmlUrl(URI value)Copy the current immutable object by setting a value for thehtmlUrlattribute.ImmutableRepositorywithId(Integer value)Copy the current immutable object by setting a value for theidattribute.ImmutableRepositorywithIsArchived(Boolean value)Copy the current immutable object by setting a value for theisArchivedattribute.ImmutableRepositorywithIsPrivate(Boolean value)Copy the current immutable object by setting a value for theisPrivateattribute.ImmutableRepositorywithIsPublic(boolean value)Copy the current immutable object by setting a present value for the optionalisPublicattribute.ImmutableRepositorywithIsPublic(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theisPublicattribute.ImmutableRepositorywithIssueCommentUrl(String value)Copy the current immutable object by setting a value for theissueCommentUrlattribute.ImmutableRepositorywithIssueEventsUrl(String value)Copy the current immutable object by setting a value for theissueEventsUrlattribute.ImmutableRepositorywithIssuesUrl(String value)Copy the current immutable object by setting a value for theissuesUrlattribute.ImmutableRepositorywithKeysUrl(String value)Copy the current immutable object by setting a value for thekeysUrlattribute.ImmutableRepositorywithLabelsUrl(String value)Copy the current immutable object by setting a value for thelabelsUrlattribute.ImmutableRepositorywithLanguage(String value)Copy the current immutable object by setting a present value for the optionallanguageattribute.ImmutableRepositorywithLanguage(Optional<String> optional)Copy the current immutable object by setting an optional value for thelanguageattribute.ImmutableRepositorywithLanguagesUrl(URI value)Copy the current immutable object by setting a value for thelanguagesUrlattribute.ImmutableRepositorywithMasterBranch(String value)Deprecated.ImmutableRepositorywithMasterBranch(Optional<String> optional)Deprecated.ImmutableRepositorywithMergesUrl(URI value)Copy the current immutable object by setting a value for themergesUrlattribute.ImmutableRepositorywithMilestonesUrl(String value)Copy the current immutable object by setting a value for themilestonesUrlattribute.ImmutableRepositorywithMirrorUrl(URI value)Copy the current immutable object by setting a present value for the optionalmirrorUrlattribute.ImmutableRepositorywithMirrorUrl(Optional<? extends URI> optional)Copy the current immutable object by setting an optional value for themirrorUrlattribute.ImmutableRepositorywithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableRepositorywithNotificationsUrl(String value)Copy the current immutable object by setting a value for thenotificationsUrlattribute.ImmutableRepositorywithOpenIssues(int value)Deprecated.ImmutableRepositorywithOpenIssues(Optional<Integer> optional)Deprecated.ImmutableRepositorywithOpenIssuesCount(Integer value)Copy the current immutable object by setting a value for theopenIssuesCountattribute.ImmutableRepositorywithOwner(User value)Copy the current immutable object by setting a value for theownerattribute.ImmutableRepositorywithPermissions(Permissions value)Copy the current immutable object by setting a present value for the optionalpermissionsattribute.ImmutableRepositorywithPermissions(Optional<? extends Permissions> optional)Copy the current immutable object by setting an optional value for thepermissionsattribute.ImmutableRepositorywithPullsUrl(String value)Copy the current immutable object by setting a value for thepullsUrlattribute.ImmutableRepositorywithPushedAt(GitHubInstant value)Copy the current immutable object by setting a value for thepushedAtattribute.ImmutableRepositorywithReleasesUrl(String value)Copy the current immutable object by setting a value for thereleasesUrlattribute.ImmutableRepositorywithSize(Integer value)Copy the current immutable object by setting a value for thesizeattribute.ImmutableRepositorywithSshUrl(String value)Copy the current immutable object by setting a value for thesshUrlattribute.ImmutableRepositorywithStargazers(int value)Deprecated.ImmutableRepositorywithStargazers(Optional<Integer> optional)Deprecated.ImmutableRepositorywithStargazersCount(Integer value)Copy the current immutable object by setting a value for thestargazersCountattribute.ImmutableRepositorywithStargazersUrl(URI value)Copy the current immutable object by setting a value for thestargazersUrlattribute.ImmutableRepositorywithStatusesUrl(String value)Copy the current immutable object by setting a value for thestatusesUrlattribute.ImmutableRepositorywithSubscribersUrl(URI value)Copy the current immutable object by setting a value for thesubscribersUrlattribute.ImmutableRepositorywithSubscriptionUrl(URI value)Copy the current immutable object by setting a value for thesubscriptionUrlattribute.ImmutableRepositorywithSvnUrl(URI value)Copy the current immutable object by setting a value for thesvnUrlattribute.ImmutableRepositorywithTagsUrl(URI value)Copy the current immutable object by setting a value for thetagsUrlattribute.ImmutableRepositorywithTeamsUrl(String value)Copy the current immutable object by setting a value for theteamsUrlattribute.ImmutableRepositorywithTreesUrl(String value)Copy the current immutable object by setting a value for thetreesUrlattribute.ImmutableRepositorywithUpdatedAt(GitHubInstant value)Copy the current immutable object by setting a value for theupdatedAtattribute.ImmutableRepositorywithUrl(URI value)Copy the current immutable object by setting a value for theurlattribute.ImmutableRepositorywithWatchers(int value)Deprecated.ImmutableRepositorywithWatchers(Optional<Integer> optional)Deprecated.ImmutableRepositorywithWatchersCount(Integer value)Copy the current immutable object by setting a value for thewatchersCountattribute.
-
-
-
Method Detail
-
createdAt
@Nullable public GitHubInstant createdAt()
Created date- Specified by:
createdAtin interfaceUpdateTracking- Returns:
- The date when the issue was created
-
updatedAt
@Nullable public GitHubInstant updatedAt()
Updated date- Specified by:
updatedAtin interfaceUpdateTracking- Returns:
- The date when the issue was updated
-
id
@Nullable public Integer id()
ID- Specified by:
idin interfaceRepositoryBase
-
name
@Nullable public String name()
Name- Specified by:
namein interfaceRepositoryBase
-
fullName
@Nullable public String fullName()
Full name: org/repo- Specified by:
fullNamein interfaceRepositoryBase
-
description
public Optional<String> description()
Description- Specified by:
descriptionin interfaceRepositoryBase
-
isPrivate
@Nullable public Boolean isPrivate()
Is it private- Specified by:
isPrivatein interfaceRepositoryBase
-
isArchived
@Nullable public Boolean isArchived()
Is it archived- Specified by:
isArchivedin interfaceRepositoryBase
-
isPublic
public Optional<Boolean> isPublic()
Is it public- Specified by:
isPublicin interfaceRepositoryBase
-
fork
@Nullable public Boolean fork()
Is it a fork- Specified by:
forkin interfaceRepositoryBase
-
url
@Nullable public URI url()
API URL- Specified by:
urlin interfaceRepositoryBase
-
htmlUrl
@Nullable public URI htmlUrl()
HTML URL- Specified by:
htmlUrlin interfaceRepositoryBase
-
allowAutoMerge
@Nullable public Boolean allowAutoMerge()
Allow auto merges- Specified by:
allowAutoMergein interfaceRepositoryBase
-
allowSquashMerge
@Nullable public Boolean allowSquashMerge()
Allow squash merges- Specified by:
allowSquashMergein interfaceRepositoryBase
-
allowMergeCommit
@Nullable public Boolean allowMergeCommit()
Allow merge commits- Specified by:
allowMergeCommitin interfaceRepositoryBase
-
allowRebaseMerge
@Nullable public Boolean allowRebaseMerge()
Allow rebase merges- Specified by:
allowRebaseMergein interfaceRepositoryBase
-
archiveUrl
@Nullable public String archiveUrl()
Archive URL template- Specified by:
archiveUrlin interfaceRepositoryBase
-
assigneesUrl
@Nullable public String assigneesUrl()
Assignees URL template- Specified by:
assigneesUrlin interfaceRepositoryBase
-
blobsUrl
@Nullable public String blobsUrl()
Blobs URL template- Specified by:
blobsUrlin interfaceRepositoryBase
-
branchesUrl
@Nullable public String branchesUrl()
Branches URL template- Specified by:
branchesUrlin interfaceRepositoryBase
-
cloneUrl
@Nullable public URI cloneUrl()
Clone URL- Specified by:
cloneUrlin interfaceRepositoryBase
-
collaboratorsUrl
@Nullable public String collaboratorsUrl()
Collaborators URL template- Specified by:
collaboratorsUrlin interfaceRepositoryBase
-
commentsUrl
@Nullable public String commentsUrl()
Comments URL template- Specified by:
commentsUrlin interfaceRepositoryBase
-
commitsUrl
@Nullable public String commitsUrl()
Commits URL template- Specified by:
commitsUrlin interfaceRepositoryBase
-
compareUrl
@Nullable public String compareUrl()
Compare URL template- Specified by:
compareUrlin interfaceRepositoryBase
-
contentsUrl
@Nullable public String contentsUrl()
Contents URL template- Specified by:
contentsUrlin interfaceRepositoryBase
-
contributorsUrl
@Nullable public URI contributorsUrl()
Contributors URL- Specified by:
contributorsUrlin interfaceRepositoryBase
-
deploymentsUrl
public Optional<URI> deploymentsUrl()
Deployments URL- Specified by:
deploymentsUrlin interfaceRepositoryBase
-
downloadsUrl
@Nullable public URI downloadsUrl()
Downloads URL- Specified by:
downloadsUrlin interfaceRepositoryBase
-
eventsUrl
@Nullable public URI eventsUrl()
Events URL- Specified by:
eventsUrlin interfaceRepositoryBase
-
forksUrl
@Nullable public URI forksUrl()
Forks URL- Specified by:
forksUrlin interfaceRepositoryBase
-
gitCommitsUrl
@Nullable public String gitCommitsUrl()
Git commits URL template- Specified by:
gitCommitsUrlin interfaceRepositoryBase
-
gitRefsUrl
@Nullable public String gitRefsUrl()
Git references URL template- Specified by:
gitRefsUrlin interfaceRepositoryBase
-
gitTagsUrl
@Nullable public String gitTagsUrl()
Git tags URL template- Specified by:
gitTagsUrlin interfaceRepositoryBase
-
gitUrl
@Nullable public URI gitUrl()
Git URL- Specified by:
gitUrlin interfaceRepositoryBase
-
hooksUrl
@Nullable public URI hooksUrl()
Hooks URL- Specified by:
hooksUrlin interfaceRepositoryBase
-
homepage
public Optional<String> homepage()
Homepage URL- Specified by:
homepagein interfaceRepositoryBase
-
language
public Optional<String> language()
Language- Specified by:
languagein interfaceRepositoryBase
-
forksCount
@Nullable public Integer forksCount()
Forks count- Specified by:
forksCountin interfaceRepositoryBase
-
stargazersCount
@Nullable public Integer stargazersCount()
Stargazers count- Specified by:
stargazersCountin interfaceRepositoryBase
-
watchersCount
@Nullable public Integer watchersCount()
Watchers count- Specified by:
watchersCountin interfaceRepositoryBase
-
size
@Nullable public Integer size()
Size in kB- Specified by:
sizein interfaceRepositoryBase
-
defaultBranch
@Nullable public String defaultBranch()
Default branch- Specified by:
defaultBranchin interfaceRepositoryBase
-
openIssuesCount
@Nullable public Integer openIssuesCount()
Open issues count- Specified by:
openIssuesCountin interfaceRepositoryBase
-
hasIssues
@Nullable public Boolean hasIssues()
Does it have issues- Specified by:
hasIssuesin interfaceRepositoryBase
-
hasWiki
@Nullable public Boolean hasWiki()
Does it have wiki- Specified by:
hasWikiin interfaceRepositoryBase
-
hasPages
@Nullable public Boolean hasPages()
Does it have pages- Specified by:
hasPagesin interfaceRepositoryBase
-
hasDownloads
@Nullable public Boolean hasDownloads()
Does it have downloads- Specified by:
hasDownloadsin interfaceRepositoryBase
-
permissions
public Optional<Permissions> permissions()
Permissions- Specified by:
permissionsin interfaceRepositoryBase
-
forks
@Deprecated @Nullable public Integer forks()
Deprecated.Deprecated forks,forksCount()- Specified by:
forksin interfaceRepositoryBase
-
pushedAt
@Nullable public GitHubInstant pushedAt()
Pushed date- Specified by:
pushedAtin interfaceRepositoryBase
-
issuesUrl
@Nullable public String issuesUrl()
Issues URL template- Specified by:
issuesUrlin interfaceRepositoryBase
-
issueCommentUrl
@Nullable public String issueCommentUrl()
Issue Comment URL template- Specified by:
issueCommentUrlin interfaceRepositoryBase
-
issueEventsUrl
@Nullable public String issueEventsUrl()
Issue event URL template- Specified by:
issueEventsUrlin interfaceRepositoryBase
-
keysUrl
@Nullable public String keysUrl()
Keys URL template- Specified by:
keysUrlin interfaceRepositoryBase
-
labelsUrl
@Nullable public String labelsUrl()
Labels URL template- Specified by:
labelsUrlin interfaceRepositoryBase
-
languagesUrl
@Nullable public URI languagesUrl()
Languages URL- Specified by:
languagesUrlin interfaceRepositoryBase
-
mergesUrl
@Nullable public URI mergesUrl()
Merges URL- Specified by:
mergesUrlin interfaceRepositoryBase
-
milestonesUrl
@Nullable public String milestonesUrl()
Milestones URL template- Specified by:
milestonesUrlin interfaceRepositoryBase
-
mirrorUrl
public Optional<URI> mirrorUrl()
Mirror url, if this repo is a mirror- Specified by:
mirrorUrlin interfaceRepositoryBase
-
notificationsUrl
@Nullable public String notificationsUrl()
Notifications URL template- Specified by:
notificationsUrlin interfaceRepositoryBase
-
openIssues
@Deprecated public Optional<Integer> openIssues()
Deprecated.Deprecated open issues,openIssuesCount()- Specified by:
openIssuesin interfaceRepositoryBase
-
pullsUrl
@Nullable public String pullsUrl()
Pulls URL template- Specified by:
pullsUrlin interfaceRepositoryBase
-
releasesUrl
@Nullable public String releasesUrl()
Releases URL template- Specified by:
releasesUrlin interfaceRepositoryBase
-
sshUrl
@Nullable public String sshUrl()
SSH URL.- Specified by:
sshUrlin interfaceRepositoryBase
-
stargazersUrl
@Nullable public URI stargazersUrl()
Stargazers URL- Specified by:
stargazersUrlin interfaceRepositoryBase
-
statusesUrl
@Nullable public String statusesUrl()
Statuses URL template- Specified by:
statusesUrlin interfaceRepositoryBase
-
subscribersUrl
@Nullable public URI subscribersUrl()
Subscribers URL- Specified by:
subscribersUrlin interfaceRepositoryBase
-
subscriptionUrl
@Nullable public URI subscriptionUrl()
Subscription URL- Specified by:
subscriptionUrlin interfaceRepositoryBase
-
svnUrl
@Nullable public URI svnUrl()
Subversion URL- Specified by:
svnUrlin interfaceRepositoryBase
-
tagsUrl
@Nullable public URI tagsUrl()
Tags URL- Specified by:
tagsUrlin interfaceRepositoryBase
-
treesUrl
@Nullable public String treesUrl()
Trees URL template- Specified by:
treesUrlin interfaceRepositoryBase
-
teamsUrl
@Nullable public String teamsUrl()
Teams URL- Specified by:
teamsUrlin interfaceRepositoryBase
-
watchers
@Deprecated public Optional<Integer> watchers()
Deprecated.Deprecated watchers,watchersCount()- Specified by:
watchersin interfaceRepositoryBase
-
stargazers
@Deprecated public Optional<Integer> stargazers()
Deprecated.Deprecated stargazers,stargazersCount()- Specified by:
stargazersin interfaceRepositoryBase
-
masterBranch
@Deprecated public Optional<String> masterBranch()
Deprecated.Deprecated masterBranch,defaultBranch()- Specified by:
masterBranchin interfaceRepositoryBase
-
owner
@Nullable public User owner()
Owner- Specified by:
ownerin interfaceRepository
-
withCreatedAt
public final ImmutableRepository withCreatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createdAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withUpdatedAt
public final ImmutableRepository withUpdatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updatedAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withId
public final ImmutableRepository withId(@Nullable Integer value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id (can benull)- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableRepository withName(@Nullable String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withFullName
public final ImmutableRepository withFullName(@Nullable String value)
Copy the current immutable object by setting a value for thefullNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fullName (can benull)- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableRepository withDescription(String value)
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
public final ImmutableRepository withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for description- Returns:
- A modified copy of
thisobject
-
withIsPrivate
public final ImmutableRepository withIsPrivate(@Nullable Boolean value)
Copy the current immutable object by setting a value for theisPrivateattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isPrivate (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsArchived
public final ImmutableRepository withIsArchived(@Nullable Boolean value)
Copy the current immutable object by setting a value for theisArchivedattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isArchived (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsPublic
public final ImmutableRepository withIsPublic(boolean value)
Copy the current immutable object by setting a present value for the optionalisPublicattribute.- Parameters:
value- The value for isPublic- Returns:
- A modified copy of
thisobject
-
withIsPublic
public final ImmutableRepository withIsPublic(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisPublicattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for isPublic- Returns:
- A modified copy of
thisobject
-
withFork
public final ImmutableRepository withFork(@Nullable Boolean value)
Copy the current immutable object by setting a value for theforkattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fork (can benull)- Returns:
- A modified copy of the
thisobject
-
withUrl
public final ImmutableRepository withUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theurlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url (can benull)- Returns:
- A modified copy of the
thisobject
-
withHtmlUrl
public final ImmutableRepository withHtmlUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thehtmlUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for htmlUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withAllowAutoMerge
public final ImmutableRepository withAllowAutoMerge(@Nullable Boolean value)
Copy the current immutable object by setting a value for theallowAutoMergeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for allowAutoMerge (can benull)- Returns:
- A modified copy of the
thisobject
-
withAllowSquashMerge
public final ImmutableRepository withAllowSquashMerge(@Nullable Boolean value)
Copy the current immutable object by setting a value for theallowSquashMergeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for allowSquashMerge (can benull)- Returns:
- A modified copy of the
thisobject
-
withAllowMergeCommit
public final ImmutableRepository withAllowMergeCommit(@Nullable Boolean value)
Copy the current immutable object by setting a value for theallowMergeCommitattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for allowMergeCommit (can benull)- Returns:
- A modified copy of the
thisobject
-
withAllowRebaseMerge
public final ImmutableRepository withAllowRebaseMerge(@Nullable Boolean value)
Copy the current immutable object by setting a value for theallowRebaseMergeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for allowRebaseMerge (can benull)- Returns:
- A modified copy of the
thisobject
-
withArchiveUrl
public final ImmutableRepository withArchiveUrl(@Nullable String value)
Copy the current immutable object by setting a value for thearchiveUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for archiveUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withAssigneesUrl
public final ImmutableRepository withAssigneesUrl(@Nullable String value)
Copy the current immutable object by setting a value for theassigneesUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for assigneesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withBlobsUrl
public final ImmutableRepository withBlobsUrl(@Nullable String value)
Copy the current immutable object by setting a value for theblobsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for blobsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withBranchesUrl
public final ImmutableRepository withBranchesUrl(@Nullable String value)
Copy the current immutable object by setting a value for thebranchesUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for branchesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withCloneUrl
public final ImmutableRepository withCloneUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thecloneUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cloneUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withCollaboratorsUrl
public final ImmutableRepository withCollaboratorsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecollaboratorsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for collaboratorsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withCommentsUrl
public final ImmutableRepository withCommentsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecommentsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commentsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withCommitsUrl
public final ImmutableRepository withCommitsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecommitsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commitsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withCompareUrl
public final ImmutableRepository withCompareUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecompareUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for compareUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withContentsUrl
public final ImmutableRepository withContentsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecontentsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for contentsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withContributorsUrl
public final ImmutableRepository withContributorsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thecontributorsUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for contributorsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withDeploymentsUrl
public final ImmutableRepository withDeploymentsUrl(URI value)
Copy the current immutable object by setting a present value for the optionaldeploymentsUrlattribute.- Parameters:
value- The value for deploymentsUrl- Returns:
- A modified copy of
thisobject
-
withDeploymentsUrl
public final ImmutableRepository withDeploymentsUrl(Optional<? extends URI> optional)
Copy the current immutable object by setting an optional value for thedeploymentsUrlattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for deploymentsUrl- Returns:
- A modified copy of
thisobject
-
withDownloadsUrl
public final ImmutableRepository withDownloadsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thedownloadsUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for downloadsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withEventsUrl
public final ImmutableRepository withEventsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theeventsUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for eventsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withForksUrl
public final ImmutableRepository withForksUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theforksUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for forksUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withGitCommitsUrl
public final ImmutableRepository withGitCommitsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thegitCommitsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for gitCommitsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withGitRefsUrl
public final ImmutableRepository withGitRefsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thegitRefsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for gitRefsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withGitTagsUrl
public final ImmutableRepository withGitTagsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thegitTagsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for gitTagsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withGitUrl
public final ImmutableRepository withGitUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thegitUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for gitUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withHooksUrl
public final ImmutableRepository withHooksUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thehooksUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hooksUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withHomepage
public final ImmutableRepository withHomepage(String value)
Copy the current immutable object by setting a present value for the optionalhomepageattribute.- Parameters:
value- The value for homepage- Returns:
- A modified copy of
thisobject
-
withHomepage
public final ImmutableRepository withHomepage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thehomepageattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for homepage- Returns:
- A modified copy of
thisobject
-
withLanguage
public final ImmutableRepository withLanguage(String value)
Copy the current immutable object by setting a present value for the optionallanguageattribute.- Parameters:
value- The value for language- Returns:
- A modified copy of
thisobject
-
withLanguage
public final ImmutableRepository withLanguage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thelanguageattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for language- Returns:
- A modified copy of
thisobject
-
withForksCount
public final ImmutableRepository withForksCount(@Nullable Integer value)
Copy the current immutable object by setting a value for theforksCountattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for forksCount (can benull)- Returns:
- A modified copy of the
thisobject
-
withStargazersCount
public final ImmutableRepository withStargazersCount(@Nullable Integer value)
Copy the current immutable object by setting a value for thestargazersCountattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stargazersCount (can benull)- Returns:
- A modified copy of the
thisobject
-
withWatchersCount
public final ImmutableRepository withWatchersCount(@Nullable Integer value)
Copy the current immutable object by setting a value for thewatchersCountattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for watchersCount (can benull)- Returns:
- A modified copy of the
thisobject
-
withSize
public final ImmutableRepository withSize(@Nullable Integer value)
Copy the current immutable object by setting a value for thesizeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for size (can benull)- Returns:
- A modified copy of the
thisobject
-
withDefaultBranch
public final ImmutableRepository withDefaultBranch(@Nullable String value)
Copy the current immutable object by setting a value for thedefaultBranchattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for defaultBranch (can benull)- Returns:
- A modified copy of the
thisobject
-
withOpenIssuesCount
public final ImmutableRepository withOpenIssuesCount(@Nullable Integer value)
Copy the current immutable object by setting a value for theopenIssuesCountattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for openIssuesCount (can benull)- Returns:
- A modified copy of the
thisobject
-
withHasIssues
public final ImmutableRepository withHasIssues(@Nullable Boolean value)
Copy the current immutable object by setting a value for thehasIssuesattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hasIssues (can benull)- Returns:
- A modified copy of the
thisobject
-
withHasWiki
public final ImmutableRepository withHasWiki(@Nullable Boolean value)
Copy the current immutable object by setting a value for thehasWikiattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hasWiki (can benull)- Returns:
- A modified copy of the
thisobject
-
withHasPages
public final ImmutableRepository withHasPages(@Nullable Boolean value)
Copy the current immutable object by setting a value for thehasPagesattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hasPages (can benull)- Returns:
- A modified copy of the
thisobject
-
withHasDownloads
public final ImmutableRepository withHasDownloads(@Nullable Boolean value)
Copy the current immutable object by setting a value for thehasDownloadsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hasDownloads (can benull)- Returns:
- A modified copy of the
thisobject
-
withPermissions
public final ImmutableRepository withPermissions(Permissions value)
Copy the current immutable object by setting a present value for the optionalpermissionsattribute.- Parameters:
value- The value for permissions- Returns:
- A modified copy of
thisobject
-
withPermissions
public final ImmutableRepository withPermissions(Optional<? extends Permissions> optional)
Copy the current immutable object by setting an optional value for thepermissionsattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for permissions- Returns:
- A modified copy of
thisobject
-
withForks
@Deprecated public final ImmutableRepository withForks(@Nullable Integer value)
Deprecated.Copy the current immutable object by setting a value for theforksattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for forks (can benull)- Returns:
- A modified copy of the
thisobject
-
withPushedAt
public final ImmutableRepository withPushedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for thepushedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pushedAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withIssuesUrl
public final ImmutableRepository withIssuesUrl(@Nullable String value)
Copy the current immutable object by setting a value for theissuesUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for issuesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withIssueCommentUrl
public final ImmutableRepository withIssueCommentUrl(@Nullable String value)
Copy the current immutable object by setting a value for theissueCommentUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for issueCommentUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withIssueEventsUrl
public final ImmutableRepository withIssueEventsUrl(@Nullable String value)
Copy the current immutable object by setting a value for theissueEventsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for issueEventsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withKeysUrl
public final ImmutableRepository withKeysUrl(@Nullable String value)
Copy the current immutable object by setting a value for thekeysUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for keysUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withLabelsUrl
public final ImmutableRepository withLabelsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thelabelsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for labelsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withLanguagesUrl
public final ImmutableRepository withLanguagesUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thelanguagesUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for languagesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withMergesUrl
public final ImmutableRepository withMergesUrl(@Nullable URI value)
Copy the current immutable object by setting a value for themergesUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mergesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withMilestonesUrl
public final ImmutableRepository withMilestonesUrl(@Nullable String value)
Copy the current immutable object by setting a value for themilestonesUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for milestonesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withMirrorUrl
public final ImmutableRepository withMirrorUrl(URI value)
Copy the current immutable object by setting a present value for the optionalmirrorUrlattribute.- Parameters:
value- The value for mirrorUrl- Returns:
- A modified copy of
thisobject
-
withMirrorUrl
public final ImmutableRepository withMirrorUrl(Optional<? extends URI> optional)
Copy the current immutable object by setting an optional value for themirrorUrlattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for mirrorUrl- Returns:
- A modified copy of
thisobject
-
withNotificationsUrl
public final ImmutableRepository withNotificationsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thenotificationsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for notificationsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withOpenIssues
@Deprecated public final ImmutableRepository withOpenIssues(int value)
Deprecated.Copy the current immutable object by setting a present value for the optionalopenIssuesattribute.- Parameters:
value- The value for openIssues- Returns:
- A modified copy of
thisobject
-
withOpenIssues
@Deprecated public final ImmutableRepository withOpenIssues(Optional<Integer> optional)
Deprecated.Copy the current immutable object by setting an optional value for theopenIssuesattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for openIssues- Returns:
- A modified copy of
thisobject
-
withPullsUrl
public final ImmutableRepository withPullsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thepullsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pullsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withReleasesUrl
public final ImmutableRepository withReleasesUrl(@Nullable String value)
Copy the current immutable object by setting a value for thereleasesUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for releasesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withSshUrl
public final ImmutableRepository withSshUrl(@Nullable String value)
Copy the current immutable object by setting a value for thesshUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sshUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withStargazersUrl
public final ImmutableRepository withStargazersUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thestargazersUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stargazersUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withStatusesUrl
public final ImmutableRepository withStatusesUrl(@Nullable String value)
Copy the current immutable object by setting a value for thestatusesUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for statusesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withSubscribersUrl
public final ImmutableRepository withSubscribersUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thesubscribersUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for subscribersUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withSubscriptionUrl
public final ImmutableRepository withSubscriptionUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thesubscriptionUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for subscriptionUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withSvnUrl
public final ImmutableRepository withSvnUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thesvnUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for svnUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withTagsUrl
public final ImmutableRepository withTagsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thetagsUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tagsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withTreesUrl
public final ImmutableRepository withTreesUrl(@Nullable String value)
Copy the current immutable object by setting a value for thetreesUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for treesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withTeamsUrl
public final ImmutableRepository withTeamsUrl(@Nullable String value)
Copy the current immutable object by setting a value for theteamsUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for teamsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withWatchers
@Deprecated public final ImmutableRepository withWatchers(int value)
Deprecated.Copy the current immutable object by setting a present value for the optionalwatchersattribute.- Parameters:
value- The value for watchers- Returns:
- A modified copy of
thisobject
-
withWatchers
@Deprecated public final ImmutableRepository withWatchers(Optional<Integer> optional)
Deprecated.Copy the current immutable object by setting an optional value for thewatchersattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for watchers- Returns:
- A modified copy of
thisobject
-
withStargazers
@Deprecated public final ImmutableRepository withStargazers(int value)
Deprecated.Copy the current immutable object by setting a present value for the optionalstargazersattribute.- Parameters:
value- The value for stargazers- Returns:
- A modified copy of
thisobject
-
withStargazers
@Deprecated public final ImmutableRepository withStargazers(Optional<Integer> optional)
Deprecated.Copy the current immutable object by setting an optional value for thestargazersattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for stargazers- Returns:
- A modified copy of
thisobject
-
withMasterBranch
@Deprecated public final ImmutableRepository withMasterBranch(String value)
Deprecated.Copy the current immutable object by setting a present value for the optionalmasterBranchattribute.- Parameters:
value- The value for masterBranch- Returns:
- A modified copy of
thisobject
-
withMasterBranch
@Deprecated public final ImmutableRepository withMasterBranch(Optional<String> optional)
Deprecated.Copy the current immutable object by setting an optional value for themasterBranchattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for masterBranch- Returns:
- A modified copy of
thisobject
-
withOwner
public final ImmutableRepository withOwner(@Nullable User value)
Copy the current immutable object by setting a value for theownerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for owner (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableRepositorythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:createdAt,updatedAt,id,name,fullName,description,isPrivate,isArchived,isPublic,fork,url,htmlUrl,allowAutoMerge,allowSquashMerge,allowMergeCommit,allowRebaseMerge,archiveUrl,assigneesUrl,blobsUrl,branchesUrl,cloneUrl,collaboratorsUrl,commentsUrl,commitsUrl,compareUrl,contentsUrl,contributorsUrl,deploymentsUrl,downloadsUrl,eventsUrl,forksUrl,gitCommitsUrl,gitRefsUrl,gitTagsUrl,gitUrl,hooksUrl,homepage,language,forksCount,stargazersCount,watchersCount,size,defaultBranch,openIssuesCount,hasIssues,hasWiki,hasPages,hasDownloads,permissions,forks,pushedAt,issuesUrl,issueCommentUrl,issueEventsUrl,keysUrl,labelsUrl,languagesUrl,mergesUrl,milestonesUrl,mirrorUrl,notificationsUrl,openIssues,pullsUrl,releasesUrl,sshUrl,stargazersUrl,statusesUrl,subscribersUrl,subscriptionUrl,svnUrl,tagsUrl,treesUrl,teamsUrl,watchers,stargazers,masterBranch,owner.
-
toString
public String toString()
Prints the immutable valueRepositorywith attribute values.
-
copyOf
public static ImmutableRepository copyOf(Repository instance)
Creates an immutable copy of aRepositoryvalue. 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 Repository instance
-
builder
public static ImmutableRepository.Builder builder()
Creates a builder forImmutableRepository.ImmutableRepository.builder() .createdAt(com.spotify.github.GitHubInstant | null) // nullablecreatedAt.updatedAt(com.spotify.github.GitHubInstant | null) // nullableupdatedAt.id(Integer | null) // nullableid.name(String | null) // nullablename.fullName(String | null) // nullablefullName.description(String) // optionaldescription.isPrivate(Boolean | null) // nullableisPrivate.isArchived(Boolean | null) // nullableisArchived.isPublic(Boolean) // optionalisPublic.fork(Boolean | null) // nullablefork.url(java.net.URI | null) // nullableurl.htmlUrl(java.net.URI | null) // nullablehtmlUrl.allowAutoMerge(Boolean | null) // nullableallowAutoMerge.allowSquashMerge(Boolean | null) // nullableallowSquashMerge.allowMergeCommit(Boolean | null) // nullableallowMergeCommit.allowRebaseMerge(Boolean | null) // nullableallowRebaseMerge.archiveUrl(String | null) // nullablearchiveUrl.assigneesUrl(String | null) // nullableassigneesUrl.blobsUrl(String | null) // nullableblobsUrl.branchesUrl(String | null) // nullablebranchesUrl.cloneUrl(java.net.URI | null) // nullablecloneUrl.collaboratorsUrl(String | null) // nullablecollaboratorsUrl.commentsUrl(String | null) // nullablecommentsUrl.commitsUrl(String | null) // nullablecommitsUrl.compareUrl(String | null) // nullablecompareUrl.contentsUrl(String | null) // nullablecontentsUrl.contributorsUrl(java.net.URI | null) // nullablecontributorsUrl.deploymentsUrl(java.net.URI) // optionaldeploymentsUrl.downloadsUrl(java.net.URI | null) // nullabledownloadsUrl.eventsUrl(java.net.URI | null) // nullableeventsUrl.forksUrl(java.net.URI | null) // nullableforksUrl.gitCommitsUrl(String | null) // nullablegitCommitsUrl.gitRefsUrl(String | null) // nullablegitRefsUrl.gitTagsUrl(String | null) // nullablegitTagsUrl.gitUrl(java.net.URI | null) // nullablegitUrl.hooksUrl(java.net.URI | null) // nullablehooksUrl.homepage(String) // optionalhomepage.language(String) // optionallanguage.forksCount(Integer | null) // nullableforksCount.stargazersCount(Integer | null) // nullablestargazersCount.watchersCount(Integer | null) // nullablewatchersCount.size(Integer | null) // nullablesize.defaultBranch(String | null) // nullabledefaultBranch.openIssuesCount(Integer | null) // nullableopenIssuesCount.hasIssues(Boolean | null) // nullablehasIssues.hasWiki(Boolean | null) // nullablehasWiki.hasPages(Boolean | null) // nullablehasPages.hasDownloads(Boolean | null) // nullablehasDownloads.permissions(com.spotify.github.v3.repos.Permissions) // optionalpermissions.forks(Integer | null) // nullableforks.pushedAt(com.spotify.github.GitHubInstant | null) // nullablepushedAt.issuesUrl(String | null) // nullableissuesUrl.issueCommentUrl(String | null) // nullableissueCommentUrl.issueEventsUrl(String | null) // nullableissueEventsUrl.keysUrl(String | null) // nullablekeysUrl.labelsUrl(String | null) // nullablelabelsUrl.languagesUrl(java.net.URI | null) // nullablelanguagesUrl.mergesUrl(java.net.URI | null) // nullablemergesUrl.milestonesUrl(String | null) // nullablemilestonesUrl.mirrorUrl(java.net.URI) // optionalmirrorUrl.notificationsUrl(String | null) // nullablenotificationsUrl.openIssues(Integer) // optionalopenIssues.pullsUrl(String | null) // nullablepullsUrl.releasesUrl(String | null) // nullablereleasesUrl.sshUrl(String | null) // nullablesshUrl.stargazersUrl(java.net.URI | null) // nullablestargazersUrl.statusesUrl(String | null) // nullablestatusesUrl.subscribersUrl(java.net.URI | null) // nullablesubscribersUrl.subscriptionUrl(java.net.URI | null) // nullablesubscriptionUrl.svnUrl(java.net.URI | null) // nullablesvnUrl.tagsUrl(java.net.URI | null) // nullabletagsUrl.treesUrl(String | null) // nullabletreesUrl.teamsUrl(String | null) // nullableteamsUrl.watchers(Integer) // optionalwatchers.stargazers(Integer) // optionalstargazers.masterBranch(String) // optionalmasterBranch.owner(com.spotify.github.v3.User | null) // nullableowner.build();- Returns:
- A new ImmutableRepository builder
-
-