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 class
ImmutableRepository.Builder
Builds instances of typeImmutableRepository
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Boolean
allowMergeCommit()
Allow merge commitsBoolean
allowRebaseMerge()
Allow rebase mergesBoolean
allowSquashMerge()
Allow squash mergesString
archiveUrl()
Archive URL templateString
assigneesUrl()
Assignees URL templateString
blobsUrl()
Blobs URL templateString
branchesUrl()
Branches URL templatestatic ImmutableRepository.Builder
builder()
Creates a builder forImmutableRepository
.URI
cloneUrl()
Clone URLString
collaboratorsUrl()
Collaborators URL templateString
commentsUrl()
Comments URL templateString
commitsUrl()
Commits URL templateString
compareUrl()
Compare URL templateString
contentsUrl()
Contents URL templateURI
contributorsUrl()
Contributors URLstatic ImmutableRepository
copyOf(Repository instance)
Creates an immutable copy of aRepository
value.GitHubInstant
createdAt()
Created dateString
defaultBranch()
Default branchOptional<URI>
deploymentsUrl()
Deployments URLOptional<String>
description()
DescriptionURI
downloadsUrl()
Downloads URLboolean
equals(Object another)
This instance is equal to all instances ofImmutableRepository
that have equal attribute values.URI
eventsUrl()
Events URLBoolean
fork()
Is it a forkInteger
forks()
Deprecated.Integer
forksCount()
Forks countURI
forksUrl()
Forks URLString
fullName()
Full name: org/repoString
gitCommitsUrl()
Git commits URL templateString
gitRefsUrl()
Git references URL templateString
gitTagsUrl()
Git tags URL templateURI
gitUrl()
Git URLBoolean
hasDownloads()
Does it have downloadsint
hashCode()
Computes a hash code from attributes:createdAt
,updatedAt
,id
,name
,fullName
,description
,isPrivate
,isArchived
,isPublic
,fork
,url
,htmlUrl
,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
.Boolean
hasIssues()
Does it have issuesBoolean
hasPages()
Does it have pagesBoolean
hasWiki()
Does it have wikiOptional<String>
homepage()
Homepage URLURI
hooksUrl()
Hooks URLURI
htmlUrl()
HTML URLInteger
id()
IDBoolean
isArchived()
Is it archivedBoolean
isPrivate()
Is it privateOptional<Boolean>
isPublic()
Is it publicString
issueCommentUrl()
Issue Comment URL templateString
issueEventsUrl()
Issue event URL templateString
issuesUrl()
Issues URL templateString
keysUrl()
Keys URL templateString
labelsUrl()
Labels URL templateOptional<String>
language()
LanguageURI
languagesUrl()
Languages URLOptional<String>
masterBranch()
Deprecated.URI
mergesUrl()
Merges URLString
milestonesUrl()
Milestones URL templateOptional<URI>
mirrorUrl()
Mirror url, if this repo is a mirrorString
name()
NameString
notificationsUrl()
Notifications URL templateOptional<Integer>
openIssues()
Deprecated.Integer
openIssuesCount()
Open issues countUser
owner()
OwnerOptional<Permissions>
permissions()
PermissionsString
pullsUrl()
Pulls URL templateGitHubInstant
pushedAt()
Pushed dateString
releasesUrl()
Releases URL templateInteger
size()
Size in kBString
sshUrl()
SSH URL.Optional<Integer>
stargazers()
Deprecated.Integer
stargazersCount()
Stargazers countURI
stargazersUrl()
Stargazers URLString
statusesUrl()
Statuses URL templateURI
subscribersUrl()
Subscribers URLURI
subscriptionUrl()
Subscription URLURI
svnUrl()
Subversion URLURI
tagsUrl()
Tags URLString
teamsUrl()
Teams URLString
toString()
Prints the immutable valueRepository
with attribute values.String
treesUrl()
Trees URL templateGitHubInstant
updatedAt()
Updated dateURI
url()
API URLOptional<Integer>
watchers()
Deprecated.Integer
watchersCount()
Watchers countImmutableRepository
withAllowMergeCommit(Boolean value)
Copy the current immutable object by setting a value for theallowMergeCommit
attribute.ImmutableRepository
withAllowRebaseMerge(Boolean value)
Copy the current immutable object by setting a value for theallowRebaseMerge
attribute.ImmutableRepository
withAllowSquashMerge(Boolean value)
Copy the current immutable object by setting a value for theallowSquashMerge
attribute.ImmutableRepository
withArchiveUrl(String value)
Copy the current immutable object by setting a value for thearchiveUrl
attribute.ImmutableRepository
withAssigneesUrl(String value)
Copy the current immutable object by setting a value for theassigneesUrl
attribute.ImmutableRepository
withBlobsUrl(String value)
Copy the current immutable object by setting a value for theblobsUrl
attribute.ImmutableRepository
withBranchesUrl(String value)
Copy the current immutable object by setting a value for thebranchesUrl
attribute.ImmutableRepository
withCloneUrl(URI value)
Copy the current immutable object by setting a value for thecloneUrl
attribute.ImmutableRepository
withCollaboratorsUrl(String value)
Copy the current immutable object by setting a value for thecollaboratorsUrl
attribute.ImmutableRepository
withCommentsUrl(String value)
Copy the current immutable object by setting a value for thecommentsUrl
attribute.ImmutableRepository
withCommitsUrl(String value)
Copy the current immutable object by setting a value for thecommitsUrl
attribute.ImmutableRepository
withCompareUrl(String value)
Copy the current immutable object by setting a value for thecompareUrl
attribute.ImmutableRepository
withContentsUrl(String value)
Copy the current immutable object by setting a value for thecontentsUrl
attribute.ImmutableRepository
withContributorsUrl(URI value)
Copy the current immutable object by setting a value for thecontributorsUrl
attribute.ImmutableRepository
withCreatedAt(GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAt
attribute.ImmutableRepository
withDefaultBranch(String value)
Copy the current immutable object by setting a value for thedefaultBranch
attribute.ImmutableRepository
withDeploymentsUrl(URI value)
Copy the current immutable object by setting a present value for the optionaldeploymentsUrl
attribute.ImmutableRepository
withDeploymentsUrl(Optional<? extends URI> optional)
Copy the current immutable object by setting an optional value for thedeploymentsUrl
attribute.ImmutableRepository
withDescription(String value)
Copy the current immutable object by setting a present value for the optionaldescription
attribute.ImmutableRepository
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedescription
attribute.ImmutableRepository
withDownloadsUrl(URI value)
Copy the current immutable object by setting a value for thedownloadsUrl
attribute.ImmutableRepository
withEventsUrl(URI value)
Copy the current immutable object by setting a value for theeventsUrl
attribute.ImmutableRepository
withFork(Boolean value)
Copy the current immutable object by setting a value for thefork
attribute.ImmutableRepository
withForks(Integer value)
Deprecated.ImmutableRepository
withForksCount(Integer value)
Copy the current immutable object by setting a value for theforksCount
attribute.ImmutableRepository
withForksUrl(URI value)
Copy the current immutable object by setting a value for theforksUrl
attribute.ImmutableRepository
withFullName(String value)
Copy the current immutable object by setting a value for thefullName
attribute.ImmutableRepository
withGitCommitsUrl(String value)
Copy the current immutable object by setting a value for thegitCommitsUrl
attribute.ImmutableRepository
withGitRefsUrl(String value)
Copy the current immutable object by setting a value for thegitRefsUrl
attribute.ImmutableRepository
withGitTagsUrl(String value)
Copy the current immutable object by setting a value for thegitTagsUrl
attribute.ImmutableRepository
withGitUrl(URI value)
Copy the current immutable object by setting a value for thegitUrl
attribute.ImmutableRepository
withHasDownloads(Boolean value)
Copy the current immutable object by setting a value for thehasDownloads
attribute.ImmutableRepository
withHasIssues(Boolean value)
Copy the current immutable object by setting a value for thehasIssues
attribute.ImmutableRepository
withHasPages(Boolean value)
Copy the current immutable object by setting a value for thehasPages
attribute.ImmutableRepository
withHasWiki(Boolean value)
Copy the current immutable object by setting a value for thehasWiki
attribute.ImmutableRepository
withHomepage(String value)
Copy the current immutable object by setting a present value for the optionalhomepage
attribute.ImmutableRepository
withHomepage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thehomepage
attribute.ImmutableRepository
withHooksUrl(URI value)
Copy the current immutable object by setting a value for thehooksUrl
attribute.ImmutableRepository
withHtmlUrl(URI value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute.ImmutableRepository
withId(Integer value)
Copy the current immutable object by setting a value for theid
attribute.ImmutableRepository
withIsArchived(Boolean value)
Copy the current immutable object by setting a value for theisArchived
attribute.ImmutableRepository
withIsPrivate(Boolean value)
Copy the current immutable object by setting a value for theisPrivate
attribute.ImmutableRepository
withIsPublic(boolean value)
Copy the current immutable object by setting a present value for the optionalisPublic
attribute.ImmutableRepository
withIsPublic(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisPublic
attribute.ImmutableRepository
withIssueCommentUrl(String value)
Copy the current immutable object by setting a value for theissueCommentUrl
attribute.ImmutableRepository
withIssueEventsUrl(String value)
Copy the current immutable object by setting a value for theissueEventsUrl
attribute.ImmutableRepository
withIssuesUrl(String value)
Copy the current immutable object by setting a value for theissuesUrl
attribute.ImmutableRepository
withKeysUrl(String value)
Copy the current immutable object by setting a value for thekeysUrl
attribute.ImmutableRepository
withLabelsUrl(String value)
Copy the current immutable object by setting a value for thelabelsUrl
attribute.ImmutableRepository
withLanguage(String value)
Copy the current immutable object by setting a present value for the optionallanguage
attribute.ImmutableRepository
withLanguage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thelanguage
attribute.ImmutableRepository
withLanguagesUrl(URI value)
Copy the current immutable object by setting a value for thelanguagesUrl
attribute.ImmutableRepository
withMasterBranch(String value)
Deprecated.ImmutableRepository
withMasterBranch(Optional<String> optional)
Deprecated.ImmutableRepository
withMergesUrl(URI value)
Copy the current immutable object by setting a value for themergesUrl
attribute.ImmutableRepository
withMilestonesUrl(String value)
Copy the current immutable object by setting a value for themilestonesUrl
attribute.ImmutableRepository
withMirrorUrl(URI value)
Copy the current immutable object by setting a present value for the optionalmirrorUrl
attribute.ImmutableRepository
withMirrorUrl(Optional<? extends URI> optional)
Copy the current immutable object by setting an optional value for themirrorUrl
attribute.ImmutableRepository
withName(String value)
Copy the current immutable object by setting a value for thename
attribute.ImmutableRepository
withNotificationsUrl(String value)
Copy the current immutable object by setting a value for thenotificationsUrl
attribute.ImmutableRepository
withOpenIssues(int value)
Deprecated.ImmutableRepository
withOpenIssues(Optional<Integer> optional)
Deprecated.ImmutableRepository
withOpenIssuesCount(Integer value)
Copy the current immutable object by setting a value for theopenIssuesCount
attribute.ImmutableRepository
withOwner(User value)
Copy the current immutable object by setting a value for theowner
attribute.ImmutableRepository
withPermissions(Permissions value)
Copy the current immutable object by setting a present value for the optionalpermissions
attribute.ImmutableRepository
withPermissions(Optional<? extends Permissions> optional)
Copy the current immutable object by setting an optional value for thepermissions
attribute.ImmutableRepository
withPullsUrl(String value)
Copy the current immutable object by setting a value for thepullsUrl
attribute.ImmutableRepository
withPushedAt(GitHubInstant value)
Copy the current immutable object by setting a value for thepushedAt
attribute.ImmutableRepository
withReleasesUrl(String value)
Copy the current immutable object by setting a value for thereleasesUrl
attribute.ImmutableRepository
withSize(Integer value)
Copy the current immutable object by setting a value for thesize
attribute.ImmutableRepository
withSshUrl(String value)
Copy the current immutable object by setting a value for thesshUrl
attribute.ImmutableRepository
withStargazers(int value)
Deprecated.ImmutableRepository
withStargazers(Optional<Integer> optional)
Deprecated.ImmutableRepository
withStargazersCount(Integer value)
Copy the current immutable object by setting a value for thestargazersCount
attribute.ImmutableRepository
withStargazersUrl(URI value)
Copy the current immutable object by setting a value for thestargazersUrl
attribute.ImmutableRepository
withStatusesUrl(String value)
Copy the current immutable object by setting a value for thestatusesUrl
attribute.ImmutableRepository
withSubscribersUrl(URI value)
Copy the current immutable object by setting a value for thesubscribersUrl
attribute.ImmutableRepository
withSubscriptionUrl(URI value)
Copy the current immutable object by setting a value for thesubscriptionUrl
attribute.ImmutableRepository
withSvnUrl(URI value)
Copy the current immutable object by setting a value for thesvnUrl
attribute.ImmutableRepository
withTagsUrl(URI value)
Copy the current immutable object by setting a value for thetagsUrl
attribute.ImmutableRepository
withTeamsUrl(String value)
Copy the current immutable object by setting a value for theteamsUrl
attribute.ImmutableRepository
withTreesUrl(String value)
Copy the current immutable object by setting a value for thetreesUrl
attribute.ImmutableRepository
withUpdatedAt(GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAt
attribute.ImmutableRepository
withUrl(URI value)
Copy the current immutable object by setting a value for theurl
attribute.ImmutableRepository
withWatchers(int value)
Deprecated.ImmutableRepository
withWatchers(Optional<Integer> optional)
Deprecated.ImmutableRepository
withWatchersCount(Integer value)
Copy the current immutable object by setting a value for thewatchersCount
attribute.
-
-
-
Method Detail
-
createdAt
@Nullable public GitHubInstant createdAt()
Created date- Specified by:
createdAt
in interfaceUpdateTracking
- Returns:
- The date when the issue was created
-
updatedAt
@Nullable public GitHubInstant updatedAt()
Updated date- Specified by:
updatedAt
in interfaceUpdateTracking
- Returns:
- The date when the issue was updated
-
id
@Nullable public Integer id()
ID- Specified by:
id
in interfaceRepositoryBase
-
name
@Nullable public String name()
Name- Specified by:
name
in interfaceRepositoryBase
-
fullName
@Nullable public String fullName()
Full name: org/repo- Specified by:
fullName
in interfaceRepositoryBase
-
description
public Optional<String> description()
Description- Specified by:
description
in interfaceRepositoryBase
-
isPrivate
@Nullable public Boolean isPrivate()
Is it private- Specified by:
isPrivate
in interfaceRepositoryBase
-
isArchived
@Nullable public Boolean isArchived()
Is it archived- Specified by:
isArchived
in interfaceRepositoryBase
-
isPublic
public Optional<Boolean> isPublic()
Is it public- Specified by:
isPublic
in interfaceRepositoryBase
-
fork
@Nullable public Boolean fork()
Is it a fork- Specified by:
fork
in interfaceRepositoryBase
-
url
@Nullable public URI url()
API URL- Specified by:
url
in interfaceRepositoryBase
-
htmlUrl
@Nullable public URI htmlUrl()
HTML URL- Specified by:
htmlUrl
in interfaceRepositoryBase
-
allowSquashMerge
@Nullable public Boolean allowSquashMerge()
Allow squash merges- Specified by:
allowSquashMerge
in interfaceRepositoryBase
-
allowMergeCommit
@Nullable public Boolean allowMergeCommit()
Allow merge commits- Specified by:
allowMergeCommit
in interfaceRepositoryBase
-
allowRebaseMerge
@Nullable public Boolean allowRebaseMerge()
Allow rebase merges- Specified by:
allowRebaseMerge
in interfaceRepositoryBase
-
archiveUrl
@Nullable public String archiveUrl()
Archive URL template- Specified by:
archiveUrl
in interfaceRepositoryBase
-
assigneesUrl
@Nullable public String assigneesUrl()
Assignees URL template- Specified by:
assigneesUrl
in interfaceRepositoryBase
-
blobsUrl
@Nullable public String blobsUrl()
Blobs URL template- Specified by:
blobsUrl
in interfaceRepositoryBase
-
branchesUrl
@Nullable public String branchesUrl()
Branches URL template- Specified by:
branchesUrl
in interfaceRepositoryBase
-
cloneUrl
@Nullable public URI cloneUrl()
Clone URL- Specified by:
cloneUrl
in interfaceRepositoryBase
-
collaboratorsUrl
@Nullable public String collaboratorsUrl()
Collaborators URL template- Specified by:
collaboratorsUrl
in interfaceRepositoryBase
-
commentsUrl
@Nullable public String commentsUrl()
Comments URL template- Specified by:
commentsUrl
in interfaceRepositoryBase
-
commitsUrl
@Nullable public String commitsUrl()
Commits URL template- Specified by:
commitsUrl
in interfaceRepositoryBase
-
compareUrl
@Nullable public String compareUrl()
Compare URL template- Specified by:
compareUrl
in interfaceRepositoryBase
-
contentsUrl
@Nullable public String contentsUrl()
Contents URL template- Specified by:
contentsUrl
in interfaceRepositoryBase
-
contributorsUrl
@Nullable public URI contributorsUrl()
Contributors URL- Specified by:
contributorsUrl
in interfaceRepositoryBase
-
deploymentsUrl
public Optional<URI> deploymentsUrl()
Deployments URL- Specified by:
deploymentsUrl
in interfaceRepositoryBase
-
downloadsUrl
@Nullable public URI downloadsUrl()
Downloads URL- Specified by:
downloadsUrl
in interfaceRepositoryBase
-
eventsUrl
@Nullable public URI eventsUrl()
Events URL- Specified by:
eventsUrl
in interfaceRepositoryBase
-
forksUrl
@Nullable public URI forksUrl()
Forks URL- Specified by:
forksUrl
in interfaceRepositoryBase
-
gitCommitsUrl
@Nullable public String gitCommitsUrl()
Git commits URL template- Specified by:
gitCommitsUrl
in interfaceRepositoryBase
-
gitRefsUrl
@Nullable public String gitRefsUrl()
Git references URL template- Specified by:
gitRefsUrl
in interfaceRepositoryBase
-
gitTagsUrl
@Nullable public String gitTagsUrl()
Git tags URL template- Specified by:
gitTagsUrl
in interfaceRepositoryBase
-
gitUrl
@Nullable public URI gitUrl()
Git URL- Specified by:
gitUrl
in interfaceRepositoryBase
-
hooksUrl
@Nullable public URI hooksUrl()
Hooks URL- Specified by:
hooksUrl
in interfaceRepositoryBase
-
homepage
public Optional<String> homepage()
Homepage URL- Specified by:
homepage
in interfaceRepositoryBase
-
language
public Optional<String> language()
Language- Specified by:
language
in interfaceRepositoryBase
-
forksCount
@Nullable public Integer forksCount()
Forks count- Specified by:
forksCount
in interfaceRepositoryBase
-
stargazersCount
@Nullable public Integer stargazersCount()
Stargazers count- Specified by:
stargazersCount
in interfaceRepositoryBase
-
watchersCount
@Nullable public Integer watchersCount()
Watchers count- Specified by:
watchersCount
in interfaceRepositoryBase
-
size
@Nullable public Integer size()
Size in kB- Specified by:
size
in interfaceRepositoryBase
-
defaultBranch
@Nullable public String defaultBranch()
Default branch- Specified by:
defaultBranch
in interfaceRepositoryBase
-
openIssuesCount
@Nullable public Integer openIssuesCount()
Open issues count- Specified by:
openIssuesCount
in interfaceRepositoryBase
-
hasIssues
@Nullable public Boolean hasIssues()
Does it have issues- Specified by:
hasIssues
in interfaceRepositoryBase
-
hasWiki
@Nullable public Boolean hasWiki()
Does it have wiki- Specified by:
hasWiki
in interfaceRepositoryBase
-
hasPages
@Nullable public Boolean hasPages()
Does it have pages- Specified by:
hasPages
in interfaceRepositoryBase
-
hasDownloads
@Nullable public Boolean hasDownloads()
Does it have downloads- Specified by:
hasDownloads
in interfaceRepositoryBase
-
permissions
public Optional<Permissions> permissions()
Permissions- Specified by:
permissions
in interfaceRepositoryBase
-
forks
@Deprecated @Nullable public Integer forks()
Deprecated.Deprecated forks,forksCount()
- Specified by:
forks
in interfaceRepositoryBase
-
pushedAt
@Nullable public GitHubInstant pushedAt()
Pushed date- Specified by:
pushedAt
in interfaceRepositoryBase
-
issuesUrl
@Nullable public String issuesUrl()
Issues URL template- Specified by:
issuesUrl
in interfaceRepositoryBase
-
issueCommentUrl
@Nullable public String issueCommentUrl()
Issue Comment URL template- Specified by:
issueCommentUrl
in interfaceRepositoryBase
-
issueEventsUrl
@Nullable public String issueEventsUrl()
Issue event URL template- Specified by:
issueEventsUrl
in interfaceRepositoryBase
-
keysUrl
@Nullable public String keysUrl()
Keys URL template- Specified by:
keysUrl
in interfaceRepositoryBase
-
labelsUrl
@Nullable public String labelsUrl()
Labels URL template- Specified by:
labelsUrl
in interfaceRepositoryBase
-
languagesUrl
@Nullable public URI languagesUrl()
Languages URL- Specified by:
languagesUrl
in interfaceRepositoryBase
-
mergesUrl
@Nullable public URI mergesUrl()
Merges URL- Specified by:
mergesUrl
in interfaceRepositoryBase
-
milestonesUrl
@Nullable public String milestonesUrl()
Milestones URL template- Specified by:
milestonesUrl
in interfaceRepositoryBase
-
mirrorUrl
public Optional<URI> mirrorUrl()
Mirror url, if this repo is a mirror- Specified by:
mirrorUrl
in interfaceRepositoryBase
-
notificationsUrl
@Nullable public String notificationsUrl()
Notifications URL template- Specified by:
notificationsUrl
in interfaceRepositoryBase
-
openIssues
@Deprecated public Optional<Integer> openIssues()
Deprecated.Deprecated open issues,openIssuesCount()
- Specified by:
openIssues
in interfaceRepositoryBase
-
pullsUrl
@Nullable public String pullsUrl()
Pulls URL template- Specified by:
pullsUrl
in interfaceRepositoryBase
-
releasesUrl
@Nullable public String releasesUrl()
Releases URL template- Specified by:
releasesUrl
in interfaceRepositoryBase
-
sshUrl
@Nullable public String sshUrl()
SSH URL.- Specified by:
sshUrl
in interfaceRepositoryBase
-
stargazersUrl
@Nullable public URI stargazersUrl()
Stargazers URL- Specified by:
stargazersUrl
in interfaceRepositoryBase
-
statusesUrl
@Nullable public String statusesUrl()
Statuses URL template- Specified by:
statusesUrl
in interfaceRepositoryBase
-
subscribersUrl
@Nullable public URI subscribersUrl()
Subscribers URL- Specified by:
subscribersUrl
in interfaceRepositoryBase
-
subscriptionUrl
@Nullable public URI subscriptionUrl()
Subscription URL- Specified by:
subscriptionUrl
in interfaceRepositoryBase
-
svnUrl
@Nullable public URI svnUrl()
Subversion URL- Specified by:
svnUrl
in interfaceRepositoryBase
-
tagsUrl
@Nullable public URI tagsUrl()
Tags URL- Specified by:
tagsUrl
in interfaceRepositoryBase
-
treesUrl
@Nullable public String treesUrl()
Trees URL template- Specified by:
treesUrl
in interfaceRepositoryBase
-
teamsUrl
@Nullable public String teamsUrl()
Teams URL- Specified by:
teamsUrl
in interfaceRepositoryBase
-
watchers
@Deprecated public Optional<Integer> watchers()
Deprecated.Deprecated watchers,watchersCount()
- Specified by:
watchers
in interfaceRepositoryBase
-
stargazers
@Deprecated public Optional<Integer> stargazers()
Deprecated.Deprecated stargazers,stargazersCount()
- Specified by:
stargazers
in interfaceRepositoryBase
-
masterBranch
@Deprecated public Optional<String> masterBranch()
Deprecated.Deprecated masterBranch,defaultBranch()
- Specified by:
masterBranch
in interfaceRepositoryBase
-
owner
@Nullable public User owner()
Owner- Specified by:
owner
in interfaceRepository
-
withCreatedAt
public final ImmutableRepository withCreatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAt
attribute. 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
this
object
-
withUpdatedAt
public final ImmutableRepository withUpdatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAt
attribute. 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
this
object
-
withId
public final ImmutableRepository withId(@Nullable Integer value)
Copy the current immutable object by setting a value for theid
attribute. 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
this
object
-
withName
public final ImmutableRepository withName(@Nullable String value)
Copy the current immutable object by setting a value for thename
attribute. 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
this
object
-
withFullName
public final ImmutableRepository withFullName(@Nullable String value)
Copy the current immutable object by setting a value for thefullName
attribute. 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
this
object
-
withDescription
public final ImmutableRepository withDescription(String value)
Copy the current immutable object by setting a present value for the optionaldescription
attribute.- Parameters:
value
- The value for description- Returns:
- A modified copy of
this
object
-
withDescription
public final ImmutableRepository withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedescription
attribute. 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
this
object
-
withIsPrivate
public final ImmutableRepository withIsPrivate(@Nullable Boolean value)
Copy the current immutable object by setting a value for theisPrivate
attribute. 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
this
object
-
withIsArchived
public final ImmutableRepository withIsArchived(@Nullable Boolean value)
Copy the current immutable object by setting a value for theisArchived
attribute. 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
this
object
-
withIsPublic
public final ImmutableRepository withIsPublic(boolean value)
Copy the current immutable object by setting a present value for the optionalisPublic
attribute.- Parameters:
value
- The value for isPublic- Returns:
- A modified copy of
this
object
-
withIsPublic
public final ImmutableRepository withIsPublic(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisPublic
attribute. 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
this
object
-
withFork
public final ImmutableRepository withFork(@Nullable Boolean value)
Copy the current immutable object by setting a value for thefork
attribute. 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
this
object
-
withUrl
public final ImmutableRepository withUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theurl
attribute. 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
this
object
-
withHtmlUrl
public final ImmutableRepository withHtmlUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute. 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
this
object
-
withAllowSquashMerge
public final ImmutableRepository withAllowSquashMerge(@Nullable Boolean value)
Copy the current immutable object by setting a value for theallowSquashMerge
attribute. 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
this
object
-
withAllowMergeCommit
public final ImmutableRepository withAllowMergeCommit(@Nullable Boolean value)
Copy the current immutable object by setting a value for theallowMergeCommit
attribute. 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
this
object
-
withAllowRebaseMerge
public final ImmutableRepository withAllowRebaseMerge(@Nullable Boolean value)
Copy the current immutable object by setting a value for theallowRebaseMerge
attribute. 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
this
object
-
withArchiveUrl
public final ImmutableRepository withArchiveUrl(@Nullable String value)
Copy the current immutable object by setting a value for thearchiveUrl
attribute. 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
this
object
-
withAssigneesUrl
public final ImmutableRepository withAssigneesUrl(@Nullable String value)
Copy the current immutable object by setting a value for theassigneesUrl
attribute. 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
this
object
-
withBlobsUrl
public final ImmutableRepository withBlobsUrl(@Nullable String value)
Copy the current immutable object by setting a value for theblobsUrl
attribute. 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
this
object
-
withBranchesUrl
public final ImmutableRepository withBranchesUrl(@Nullable String value)
Copy the current immutable object by setting a value for thebranchesUrl
attribute. 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
this
object
-
withCloneUrl
public final ImmutableRepository withCloneUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thecloneUrl
attribute. 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
this
object
-
withCollaboratorsUrl
public final ImmutableRepository withCollaboratorsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecollaboratorsUrl
attribute. 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
this
object
-
withCommentsUrl
public final ImmutableRepository withCommentsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecommentsUrl
attribute. 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
this
object
-
withCommitsUrl
public final ImmutableRepository withCommitsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecommitsUrl
attribute. 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
this
object
-
withCompareUrl
public final ImmutableRepository withCompareUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecompareUrl
attribute. 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
this
object
-
withContentsUrl
public final ImmutableRepository withContentsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thecontentsUrl
attribute. 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
this
object
-
withContributorsUrl
public final ImmutableRepository withContributorsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thecontributorsUrl
attribute. 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
this
object
-
withDeploymentsUrl
public final ImmutableRepository withDeploymentsUrl(URI value)
Copy the current immutable object by setting a present value for the optionaldeploymentsUrl
attribute.- Parameters:
value
- The value for deploymentsUrl- Returns:
- A modified copy of
this
object
-
withDeploymentsUrl
public final ImmutableRepository withDeploymentsUrl(Optional<? extends URI> optional)
Copy the current immutable object by setting an optional value for thedeploymentsUrl
attribute. 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
this
object
-
withDownloadsUrl
public final ImmutableRepository withDownloadsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thedownloadsUrl
attribute. 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
this
object
-
withEventsUrl
public final ImmutableRepository withEventsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theeventsUrl
attribute. 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
this
object
-
withForksUrl
public final ImmutableRepository withForksUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theforksUrl
attribute. 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
this
object
-
withGitCommitsUrl
public final ImmutableRepository withGitCommitsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thegitCommitsUrl
attribute. 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
this
object
-
withGitRefsUrl
public final ImmutableRepository withGitRefsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thegitRefsUrl
attribute. 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
this
object
-
withGitTagsUrl
public final ImmutableRepository withGitTagsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thegitTagsUrl
attribute. 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
this
object
-
withGitUrl
public final ImmutableRepository withGitUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thegitUrl
attribute. 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
this
object
-
withHooksUrl
public final ImmutableRepository withHooksUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thehooksUrl
attribute. 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
this
object
-
withHomepage
public final ImmutableRepository withHomepage(String value)
Copy the current immutable object by setting a present value for the optionalhomepage
attribute.- Parameters:
value
- The value for homepage- Returns:
- A modified copy of
this
object
-
withHomepage
public final ImmutableRepository withHomepage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thehomepage
attribute. 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
this
object
-
withLanguage
public final ImmutableRepository withLanguage(String value)
Copy the current immutable object by setting a present value for the optionallanguage
attribute.- Parameters:
value
- The value for language- Returns:
- A modified copy of
this
object
-
withLanguage
public final ImmutableRepository withLanguage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thelanguage
attribute. 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
this
object
-
withForksCount
public final ImmutableRepository withForksCount(@Nullable Integer value)
Copy the current immutable object by setting a value for theforksCount
attribute. 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
this
object
-
withStargazersCount
public final ImmutableRepository withStargazersCount(@Nullable Integer value)
Copy the current immutable object by setting a value for thestargazersCount
attribute. 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
this
object
-
withWatchersCount
public final ImmutableRepository withWatchersCount(@Nullable Integer value)
Copy the current immutable object by setting a value for thewatchersCount
attribute. 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
this
object
-
withSize
public final ImmutableRepository withSize(@Nullable Integer value)
Copy the current immutable object by setting a value for thesize
attribute. 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
this
object
-
withDefaultBranch
public final ImmutableRepository withDefaultBranch(@Nullable String value)
Copy the current immutable object by setting a value for thedefaultBranch
attribute. 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
this
object
-
withOpenIssuesCount
public final ImmutableRepository withOpenIssuesCount(@Nullable Integer value)
Copy the current immutable object by setting a value for theopenIssuesCount
attribute. 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
this
object
-
withHasIssues
public final ImmutableRepository withHasIssues(@Nullable Boolean value)
Copy the current immutable object by setting a value for thehasIssues
attribute. 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
this
object
-
withHasWiki
public final ImmutableRepository withHasWiki(@Nullable Boolean value)
Copy the current immutable object by setting a value for thehasWiki
attribute. 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
this
object
-
withHasPages
public final ImmutableRepository withHasPages(@Nullable Boolean value)
Copy the current immutable object by setting a value for thehasPages
attribute. 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
this
object
-
withHasDownloads
public final ImmutableRepository withHasDownloads(@Nullable Boolean value)
Copy the current immutable object by setting a value for thehasDownloads
attribute. 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
this
object
-
withPermissions
public final ImmutableRepository withPermissions(Permissions value)
Copy the current immutable object by setting a present value for the optionalpermissions
attribute.- Parameters:
value
- The value for permissions- Returns:
- A modified copy of
this
object
-
withPermissions
public final ImmutableRepository withPermissions(Optional<? extends Permissions> optional)
Copy the current immutable object by setting an optional value for thepermissions
attribute. 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
this
object
-
withForks
@Deprecated public final ImmutableRepository withForks(@Nullable Integer value)
Deprecated.Copy the current immutable object by setting a value for theforks
attribute. 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
this
object
-
withPushedAt
public final ImmutableRepository withPushedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for thepushedAt
attribute. 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
this
object
-
withIssuesUrl
public final ImmutableRepository withIssuesUrl(@Nullable String value)
Copy the current immutable object by setting a value for theissuesUrl
attribute. 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
this
object
-
withIssueCommentUrl
public final ImmutableRepository withIssueCommentUrl(@Nullable String value)
Copy the current immutable object by setting a value for theissueCommentUrl
attribute. 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
this
object
-
withIssueEventsUrl
public final ImmutableRepository withIssueEventsUrl(@Nullable String value)
Copy the current immutable object by setting a value for theissueEventsUrl
attribute. 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
this
object
-
withKeysUrl
public final ImmutableRepository withKeysUrl(@Nullable String value)
Copy the current immutable object by setting a value for thekeysUrl
attribute. 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
this
object
-
withLabelsUrl
public final ImmutableRepository withLabelsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thelabelsUrl
attribute. 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
this
object
-
withLanguagesUrl
public final ImmutableRepository withLanguagesUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thelanguagesUrl
attribute. 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
this
object
-
withMergesUrl
public final ImmutableRepository withMergesUrl(@Nullable URI value)
Copy the current immutable object by setting a value for themergesUrl
attribute. 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
this
object
-
withMilestonesUrl
public final ImmutableRepository withMilestonesUrl(@Nullable String value)
Copy the current immutable object by setting a value for themilestonesUrl
attribute. 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
this
object
-
withMirrorUrl
public final ImmutableRepository withMirrorUrl(URI value)
Copy the current immutable object by setting a present value for the optionalmirrorUrl
attribute.- Parameters:
value
- The value for mirrorUrl- Returns:
- A modified copy of
this
object
-
withMirrorUrl
public final ImmutableRepository withMirrorUrl(Optional<? extends URI> optional)
Copy the current immutable object by setting an optional value for themirrorUrl
attribute. 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
this
object
-
withNotificationsUrl
public final ImmutableRepository withNotificationsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thenotificationsUrl
attribute. 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
this
object
-
withOpenIssues
@Deprecated public final ImmutableRepository withOpenIssues(int value)
Deprecated.Copy the current immutable object by setting a present value for the optionalopenIssues
attribute.- Parameters:
value
- The value for openIssues- Returns:
- A modified copy of
this
object
-
withOpenIssues
@Deprecated public final ImmutableRepository withOpenIssues(Optional<Integer> optional)
Deprecated.Copy the current immutable object by setting an optional value for theopenIssues
attribute. 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
this
object
-
withPullsUrl
public final ImmutableRepository withPullsUrl(@Nullable String value)
Copy the current immutable object by setting a value for thepullsUrl
attribute. 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
this
object
-
withReleasesUrl
public final ImmutableRepository withReleasesUrl(@Nullable String value)
Copy the current immutable object by setting a value for thereleasesUrl
attribute. 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
this
object
-
withSshUrl
public final ImmutableRepository withSshUrl(@Nullable String value)
Copy the current immutable object by setting a value for thesshUrl
attribute. 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
this
object
-
withStargazersUrl
public final ImmutableRepository withStargazersUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thestargazersUrl
attribute. 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
this
object
-
withStatusesUrl
public final ImmutableRepository withStatusesUrl(@Nullable String value)
Copy the current immutable object by setting a value for thestatusesUrl
attribute. 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
this
object
-
withSubscribersUrl
public final ImmutableRepository withSubscribersUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thesubscribersUrl
attribute. 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
this
object
-
withSubscriptionUrl
public final ImmutableRepository withSubscriptionUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thesubscriptionUrl
attribute. 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
this
object
-
withSvnUrl
public final ImmutableRepository withSvnUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thesvnUrl
attribute. 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
this
object
-
withTagsUrl
public final ImmutableRepository withTagsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thetagsUrl
attribute. 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
this
object
-
withTreesUrl
public final ImmutableRepository withTreesUrl(@Nullable String value)
Copy the current immutable object by setting a value for thetreesUrl
attribute. 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
this
object
-
withTeamsUrl
public final ImmutableRepository withTeamsUrl(@Nullable String value)
Copy the current immutable object by setting a value for theteamsUrl
attribute. 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
this
object
-
withWatchers
@Deprecated public final ImmutableRepository withWatchers(int value)
Deprecated.Copy the current immutable object by setting a present value for the optionalwatchers
attribute.- Parameters:
value
- The value for watchers- Returns:
- A modified copy of
this
object
-
withWatchers
@Deprecated public final ImmutableRepository withWatchers(Optional<Integer> optional)
Deprecated.Copy the current immutable object by setting an optional value for thewatchers
attribute. 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
this
object
-
withStargazers
@Deprecated public final ImmutableRepository withStargazers(int value)
Deprecated.Copy the current immutable object by setting a present value for the optionalstargazers
attribute.- Parameters:
value
- The value for stargazers- Returns:
- A modified copy of
this
object
-
withStargazers
@Deprecated public final ImmutableRepository withStargazers(Optional<Integer> optional)
Deprecated.Copy the current immutable object by setting an optional value for thestargazers
attribute. 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
this
object
-
withMasterBranch
@Deprecated public final ImmutableRepository withMasterBranch(String value)
Deprecated.Copy the current immutable object by setting a present value for the optionalmasterBranch
attribute.- Parameters:
value
- The value for masterBranch- Returns:
- A modified copy of
this
object
-
withMasterBranch
@Deprecated public final ImmutableRepository withMasterBranch(Optional<String> optional)
Deprecated.Copy the current immutable object by setting an optional value for themasterBranch
attribute. 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
this
object
-
withOwner
public final ImmutableRepository withOwner(@Nullable User value)
Copy the current immutable object by setting a value for theowner
attribute. 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
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableRepository
that 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
,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 valueRepository
with attribute values.
-
copyOf
public static ImmutableRepository copyOf(Repository instance)
Creates an immutable copy of aRepository
value. 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) // nullable
createdAt
.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
.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
-
-