Package com.spotify.github.v3.repos
Class ImmutablePushRepository.Builder
- java.lang.Object
-
- com.spotify.github.v3.repos.ImmutablePushRepository.Builder
-
- Enclosing class:
- ImmutablePushRepository
@NotThreadSafe public static final class ImmutablePushRepository.Builder extends Object
Builds instances of typeImmutablePushRepository
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.Builder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImmutablePushRepository.Builder
allowMergeCommit(Boolean allowMergeCommit)
Initializes the value for theallowMergeCommit
attribute.ImmutablePushRepository.Builder
allowRebaseMerge(Boolean allowRebaseMerge)
Initializes the value for theallowRebaseMerge
attribute.ImmutablePushRepository.Builder
allowSquashMerge(Boolean allowSquashMerge)
Initializes the value for theallowSquashMerge
attribute.ImmutablePushRepository.Builder
archiveUrl(String archiveUrl)
Initializes the value for thearchiveUrl
attribute.ImmutablePushRepository.Builder
assigneesUrl(String assigneesUrl)
Initializes the value for theassigneesUrl
attribute.ImmutablePushRepository.Builder
blobsUrl(String blobsUrl)
Initializes the value for theblobsUrl
attribute.ImmutablePushRepository.Builder
branchesUrl(String branchesUrl)
Initializes the value for thebranchesUrl
attribute.ImmutablePushRepository
build()
Builds a newImmutablePushRepository
.ImmutablePushRepository.Builder
cloneUrl(URI cloneUrl)
Initializes the value for thecloneUrl
attribute.ImmutablePushRepository.Builder
collaboratorsUrl(String collaboratorsUrl)
Initializes the value for thecollaboratorsUrl
attribute.ImmutablePushRepository.Builder
commentsUrl(String commentsUrl)
Initializes the value for thecommentsUrl
attribute.ImmutablePushRepository.Builder
commitsUrl(String commitsUrl)
Initializes the value for thecommitsUrl
attribute.ImmutablePushRepository.Builder
compareUrl(String compareUrl)
Initializes the value for thecompareUrl
attribute.ImmutablePushRepository.Builder
contentsUrl(String contentsUrl)
Initializes the value for thecontentsUrl
attribute.ImmutablePushRepository.Builder
contributorsUrl(URI contributorsUrl)
Initializes the value for thecontributorsUrl
attribute.ImmutablePushRepository.Builder
createdAt(GitHubInstant createdAt)
Initializes the value for thecreatedAt
attribute.ImmutablePushRepository.Builder
defaultBranch(String defaultBranch)
Initializes the value for thedefaultBranch
attribute.ImmutablePushRepository.Builder
deploymentsUrl(URI deploymentsUrl)
Initializes the optional valuedeploymentsUrl
to deploymentsUrl.ImmutablePushRepository.Builder
deploymentsUrl(Optional<? extends URI> deploymentsUrl)
Initializes the optional valuedeploymentsUrl
to deploymentsUrl.ImmutablePushRepository.Builder
description(String description)
Initializes the optional valuedescription
to description.ImmutablePushRepository.Builder
description(Optional<String> description)
Initializes the optional valuedescription
to description.ImmutablePushRepository.Builder
downloadsUrl(URI downloadsUrl)
Initializes the value for thedownloadsUrl
attribute.ImmutablePushRepository.Builder
eventsUrl(URI eventsUrl)
Initializes the value for theeventsUrl
attribute.ImmutablePushRepository.Builder
fork(Boolean fork)
Initializes the value for thefork
attribute.ImmutablePushRepository.Builder
forks(Integer forks)
Deprecated.ImmutablePushRepository.Builder
forksCount(Integer forksCount)
Initializes the value for theforksCount
attribute.ImmutablePushRepository.Builder
forksUrl(URI forksUrl)
Initializes the value for theforksUrl
attribute.ImmutablePushRepository.Builder
from(UpdateTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.UpdateTracking
instance.ImmutablePushRepository.Builder
from(PushRepository instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.PushRepository
instance.ImmutablePushRepository.Builder
from(RepositoryBase instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.RepositoryBase
instance.ImmutablePushRepository.Builder
fullName(String fullName)
Initializes the value for thefullName
attribute.ImmutablePushRepository.Builder
gitCommitsUrl(String gitCommitsUrl)
Initializes the value for thegitCommitsUrl
attribute.ImmutablePushRepository.Builder
gitRefsUrl(String gitRefsUrl)
Initializes the value for thegitRefsUrl
attribute.ImmutablePushRepository.Builder
gitTagsUrl(String gitTagsUrl)
Initializes the value for thegitTagsUrl
attribute.ImmutablePushRepository.Builder
gitUrl(URI gitUrl)
Initializes the value for thegitUrl
attribute.ImmutablePushRepository.Builder
hasDownloads(Boolean hasDownloads)
Initializes the value for thehasDownloads
attribute.ImmutablePushRepository.Builder
hasIssues(Boolean hasIssues)
Initializes the value for thehasIssues
attribute.ImmutablePushRepository.Builder
hasPages(Boolean hasPages)
Initializes the value for thehasPages
attribute.ImmutablePushRepository.Builder
hasWiki(Boolean hasWiki)
Initializes the value for thehasWiki
attribute.ImmutablePushRepository.Builder
homepage(String homepage)
Initializes the optional valuehomepage
to homepage.ImmutablePushRepository.Builder
homepage(Optional<String> homepage)
Initializes the optional valuehomepage
to homepage.ImmutablePushRepository.Builder
hooksUrl(URI hooksUrl)
Initializes the value for thehooksUrl
attribute.ImmutablePushRepository.Builder
htmlUrl(URI htmlUrl)
Initializes the value for thehtmlUrl
attribute.ImmutablePushRepository.Builder
id(Integer id)
Initializes the value for theid
attribute.ImmutablePushRepository.Builder
isArchived(Boolean isArchived)
Initializes the value for theisArchived
attribute.ImmutablePushRepository.Builder
isPrivate(Boolean isPrivate)
Initializes the value for theisPrivate
attribute.ImmutablePushRepository.Builder
isPublic(boolean isPublic)
Initializes the optional valueisPublic
to isPublic.ImmutablePushRepository.Builder
isPublic(Optional<Boolean> isPublic)
Initializes the optional valueisPublic
to isPublic.ImmutablePushRepository.Builder
issueCommentUrl(String issueCommentUrl)
Initializes the value for theissueCommentUrl
attribute.ImmutablePushRepository.Builder
issueEventsUrl(String issueEventsUrl)
Initializes the value for theissueEventsUrl
attribute.ImmutablePushRepository.Builder
issuesUrl(String issuesUrl)
Initializes the value for theissuesUrl
attribute.ImmutablePushRepository.Builder
keysUrl(String keysUrl)
Initializes the value for thekeysUrl
attribute.ImmutablePushRepository.Builder
labelsUrl(String labelsUrl)
Initializes the value for thelabelsUrl
attribute.ImmutablePushRepository.Builder
language(String language)
Initializes the optional valuelanguage
to language.ImmutablePushRepository.Builder
language(Optional<String> language)
Initializes the optional valuelanguage
to language.ImmutablePushRepository.Builder
languagesUrl(URI languagesUrl)
Initializes the value for thelanguagesUrl
attribute.ImmutablePushRepository.Builder
masterBranch(String masterBranch)
Deprecated.ImmutablePushRepository.Builder
masterBranch(Optional<String> masterBranch)
Deprecated.ImmutablePushRepository.Builder
mergesUrl(URI mergesUrl)
Initializes the value for themergesUrl
attribute.ImmutablePushRepository.Builder
milestonesUrl(String milestonesUrl)
Initializes the value for themilestonesUrl
attribute.ImmutablePushRepository.Builder
mirrorUrl(URI mirrorUrl)
Initializes the optional valuemirrorUrl
to mirrorUrl.ImmutablePushRepository.Builder
mirrorUrl(Optional<? extends URI> mirrorUrl)
Initializes the optional valuemirrorUrl
to mirrorUrl.ImmutablePushRepository.Builder
name(String name)
Initializes the value for thename
attribute.ImmutablePushRepository.Builder
notificationsUrl(String notificationsUrl)
Initializes the value for thenotificationsUrl
attribute.ImmutablePushRepository.Builder
openIssues(int openIssues)
Deprecated.ImmutablePushRepository.Builder
openIssues(Optional<Integer> openIssues)
Deprecated.ImmutablePushRepository.Builder
openIssuesCount(Integer openIssuesCount)
Initializes the value for theopenIssuesCount
attribute.ImmutablePushRepository.Builder
owner(Author owner)
Initializes the value for theowner
attribute.ImmutablePushRepository.Builder
permissions(Permissions permissions)
Initializes the optional valuepermissions
to permissions.ImmutablePushRepository.Builder
permissions(Optional<? extends Permissions> permissions)
Initializes the optional valuepermissions
to permissions.ImmutablePushRepository.Builder
pullsUrl(String pullsUrl)
Initializes the value for thepullsUrl
attribute.ImmutablePushRepository.Builder
pushedAt(GitHubInstant pushedAt)
Initializes the value for thepushedAt
attribute.ImmutablePushRepository.Builder
releasesUrl(String releasesUrl)
Initializes the value for thereleasesUrl
attribute.ImmutablePushRepository.Builder
size(Integer size)
Initializes the value for thesize
attribute.ImmutablePushRepository.Builder
sshUrl(String sshUrl)
Initializes the value for thesshUrl
attribute.ImmutablePushRepository.Builder
stargazers(int stargazers)
Deprecated.ImmutablePushRepository.Builder
stargazers(Optional<Integer> stargazers)
Deprecated.ImmutablePushRepository.Builder
stargazersCount(Integer stargazersCount)
Initializes the value for thestargazersCount
attribute.ImmutablePushRepository.Builder
stargazersUrl(URI stargazersUrl)
Initializes the value for thestargazersUrl
attribute.ImmutablePushRepository.Builder
statusesUrl(String statusesUrl)
Initializes the value for thestatusesUrl
attribute.ImmutablePushRepository.Builder
subscribersUrl(URI subscribersUrl)
Initializes the value for thesubscribersUrl
attribute.ImmutablePushRepository.Builder
subscriptionUrl(URI subscriptionUrl)
Initializes the value for thesubscriptionUrl
attribute.ImmutablePushRepository.Builder
svnUrl(URI svnUrl)
Initializes the value for thesvnUrl
attribute.ImmutablePushRepository.Builder
tagsUrl(URI tagsUrl)
Initializes the value for thetagsUrl
attribute.ImmutablePushRepository.Builder
teamsUrl(String teamsUrl)
Initializes the value for theteamsUrl
attribute.ImmutablePushRepository.Builder
treesUrl(String treesUrl)
Initializes the value for thetreesUrl
attribute.ImmutablePushRepository.Builder
updatedAt(GitHubInstant updatedAt)
Initializes the value for theupdatedAt
attribute.ImmutablePushRepository.Builder
url(URI url)
Initializes the value for theurl
attribute.ImmutablePushRepository.Builder
watchers(int watchers)
Deprecated.ImmutablePushRepository.Builder
watchers(Optional<Integer> watchers)
Deprecated.ImmutablePushRepository.Builder
watchersCount(Integer watchersCount)
Initializes the value for thewatchersCount
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder from(PushRepository instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.PushRepository
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder from(RepositoryBase instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.repos.RepositoryBase
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder from(UpdateTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.UpdateTracking
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
createdAt
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder createdAt(@Nullable GitHubInstant createdAt)
Initializes the value for thecreatedAt
attribute.- Parameters:
createdAt
- The value for createdAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
updatedAt
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder updatedAt(@Nullable GitHubInstant updatedAt)
Initializes the value for theupdatedAt
attribute.- Parameters:
updatedAt
- The value for updatedAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder id(@Nullable Integer id)
Initializes the value for theid
attribute.- Parameters:
id
- The value for id (can benull
)- Returns:
this
builder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder name(@Nullable String name)
Initializes the value for thename
attribute.- Parameters:
name
- The value for name (can benull
)- Returns:
this
builder for use in a chained invocation
-
fullName
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder fullName(@Nullable String fullName)
Initializes the value for thefullName
attribute.- Parameters:
fullName
- The value for fullName (can benull
)- Returns:
this
builder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder description(String description)
Initializes the optional valuedescription
to description.- Parameters:
description
- The value for description- Returns:
this
builder for chained invocation
-
description
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder description(Optional<String> description)
Initializes the optional valuedescription
to description.- Parameters:
description
- The value for description- Returns:
this
builder for use in a chained invocation
-
isPrivate
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder isPrivate(@Nullable Boolean isPrivate)
Initializes the value for theisPrivate
attribute.- Parameters:
isPrivate
- The value for isPrivate (can benull
)- Returns:
this
builder for use in a chained invocation
-
isArchived
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder isArchived(@Nullable Boolean isArchived)
Initializes the value for theisArchived
attribute.- Parameters:
isArchived
- The value for isArchived (can benull
)- Returns:
this
builder for use in a chained invocation
-
isPublic
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder isPublic(boolean isPublic)
Initializes the optional valueisPublic
to isPublic.- Parameters:
isPublic
- The value for isPublic- Returns:
this
builder for chained invocation
-
isPublic
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder isPublic(Optional<Boolean> isPublic)
Initializes the optional valueisPublic
to isPublic.- Parameters:
isPublic
- The value for isPublic- Returns:
this
builder for use in a chained invocation
-
fork
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder fork(@Nullable Boolean fork)
Initializes the value for thefork
attribute.- Parameters:
fork
- The value for fork (can benull
)- Returns:
this
builder for use in a chained invocation
-
url
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder url(@Nullable URI url)
Initializes the value for theurl
attribute.- Parameters:
url
- The value for url (can benull
)- Returns:
this
builder for use in a chained invocation
-
htmlUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder htmlUrl(@Nullable URI htmlUrl)
Initializes the value for thehtmlUrl
attribute.- Parameters:
htmlUrl
- The value for htmlUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
allowSquashMerge
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder allowSquashMerge(@Nullable Boolean allowSquashMerge)
Initializes the value for theallowSquashMerge
attribute.- Parameters:
allowSquashMerge
- The value for allowSquashMerge (can benull
)- Returns:
this
builder for use in a chained invocation
-
allowMergeCommit
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder allowMergeCommit(@Nullable Boolean allowMergeCommit)
Initializes the value for theallowMergeCommit
attribute.- Parameters:
allowMergeCommit
- The value for allowMergeCommit (can benull
)- Returns:
this
builder for use in a chained invocation
-
allowRebaseMerge
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder allowRebaseMerge(@Nullable Boolean allowRebaseMerge)
Initializes the value for theallowRebaseMerge
attribute.- Parameters:
allowRebaseMerge
- The value for allowRebaseMerge (can benull
)- Returns:
this
builder for use in a chained invocation
-
archiveUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder archiveUrl(@Nullable String archiveUrl)
Initializes the value for thearchiveUrl
attribute.- Parameters:
archiveUrl
- The value for archiveUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
assigneesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder assigneesUrl(@Nullable String assigneesUrl)
Initializes the value for theassigneesUrl
attribute.- Parameters:
assigneesUrl
- The value for assigneesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
blobsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder blobsUrl(@Nullable String blobsUrl)
Initializes the value for theblobsUrl
attribute.- Parameters:
blobsUrl
- The value for blobsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
branchesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder branchesUrl(@Nullable String branchesUrl)
Initializes the value for thebranchesUrl
attribute.- Parameters:
branchesUrl
- The value for branchesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
cloneUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder cloneUrl(@Nullable URI cloneUrl)
Initializes the value for thecloneUrl
attribute.- Parameters:
cloneUrl
- The value for cloneUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
collaboratorsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder collaboratorsUrl(@Nullable String collaboratorsUrl)
Initializes the value for thecollaboratorsUrl
attribute.- Parameters:
collaboratorsUrl
- The value for collaboratorsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
commentsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder commentsUrl(@Nullable String commentsUrl)
Initializes the value for thecommentsUrl
attribute.- Parameters:
commentsUrl
- The value for commentsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
commitsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder commitsUrl(@Nullable String commitsUrl)
Initializes the value for thecommitsUrl
attribute.- Parameters:
commitsUrl
- The value for commitsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
compareUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder compareUrl(@Nullable String compareUrl)
Initializes the value for thecompareUrl
attribute.- Parameters:
compareUrl
- The value for compareUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
contentsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder contentsUrl(@Nullable String contentsUrl)
Initializes the value for thecontentsUrl
attribute.- Parameters:
contentsUrl
- The value for contentsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
contributorsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder contributorsUrl(@Nullable URI contributorsUrl)
Initializes the value for thecontributorsUrl
attribute.- Parameters:
contributorsUrl
- The value for contributorsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
deploymentsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder deploymentsUrl(URI deploymentsUrl)
Initializes the optional valuedeploymentsUrl
to deploymentsUrl.- Parameters:
deploymentsUrl
- The value for deploymentsUrl- Returns:
this
builder for chained invocation
-
deploymentsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder deploymentsUrl(Optional<? extends URI> deploymentsUrl)
Initializes the optional valuedeploymentsUrl
to deploymentsUrl.- Parameters:
deploymentsUrl
- The value for deploymentsUrl- Returns:
this
builder for use in a chained invocation
-
downloadsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder downloadsUrl(@Nullable URI downloadsUrl)
Initializes the value for thedownloadsUrl
attribute.- Parameters:
downloadsUrl
- The value for downloadsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
eventsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder eventsUrl(@Nullable URI eventsUrl)
Initializes the value for theeventsUrl
attribute.- Parameters:
eventsUrl
- The value for eventsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
forksUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder forksUrl(@Nullable URI forksUrl)
Initializes the value for theforksUrl
attribute.- Parameters:
forksUrl
- The value for forksUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
gitCommitsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder gitCommitsUrl(@Nullable String gitCommitsUrl)
Initializes the value for thegitCommitsUrl
attribute.- Parameters:
gitCommitsUrl
- The value for gitCommitsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
gitRefsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder gitRefsUrl(@Nullable String gitRefsUrl)
Initializes the value for thegitRefsUrl
attribute.- Parameters:
gitRefsUrl
- The value for gitRefsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
gitTagsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder gitTagsUrl(@Nullable String gitTagsUrl)
Initializes the value for thegitTagsUrl
attribute.- Parameters:
gitTagsUrl
- The value for gitTagsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
gitUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder gitUrl(@Nullable URI gitUrl)
Initializes the value for thegitUrl
attribute.- Parameters:
gitUrl
- The value for gitUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
hooksUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder hooksUrl(@Nullable URI hooksUrl)
Initializes the value for thehooksUrl
attribute.- Parameters:
hooksUrl
- The value for hooksUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
homepage
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder homepage(String homepage)
Initializes the optional valuehomepage
to homepage.- Parameters:
homepage
- The value for homepage- Returns:
this
builder for chained invocation
-
homepage
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder homepage(Optional<String> homepage)
Initializes the optional valuehomepage
to homepage.- Parameters:
homepage
- The value for homepage- Returns:
this
builder for use in a chained invocation
-
language
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder language(String language)
Initializes the optional valuelanguage
to language.- Parameters:
language
- The value for language- Returns:
this
builder for chained invocation
-
language
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder language(Optional<String> language)
Initializes the optional valuelanguage
to language.- Parameters:
language
- The value for language- Returns:
this
builder for use in a chained invocation
-
forksCount
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder forksCount(@Nullable Integer forksCount)
Initializes the value for theforksCount
attribute.- Parameters:
forksCount
- The value for forksCount (can benull
)- Returns:
this
builder for use in a chained invocation
-
stargazersCount
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder stargazersCount(@Nullable Integer stargazersCount)
Initializes the value for thestargazersCount
attribute.- Parameters:
stargazersCount
- The value for stargazersCount (can benull
)- Returns:
this
builder for use in a chained invocation
-
watchersCount
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder watchersCount(@Nullable Integer watchersCount)
Initializes the value for thewatchersCount
attribute.- Parameters:
watchersCount
- The value for watchersCount (can benull
)- Returns:
this
builder for use in a chained invocation
-
size
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder size(@Nullable Integer size)
Initializes the value for thesize
attribute.- Parameters:
size
- The value for size (can benull
)- Returns:
this
builder for use in a chained invocation
-
defaultBranch
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder defaultBranch(@Nullable String defaultBranch)
Initializes the value for thedefaultBranch
attribute.- Parameters:
defaultBranch
- The value for defaultBranch (can benull
)- Returns:
this
builder for use in a chained invocation
-
openIssuesCount
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder openIssuesCount(@Nullable Integer openIssuesCount)
Initializes the value for theopenIssuesCount
attribute.- Parameters:
openIssuesCount
- The value for openIssuesCount (can benull
)- Returns:
this
builder for use in a chained invocation
-
hasIssues
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder hasIssues(@Nullable Boolean hasIssues)
Initializes the value for thehasIssues
attribute.- Parameters:
hasIssues
- The value for hasIssues (can benull
)- Returns:
this
builder for use in a chained invocation
-
hasWiki
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder hasWiki(@Nullable Boolean hasWiki)
Initializes the value for thehasWiki
attribute.- Parameters:
hasWiki
- The value for hasWiki (can benull
)- Returns:
this
builder for use in a chained invocation
-
hasPages
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder hasPages(@Nullable Boolean hasPages)
Initializes the value for thehasPages
attribute.- Parameters:
hasPages
- The value for hasPages (can benull
)- Returns:
this
builder for use in a chained invocation
-
hasDownloads
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder hasDownloads(@Nullable Boolean hasDownloads)
Initializes the value for thehasDownloads
attribute.- Parameters:
hasDownloads
- The value for hasDownloads (can benull
)- Returns:
this
builder for use in a chained invocation
-
permissions
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder permissions(Permissions permissions)
Initializes the optional valuepermissions
to permissions.- Parameters:
permissions
- The value for permissions- Returns:
this
builder for chained invocation
-
permissions
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder permissions(Optional<? extends Permissions> permissions)
Initializes the optional valuepermissions
to permissions.- Parameters:
permissions
- The value for permissions- Returns:
this
builder for use in a chained invocation
-
forks
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder forks(@Nullable Integer forks)
Deprecated.Initializes the value for theforks
attribute.- Parameters:
forks
- The value for forks (can benull
)- Returns:
this
builder for use in a chained invocation
-
pushedAt
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder pushedAt(@Nullable GitHubInstant pushedAt)
Initializes the value for thepushedAt
attribute.- Parameters:
pushedAt
- The value for pushedAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
issuesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder issuesUrl(@Nullable String issuesUrl)
Initializes the value for theissuesUrl
attribute.- Parameters:
issuesUrl
- The value for issuesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
issueCommentUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder issueCommentUrl(@Nullable String issueCommentUrl)
Initializes the value for theissueCommentUrl
attribute.- Parameters:
issueCommentUrl
- The value for issueCommentUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
issueEventsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder issueEventsUrl(@Nullable String issueEventsUrl)
Initializes the value for theissueEventsUrl
attribute.- Parameters:
issueEventsUrl
- The value for issueEventsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
keysUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder keysUrl(@Nullable String keysUrl)
Initializes the value for thekeysUrl
attribute.- Parameters:
keysUrl
- The value for keysUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
labelsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder labelsUrl(@Nullable String labelsUrl)
Initializes the value for thelabelsUrl
attribute.- Parameters:
labelsUrl
- The value for labelsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
languagesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder languagesUrl(@Nullable URI languagesUrl)
Initializes the value for thelanguagesUrl
attribute.- Parameters:
languagesUrl
- The value for languagesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
mergesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder mergesUrl(@Nullable URI mergesUrl)
Initializes the value for themergesUrl
attribute.- Parameters:
mergesUrl
- The value for mergesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
milestonesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder milestonesUrl(@Nullable String milestonesUrl)
Initializes the value for themilestonesUrl
attribute.- Parameters:
milestonesUrl
- The value for milestonesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
mirrorUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder mirrorUrl(URI mirrorUrl)
Initializes the optional valuemirrorUrl
to mirrorUrl.- Parameters:
mirrorUrl
- The value for mirrorUrl- Returns:
this
builder for chained invocation
-
mirrorUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder mirrorUrl(Optional<? extends URI> mirrorUrl)
Initializes the optional valuemirrorUrl
to mirrorUrl.- Parameters:
mirrorUrl
- The value for mirrorUrl- Returns:
this
builder for use in a chained invocation
-
notificationsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder notificationsUrl(@Nullable String notificationsUrl)
Initializes the value for thenotificationsUrl
attribute.- Parameters:
notificationsUrl
- The value for notificationsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
openIssues
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder openIssues(int openIssues)
Deprecated.Initializes the optional valueopenIssues
to openIssues.- Parameters:
openIssues
- The value for openIssues- Returns:
this
builder for chained invocation
-
openIssues
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder openIssues(Optional<Integer> openIssues)
Deprecated.Initializes the optional valueopenIssues
to openIssues.- Parameters:
openIssues
- The value for openIssues- Returns:
this
builder for use in a chained invocation
-
pullsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder pullsUrl(@Nullable String pullsUrl)
Initializes the value for thepullsUrl
attribute.- Parameters:
pullsUrl
- The value for pullsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
releasesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder releasesUrl(@Nullable String releasesUrl)
Initializes the value for thereleasesUrl
attribute.- Parameters:
releasesUrl
- The value for releasesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
sshUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder sshUrl(@Nullable String sshUrl)
Initializes the value for thesshUrl
attribute.- Parameters:
sshUrl
- The value for sshUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
stargazersUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder stargazersUrl(@Nullable URI stargazersUrl)
Initializes the value for thestargazersUrl
attribute.- Parameters:
stargazersUrl
- The value for stargazersUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
statusesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder statusesUrl(@Nullable String statusesUrl)
Initializes the value for thestatusesUrl
attribute.- Parameters:
statusesUrl
- The value for statusesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
subscribersUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder subscribersUrl(@Nullable URI subscribersUrl)
Initializes the value for thesubscribersUrl
attribute.- Parameters:
subscribersUrl
- The value for subscribersUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
subscriptionUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder subscriptionUrl(@Nullable URI subscriptionUrl)
Initializes the value for thesubscriptionUrl
attribute.- Parameters:
subscriptionUrl
- The value for subscriptionUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
svnUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder svnUrl(@Nullable URI svnUrl)
Initializes the value for thesvnUrl
attribute.- Parameters:
svnUrl
- The value for svnUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
tagsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder tagsUrl(@Nullable URI tagsUrl)
Initializes the value for thetagsUrl
attribute.- Parameters:
tagsUrl
- The value for tagsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
treesUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder treesUrl(@Nullable String treesUrl)
Initializes the value for thetreesUrl
attribute.- Parameters:
treesUrl
- The value for treesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
teamsUrl
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder teamsUrl(@Nullable String teamsUrl)
Initializes the value for theteamsUrl
attribute.- Parameters:
teamsUrl
- The value for teamsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
watchers
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder watchers(int watchers)
Deprecated.Initializes the optional valuewatchers
to watchers.- Parameters:
watchers
- The value for watchers- Returns:
this
builder for chained invocation
-
watchers
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder watchers(Optional<Integer> watchers)
Deprecated.Initializes the optional valuewatchers
to watchers.- Parameters:
watchers
- The value for watchers- Returns:
this
builder for use in a chained invocation
-
stargazers
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder stargazers(int stargazers)
Deprecated.Initializes the optional valuestargazers
to stargazers.- Parameters:
stargazers
- The value for stargazers- Returns:
this
builder for chained invocation
-
stargazers
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder stargazers(Optional<Integer> stargazers)
Deprecated.Initializes the optional valuestargazers
to stargazers.- Parameters:
stargazers
- The value for stargazers- Returns:
this
builder for use in a chained invocation
-
masterBranch
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder masterBranch(String masterBranch)
Deprecated.Initializes the optional valuemasterBranch
to masterBranch.- Parameters:
masterBranch
- The value for masterBranch- Returns:
this
builder for chained invocation
-
masterBranch
@CanIgnoreReturnValue @Deprecated public final ImmutablePushRepository.Builder masterBranch(Optional<String> masterBranch)
Deprecated.Initializes the optional valuemasterBranch
to masterBranch.- Parameters:
masterBranch
- The value for masterBranch- Returns:
this
builder for use in a chained invocation
-
owner
@CanIgnoreReturnValue public final ImmutablePushRepository.Builder owner(@Nullable Author owner)
Initializes the value for theowner
attribute.- Parameters:
owner
- The value for owner (can benull
)- Returns:
this
builder for use in a chained invocation
-
build
public ImmutablePushRepository build()
Builds a newImmutablePushRepository
.- Returns:
- An immutable instance of PushRepository
- Throws:
IllegalStateException
- if any required attributes are missing
-
-