Package com.spotify.github.v3.repos
Class ImmutablePushRepository
- java.lang.Object
-
- com.spotify.github.v3.repos.ImmutablePushRepository
-
- All Implemented Interfaces:
UpdateTracking
,PushRepository
,RepositoryBase
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePushRepository extends Object implements PushRepository
Immutable implementation ofPushRepository
.Use the builder to create immutable instances:
ImmutablePushRepository.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutablePushRepository.Builder
Builds instances of typeImmutablePushRepository
.
-
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 ImmutablePushRepository.Builder
builder()
Creates a builder forImmutablePushRepository
.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 ImmutablePushRepository
copyOf(PushRepository instance)
Creates an immutable copy of aPushRepository
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 ofImmutablePushRepository
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 countAuthor
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 valuePushRepository
with attribute values.String
treesUrl()
Trees URL templateGitHubInstant
updatedAt()
Updated dateURI
url()
API URLOptional<Integer>
watchers()
Deprecated.Integer
watchersCount()
Watchers countImmutablePushRepository
withAllowMergeCommit(Boolean value)
Copy the current immutable object by setting a value for theallowMergeCommit
attribute.ImmutablePushRepository
withAllowRebaseMerge(Boolean value)
Copy the current immutable object by setting a value for theallowRebaseMerge
attribute.ImmutablePushRepository
withAllowSquashMerge(Boolean value)
Copy the current immutable object by setting a value for theallowSquashMerge
attribute.ImmutablePushRepository
withArchiveUrl(String value)
Copy the current immutable object by setting a value for thearchiveUrl
attribute.ImmutablePushRepository
withAssigneesUrl(String value)
Copy the current immutable object by setting a value for theassigneesUrl
attribute.ImmutablePushRepository
withBlobsUrl(String value)
Copy the current immutable object by setting a value for theblobsUrl
attribute.ImmutablePushRepository
withBranchesUrl(String value)
Copy the current immutable object by setting a value for thebranchesUrl
attribute.ImmutablePushRepository
withCloneUrl(URI value)
Copy the current immutable object by setting a value for thecloneUrl
attribute.ImmutablePushRepository
withCollaboratorsUrl(String value)
Copy the current immutable object by setting a value for thecollaboratorsUrl
attribute.ImmutablePushRepository
withCommentsUrl(String value)
Copy the current immutable object by setting a value for thecommentsUrl
attribute.ImmutablePushRepository
withCommitsUrl(String value)
Copy the current immutable object by setting a value for thecommitsUrl
attribute.ImmutablePushRepository
withCompareUrl(String value)
Copy the current immutable object by setting a value for thecompareUrl
attribute.ImmutablePushRepository
withContentsUrl(String value)
Copy the current immutable object by setting a value for thecontentsUrl
attribute.ImmutablePushRepository
withContributorsUrl(URI value)
Copy the current immutable object by setting a value for thecontributorsUrl
attribute.ImmutablePushRepository
withCreatedAt(GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAt
attribute.ImmutablePushRepository
withDefaultBranch(String value)
Copy the current immutable object by setting a value for thedefaultBranch
attribute.ImmutablePushRepository
withDeploymentsUrl(URI value)
Copy the current immutable object by setting a present value for the optionaldeploymentsUrl
attribute.ImmutablePushRepository
withDeploymentsUrl(Optional<? extends URI> optional)
Copy the current immutable object by setting an optional value for thedeploymentsUrl
attribute.ImmutablePushRepository
withDescription(String value)
Copy the current immutable object by setting a present value for the optionaldescription
attribute.ImmutablePushRepository
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedescription
attribute.ImmutablePushRepository
withDownloadsUrl(URI value)
Copy the current immutable object by setting a value for thedownloadsUrl
attribute.ImmutablePushRepository
withEventsUrl(URI value)
Copy the current immutable object by setting a value for theeventsUrl
attribute.ImmutablePushRepository
withFork(Boolean value)
Copy the current immutable object by setting a value for thefork
attribute.ImmutablePushRepository
withForks(Integer value)
Deprecated.ImmutablePushRepository
withForksCount(Integer value)
Copy the current immutable object by setting a value for theforksCount
attribute.ImmutablePushRepository
withForksUrl(URI value)
Copy the current immutable object by setting a value for theforksUrl
attribute.ImmutablePushRepository
withFullName(String value)
Copy the current immutable object by setting a value for thefullName
attribute.ImmutablePushRepository
withGitCommitsUrl(String value)
Copy the current immutable object by setting a value for thegitCommitsUrl
attribute.ImmutablePushRepository
withGitRefsUrl(String value)
Copy the current immutable object by setting a value for thegitRefsUrl
attribute.ImmutablePushRepository
withGitTagsUrl(String value)
Copy the current immutable object by setting a value for thegitTagsUrl
attribute.ImmutablePushRepository
withGitUrl(URI value)
Copy the current immutable object by setting a value for thegitUrl
attribute.ImmutablePushRepository
withHasDownloads(Boolean value)
Copy the current immutable object by setting a value for thehasDownloads
attribute.ImmutablePushRepository
withHasIssues(Boolean value)
Copy the current immutable object by setting a value for thehasIssues
attribute.ImmutablePushRepository
withHasPages(Boolean value)
Copy the current immutable object by setting a value for thehasPages
attribute.ImmutablePushRepository
withHasWiki(Boolean value)
Copy the current immutable object by setting a value for thehasWiki
attribute.ImmutablePushRepository
withHomepage(String value)
Copy the current immutable object by setting a present value for the optionalhomepage
attribute.ImmutablePushRepository
withHomepage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thehomepage
attribute.ImmutablePushRepository
withHooksUrl(URI value)
Copy the current immutable object by setting a value for thehooksUrl
attribute.ImmutablePushRepository
withHtmlUrl(URI value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute.ImmutablePushRepository
withId(Integer value)
Copy the current immutable object by setting a value for theid
attribute.ImmutablePushRepository
withIsArchived(Boolean value)
Copy the current immutable object by setting a value for theisArchived
attribute.ImmutablePushRepository
withIsPrivate(Boolean value)
Copy the current immutable object by setting a value for theisPrivate
attribute.ImmutablePushRepository
withIsPublic(boolean value)
Copy the current immutable object by setting a present value for the optionalisPublic
attribute.ImmutablePushRepository
withIsPublic(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisPublic
attribute.ImmutablePushRepository
withIssueCommentUrl(String value)
Copy the current immutable object by setting a value for theissueCommentUrl
attribute.ImmutablePushRepository
withIssueEventsUrl(String value)
Copy the current immutable object by setting a value for theissueEventsUrl
attribute.ImmutablePushRepository
withIssuesUrl(String value)
Copy the current immutable object by setting a value for theissuesUrl
attribute.ImmutablePushRepository
withKeysUrl(String value)
Copy the current immutable object by setting a value for thekeysUrl
attribute.ImmutablePushRepository
withLabelsUrl(String value)
Copy the current immutable object by setting a value for thelabelsUrl
attribute.ImmutablePushRepository
withLanguage(String value)
Copy the current immutable object by setting a present value for the optionallanguage
attribute.ImmutablePushRepository
withLanguage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thelanguage
attribute.ImmutablePushRepository
withLanguagesUrl(URI value)
Copy the current immutable object by setting a value for thelanguagesUrl
attribute.ImmutablePushRepository
withMasterBranch(String value)
Deprecated.ImmutablePushRepository
withMasterBranch(Optional<String> optional)
Deprecated.ImmutablePushRepository
withMergesUrl(URI value)
Copy the current immutable object by setting a value for themergesUrl
attribute.ImmutablePushRepository
withMilestonesUrl(String value)
Copy the current immutable object by setting a value for themilestonesUrl
attribute.ImmutablePushRepository
withMirrorUrl(URI value)
Copy the current immutable object by setting a present value for the optionalmirrorUrl
attribute.ImmutablePushRepository
withMirrorUrl(Optional<? extends URI> optional)
Copy the current immutable object by setting an optional value for themirrorUrl
attribute.ImmutablePushRepository
withName(String value)
Copy the current immutable object by setting a value for thename
attribute.ImmutablePushRepository
withNotificationsUrl(String value)
Copy the current immutable object by setting a value for thenotificationsUrl
attribute.ImmutablePushRepository
withOpenIssues(int value)
Deprecated.ImmutablePushRepository
withOpenIssues(Optional<Integer> optional)
Deprecated.ImmutablePushRepository
withOpenIssuesCount(Integer value)
Copy the current immutable object by setting a value for theopenIssuesCount
attribute.ImmutablePushRepository
withOwner(Author value)
Copy the current immutable object by setting a value for theowner
attribute.ImmutablePushRepository
withPermissions(Permissions value)
Copy the current immutable object by setting a present value for the optionalpermissions
attribute.ImmutablePushRepository
withPermissions(Optional<? extends Permissions> optional)
Copy the current immutable object by setting an optional value for thepermissions
attribute.ImmutablePushRepository
withPullsUrl(String value)
Copy the current immutable object by setting a value for thepullsUrl
attribute.ImmutablePushRepository
withPushedAt(GitHubInstant value)
Copy the current immutable object by setting a value for thepushedAt
attribute.ImmutablePushRepository
withReleasesUrl(String value)
Copy the current immutable object by setting a value for thereleasesUrl
attribute.ImmutablePushRepository
withSize(Integer value)
Copy the current immutable object by setting a value for thesize
attribute.ImmutablePushRepository
withSshUrl(String value)
Copy the current immutable object by setting a value for thesshUrl
attribute.ImmutablePushRepository
withStargazers(int value)
Deprecated.ImmutablePushRepository
withStargazers(Optional<Integer> optional)
Deprecated.ImmutablePushRepository
withStargazersCount(Integer value)
Copy the current immutable object by setting a value for thestargazersCount
attribute.ImmutablePushRepository
withStargazersUrl(URI value)
Copy the current immutable object by setting a value for thestargazersUrl
attribute.ImmutablePushRepository
withStatusesUrl(String value)
Copy the current immutable object by setting a value for thestatusesUrl
attribute.ImmutablePushRepository
withSubscribersUrl(URI value)
Copy the current immutable object by setting a value for thesubscribersUrl
attribute.ImmutablePushRepository
withSubscriptionUrl(URI value)
Copy the current immutable object by setting a value for thesubscriptionUrl
attribute.ImmutablePushRepository
withSvnUrl(URI value)
Copy the current immutable object by setting a value for thesvnUrl
attribute.ImmutablePushRepository
withTagsUrl(URI value)
Copy the current immutable object by setting a value for thetagsUrl
attribute.ImmutablePushRepository
withTeamsUrl(String value)
Copy the current immutable object by setting a value for theteamsUrl
attribute.ImmutablePushRepository
withTreesUrl(String value)
Copy the current immutable object by setting a value for thetreesUrl
attribute.ImmutablePushRepository
withUpdatedAt(GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAt
attribute.ImmutablePushRepository
withUrl(URI value)
Copy the current immutable object by setting a value for theurl
attribute.ImmutablePushRepository
withWatchers(int value)
Deprecated.ImmutablePushRepository
withWatchers(Optional<Integer> optional)
Deprecated.ImmutablePushRepository
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 Author owner()
Owner- Specified by:
owner
in interfacePushRepository
-
withCreatedAt
public final ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository 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 ImmutablePushRepository withOwner(@Nullable Author 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 ofImmutablePushRepository
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 valuePushRepository
with attribute values.
-
copyOf
public static ImmutablePushRepository copyOf(PushRepository instance)
Creates an immutable copy of aPushRepository
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 PushRepository instance
-
builder
public static ImmutablePushRepository.Builder builder()
Creates a builder forImmutablePushRepository
.ImmutablePushRepository.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.git.Author | null) // nullableowner
.build();- Returns:
- A new ImmutablePushRepository builder
-
-