Class ImmutableRepositoryUpdate
- java.lang.Object
-
- com.spotify.github.v3.repos.requests.ImmutableRepositoryUpdate
-
- All Implemented Interfaces:
RepositoryUpdate
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRepositoryUpdate extends Object implements RepositoryUpdate
Immutable implementation ofRepositoryUpdate.Use the builder to create immutable instances:
ImmutableRepositoryUpdate.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRepositoryUpdate.BuilderBuilds instances of typeImmutableRepositoryUpdate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Boolean>allowAutoMerge()Allow auto mergesOptional<Boolean>allowForking()Either true to allow private forks, or false to prevent private forks.Optional<Boolean>allowMergeCommit()Allow merge commitsOptional<Boolean>allowRebaseMerge()Allow rebase mergesOptional<Boolean>allowSquashMerge()Allow squash mergesOptional<Boolean>allowUpdateBranch()Either true to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.static ImmutableRepositoryUpdate.Builderbuilder()Creates a builder forImmutableRepositoryUpdate.static ImmutableRepositoryUpdatecopyOf(RepositoryUpdate instance)Creates an immutable copy of aRepositoryUpdatevalue.Optional<String>defaultBranch()Updates the default branch for this repository.Optional<Boolean>deleteBranchOnMerge()Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent automatic deletion.Optional<String>description()Descriptionbooleanequals(Object another)This instance is equal to all instances ofImmutableRepositoryUpdatethat have equal attribute values.Optional<Boolean>hasDownloads()Does it have downloadsinthashCode()Computes a hash code from attributes:description,allowAutoMerge,allowForking,allowSquashMerge,allowMergeCommit,allowRebaseMerge,allowUpdateBranch,defaultBranch,deleteBranchOnMerge,homepage,hasDownloads,hasIssues,hasWiki,hasPages,hasProjects,isArchived,isPrivate,isTemplate,squashMergeCommitMessage,squashMergeCommitTitle,mergeCommitMessage,mergeCommitTitle,teamId,visibility,webCommitSignoffRequired.Optional<Boolean>hasIssues()Does it have issuesOptional<Boolean>hasPages()Does it have pagesOptional<Boolean>hasProjects()Does it have projectsOptional<Boolean>hasWiki()Does it have wikiOptional<String>homepage()Homepage URLOptional<Boolean>isArchived()Whether to archive this repository.Optional<Boolean>isPrivate()Is it privateOptional<Boolean>isTemplate()Either true to make this repo available as a template repository or false to prevent it.Optional<String>mergeCommitMessage()The default value for a merge commit message.Optional<String>mergeCommitTitle()The default value for a merge commit title.Optional<String>squashMergeCommitMessage()The default value for a squash merge commit message:Optional<String>squashMergeCommitTitle()squash_merge_commit_title string The default value for a squash merge commit title:Optional<Integer>teamId()The id of the team that will be granted access to this repository.StringtoString()Prints the immutable valueRepositoryUpdatewith attribute values.Optional<String>visibility()The visibility of the repo.Optional<Boolean>webCommitSignoffRequired()Either true to require contributors to sign off on web-based commits, or false to not require contributors to sign off on web-based commits.ImmutableRepositoryUpdatewithAllowAutoMerge(boolean value)Copy the current immutable object by setting a present value for the optionalallowAutoMergeattribute.ImmutableRepositoryUpdatewithAllowAutoMerge(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theallowAutoMergeattribute.ImmutableRepositoryUpdatewithAllowForking(boolean value)Copy the current immutable object by setting a present value for the optionalallowForkingattribute.ImmutableRepositoryUpdatewithAllowForking(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theallowForkingattribute.ImmutableRepositoryUpdatewithAllowMergeCommit(boolean value)Copy the current immutable object by setting a present value for the optionalallowMergeCommitattribute.ImmutableRepositoryUpdatewithAllowMergeCommit(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theallowMergeCommitattribute.ImmutableRepositoryUpdatewithAllowRebaseMerge(boolean value)Copy the current immutable object by setting a present value for the optionalallowRebaseMergeattribute.ImmutableRepositoryUpdatewithAllowRebaseMerge(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theallowRebaseMergeattribute.ImmutableRepositoryUpdatewithAllowSquashMerge(boolean value)Copy the current immutable object by setting a present value for the optionalallowSquashMergeattribute.ImmutableRepositoryUpdatewithAllowSquashMerge(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theallowSquashMergeattribute.ImmutableRepositoryUpdatewithAllowUpdateBranch(boolean value)Copy the current immutable object by setting a present value for the optionalallowUpdateBranchattribute.ImmutableRepositoryUpdatewithAllowUpdateBranch(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theallowUpdateBranchattribute.ImmutableRepositoryUpdatewithDefaultBranch(String value)Copy the current immutable object by setting a present value for the optionaldefaultBranchattribute.ImmutableRepositoryUpdatewithDefaultBranch(Optional<String> optional)Copy the current immutable object by setting an optional value for thedefaultBranchattribute.ImmutableRepositoryUpdatewithDeleteBranchOnMerge(boolean value)Copy the current immutable object by setting a present value for the optionaldeleteBranchOnMergeattribute.ImmutableRepositoryUpdatewithDeleteBranchOnMerge(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for thedeleteBranchOnMergeattribute.ImmutableRepositoryUpdatewithDescription(String value)Copy the current immutable object by setting a present value for the optionaldescriptionattribute.ImmutableRepositoryUpdatewithDescription(Optional<String> optional)Copy the current immutable object by setting an optional value for thedescriptionattribute.ImmutableRepositoryUpdatewithHasDownloads(boolean value)Copy the current immutable object by setting a present value for the optionalhasDownloadsattribute.ImmutableRepositoryUpdatewithHasDownloads(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for thehasDownloadsattribute.ImmutableRepositoryUpdatewithHasIssues(boolean value)Copy the current immutable object by setting a present value for the optionalhasIssuesattribute.ImmutableRepositoryUpdatewithHasIssues(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for thehasIssuesattribute.ImmutableRepositoryUpdatewithHasPages(boolean value)Copy the current immutable object by setting a present value for the optionalhasPagesattribute.ImmutableRepositoryUpdatewithHasPages(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for thehasPagesattribute.ImmutableRepositoryUpdatewithHasProjects(boolean value)Copy the current immutable object by setting a present value for the optionalhasProjectsattribute.ImmutableRepositoryUpdatewithHasProjects(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for thehasProjectsattribute.ImmutableRepositoryUpdatewithHasWiki(boolean value)Copy the current immutable object by setting a present value for the optionalhasWikiattribute.ImmutableRepositoryUpdatewithHasWiki(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for thehasWikiattribute.ImmutableRepositoryUpdatewithHomepage(String value)Copy the current immutable object by setting a present value for the optionalhomepageattribute.ImmutableRepositoryUpdatewithHomepage(Optional<String> optional)Copy the current immutable object by setting an optional value for thehomepageattribute.ImmutableRepositoryUpdatewithIsArchived(boolean value)Copy the current immutable object by setting a present value for the optionalisArchivedattribute.ImmutableRepositoryUpdatewithIsArchived(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theisArchivedattribute.ImmutableRepositoryUpdatewithIsPrivate(boolean value)Copy the current immutable object by setting a present value for the optionalisPrivateattribute.ImmutableRepositoryUpdatewithIsPrivate(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theisPrivateattribute.ImmutableRepositoryUpdatewithIsTemplate(boolean value)Copy the current immutable object by setting a present value for the optionalisTemplateattribute.ImmutableRepositoryUpdatewithIsTemplate(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for theisTemplateattribute.ImmutableRepositoryUpdatewithMergeCommitMessage(String value)Copy the current immutable object by setting a present value for the optionalmergeCommitMessageattribute.ImmutableRepositoryUpdatewithMergeCommitMessage(Optional<String> optional)Copy the current immutable object by setting an optional value for themergeCommitMessageattribute.ImmutableRepositoryUpdatewithMergeCommitTitle(String value)Copy the current immutable object by setting a present value for the optionalmergeCommitTitleattribute.ImmutableRepositoryUpdatewithMergeCommitTitle(Optional<String> optional)Copy the current immutable object by setting an optional value for themergeCommitTitleattribute.ImmutableRepositoryUpdatewithSquashMergeCommitMessage(String value)Copy the current immutable object by setting a present value for the optionalsquashMergeCommitMessageattribute.ImmutableRepositoryUpdatewithSquashMergeCommitMessage(Optional<String> optional)Copy the current immutable object by setting an optional value for thesquashMergeCommitMessageattribute.ImmutableRepositoryUpdatewithSquashMergeCommitTitle(String value)Copy the current immutable object by setting a present value for the optionalsquashMergeCommitTitleattribute.ImmutableRepositoryUpdatewithSquashMergeCommitTitle(Optional<String> optional)Copy the current immutable object by setting an optional value for thesquashMergeCommitTitleattribute.ImmutableRepositoryUpdatewithTeamId(int value)Copy the current immutable object by setting a present value for the optionalteamIdattribute.ImmutableRepositoryUpdatewithTeamId(Optional<Integer> optional)Copy the current immutable object by setting an optional value for theteamIdattribute.ImmutableRepositoryUpdatewithVisibility(String value)Copy the current immutable object by setting a present value for the optionalvisibilityattribute.ImmutableRepositoryUpdatewithVisibility(Optional<String> optional)Copy the current immutable object by setting an optional value for thevisibilityattribute.ImmutableRepositoryUpdatewithWebCommitSignoffRequired(boolean value)Copy the current immutable object by setting a present value for the optionalwebCommitSignoffRequiredattribute.ImmutableRepositoryUpdatewithWebCommitSignoffRequired(Optional<Boolean> optional)Copy the current immutable object by setting an optional value for thewebCommitSignoffRequiredattribute.
-
-
-
Method Detail
-
description
public Optional<String> description()
Description- Specified by:
descriptionin interfaceRepositoryUpdate
-
allowAutoMerge
public Optional<Boolean> allowAutoMerge()
Allow auto merges- Specified by:
allowAutoMergein interfaceRepositoryUpdate
-
allowForking
public Optional<Boolean> allowForking()
Either true to allow private forks, or false to prevent private forks.Default: false
- Specified by:
allowForkingin interfaceRepositoryUpdate
-
allowSquashMerge
public Optional<Boolean> allowSquashMerge()
Allow squash merges- Specified by:
allowSquashMergein interfaceRepositoryUpdate
-
allowMergeCommit
public Optional<Boolean> allowMergeCommit()
Allow merge commits- Specified by:
allowMergeCommitin interfaceRepositoryUpdate
-
allowRebaseMerge
public Optional<Boolean> allowRebaseMerge()
Allow rebase merges- Specified by:
allowRebaseMergein interfaceRepositoryUpdate
-
allowUpdateBranch
public Optional<Boolean> allowUpdateBranch()
Either true to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.Default: false
- Specified by:
allowUpdateBranchin interfaceRepositoryUpdate
-
defaultBranch
public Optional<String> defaultBranch()
Updates the default branch for this repository.- Specified by:
defaultBranchin interfaceRepositoryUpdate
-
deleteBranchOnMerge
public Optional<Boolean> deleteBranchOnMerge()
Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent automatic deletion.Default: false
- Specified by:
deleteBranchOnMergein interfaceRepositoryUpdate
-
homepage
public Optional<String> homepage()
Homepage URL- Specified by:
homepagein interfaceRepositoryUpdate
-
hasDownloads
public Optional<Boolean> hasDownloads()
Does it have downloads- Specified by:
hasDownloadsin interfaceRepositoryUpdate
-
hasIssues
public Optional<Boolean> hasIssues()
Does it have issues- Specified by:
hasIssuesin interfaceRepositoryUpdate
-
hasWiki
public Optional<Boolean> hasWiki()
Does it have wiki- Specified by:
hasWikiin interfaceRepositoryUpdate
-
hasPages
public Optional<Boolean> hasPages()
Does it have pages- Specified by:
hasPagesin interfaceRepositoryUpdate
-
hasProjects
public Optional<Boolean> hasProjects()
Does it have projects- Specified by:
hasProjectsin interfaceRepositoryUpdate
-
isArchived
public Optional<Boolean> isArchived()
Whether to archive this repository. false will unarchive a previously archived repository.Default: false
- Specified by:
isArchivedin interfaceRepositoryUpdate
-
isPrivate
public Optional<Boolean> isPrivate()
Is it private- Specified by:
isPrivatein interfaceRepositoryUpdate
-
isTemplate
public Optional<Boolean> isTemplate()
Either true to make this repo available as a template repository or false to prevent it. Default: false- Specified by:
isTemplatein interfaceRepositoryUpdate
-
squashMergeCommitMessage
public Optional<String> squashMergeCommitMessage()
The default value for a squash merge commit message:PR_BODY - default to the pull request's body. COMMIT_MESSAGES - default to the branch's commit messages. BLANK - default to a blank commit message. Can be one of: PR_BODY, COMMIT_MESSAGES, BLANK
- Specified by:
squashMergeCommitMessagein interfaceRepositoryUpdate
-
squashMergeCommitTitle
public Optional<String> squashMergeCommitTitle()
squash_merge_commit_title string The default value for a squash merge commit title:PR_TITLE - default to the pull request's title. COMMIT_OR_PR_TITLE - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). Can be one of: PR_TITLE, COMMIT_OR_PR_TITLE
- Specified by:
squashMergeCommitTitlein interfaceRepositoryUpdate
-
mergeCommitMessage
public Optional<String> mergeCommitMessage()
The default value for a merge commit message.PR_TITLE - default to the pull request's title. PR_BODY - default to the pull request's body. BLANK - default to a blank commit message.
- Specified by:
mergeCommitMessagein interfaceRepositoryUpdate
-
mergeCommitTitle
public Optional<String> mergeCommitTitle()
The default value for a merge commit title.PR_TITLE - default to the pull request's title. MERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). Can be one of: PR_TITLE, MERGE_MESSAGE
- Specified by:
mergeCommitTitlein interfaceRepositoryUpdate
-
teamId
public Optional<Integer> teamId()
The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. Default: false- Specified by:
teamIdin interfaceRepositoryUpdate
-
visibility
public Optional<String> visibility()
The visibility of the repo. Can be one of `public`, `private`, `internal`- Specified by:
visibilityin interfaceRepositoryUpdate
-
webCommitSignoffRequired
public Optional<Boolean> webCommitSignoffRequired()
Either true to require contributors to sign off on web-based commits, or false to not require contributors to sign off on web-based commits.Default: false
- Specified by:
webCommitSignoffRequiredin interfaceRepositoryUpdate
-
withDescription
public final ImmutableRepositoryUpdate withDescription(String value)
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
public final ImmutableRepositoryUpdate withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for description- Returns:
- A modified copy of
thisobject
-
withAllowAutoMerge
public final ImmutableRepositoryUpdate withAllowAutoMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowAutoMergeattribute.- Parameters:
value- The value for allowAutoMerge- Returns:
- A modified copy of
thisobject
-
withAllowAutoMerge
public final ImmutableRepositoryUpdate withAllowAutoMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowAutoMergeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for allowAutoMerge- Returns:
- A modified copy of
thisobject
-
withAllowForking
public final ImmutableRepositoryUpdate withAllowForking(boolean value)
Copy the current immutable object by setting a present value for the optionalallowForkingattribute.- Parameters:
value- The value for allowForking- Returns:
- A modified copy of
thisobject
-
withAllowForking
public final ImmutableRepositoryUpdate withAllowForking(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowForkingattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for allowForking- Returns:
- A modified copy of
thisobject
-
withAllowSquashMerge
public final ImmutableRepositoryUpdate withAllowSquashMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowSquashMergeattribute.- Parameters:
value- The value for allowSquashMerge- Returns:
- A modified copy of
thisobject
-
withAllowSquashMerge
public final ImmutableRepositoryUpdate withAllowSquashMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowSquashMergeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for allowSquashMerge- Returns:
- A modified copy of
thisobject
-
withAllowMergeCommit
public final ImmutableRepositoryUpdate withAllowMergeCommit(boolean value)
Copy the current immutable object by setting a present value for the optionalallowMergeCommitattribute.- Parameters:
value- The value for allowMergeCommit- Returns:
- A modified copy of
thisobject
-
withAllowMergeCommit
public final ImmutableRepositoryUpdate withAllowMergeCommit(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowMergeCommitattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for allowMergeCommit- Returns:
- A modified copy of
thisobject
-
withAllowRebaseMerge
public final ImmutableRepositoryUpdate withAllowRebaseMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowRebaseMergeattribute.- Parameters:
value- The value for allowRebaseMerge- Returns:
- A modified copy of
thisobject
-
withAllowRebaseMerge
public final ImmutableRepositoryUpdate withAllowRebaseMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowRebaseMergeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for allowRebaseMerge- Returns:
- A modified copy of
thisobject
-
withAllowUpdateBranch
public final ImmutableRepositoryUpdate withAllowUpdateBranch(boolean value)
Copy the current immutable object by setting a present value for the optionalallowUpdateBranchattribute.- Parameters:
value- The value for allowUpdateBranch- Returns:
- A modified copy of
thisobject
-
withAllowUpdateBranch
public final ImmutableRepositoryUpdate withAllowUpdateBranch(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowUpdateBranchattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for allowUpdateBranch- Returns:
- A modified copy of
thisobject
-
withDefaultBranch
public final ImmutableRepositoryUpdate withDefaultBranch(String value)
Copy the current immutable object by setting a present value for the optionaldefaultBranchattribute.- Parameters:
value- The value for defaultBranch- Returns:
- A modified copy of
thisobject
-
withDefaultBranch
public final ImmutableRepositoryUpdate withDefaultBranch(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedefaultBranchattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for defaultBranch- Returns:
- A modified copy of
thisobject
-
withDeleteBranchOnMerge
public final ImmutableRepositoryUpdate withDeleteBranchOnMerge(boolean value)
Copy the current immutable object by setting a present value for the optionaldeleteBranchOnMergeattribute.- Parameters:
value- The value for deleteBranchOnMerge- Returns:
- A modified copy of
thisobject
-
withDeleteBranchOnMerge
public final ImmutableRepositoryUpdate withDeleteBranchOnMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thedeleteBranchOnMergeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for deleteBranchOnMerge- Returns:
- A modified copy of
thisobject
-
withHomepage
public final ImmutableRepositoryUpdate withHomepage(String value)
Copy the current immutable object by setting a present value for the optionalhomepageattribute.- Parameters:
value- The value for homepage- Returns:
- A modified copy of
thisobject
-
withHomepage
public final ImmutableRepositoryUpdate withHomepage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thehomepageattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for homepage- Returns:
- A modified copy of
thisobject
-
withHasDownloads
public final ImmutableRepositoryUpdate withHasDownloads(boolean value)
Copy the current immutable object by setting a present value for the optionalhasDownloadsattribute.- Parameters:
value- The value for hasDownloads- Returns:
- A modified copy of
thisobject
-
withHasDownloads
public final ImmutableRepositoryUpdate withHasDownloads(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasDownloadsattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for hasDownloads- Returns:
- A modified copy of
thisobject
-
withHasIssues
public final ImmutableRepositoryUpdate withHasIssues(boolean value)
Copy the current immutable object by setting a present value for the optionalhasIssuesattribute.- Parameters:
value- The value for hasIssues- Returns:
- A modified copy of
thisobject
-
withHasIssues
public final ImmutableRepositoryUpdate withHasIssues(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasIssuesattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for hasIssues- Returns:
- A modified copy of
thisobject
-
withHasWiki
public final ImmutableRepositoryUpdate withHasWiki(boolean value)
Copy the current immutable object by setting a present value for the optionalhasWikiattribute.- Parameters:
value- The value for hasWiki- Returns:
- A modified copy of
thisobject
-
withHasWiki
public final ImmutableRepositoryUpdate withHasWiki(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasWikiattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for hasWiki- Returns:
- A modified copy of
thisobject
-
withHasPages
public final ImmutableRepositoryUpdate withHasPages(boolean value)
Copy the current immutable object by setting a present value for the optionalhasPagesattribute.- Parameters:
value- The value for hasPages- Returns:
- A modified copy of
thisobject
-
withHasPages
public final ImmutableRepositoryUpdate withHasPages(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasPagesattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for hasPages- Returns:
- A modified copy of
thisobject
-
withHasProjects
public final ImmutableRepositoryUpdate withHasProjects(boolean value)
Copy the current immutable object by setting a present value for the optionalhasProjectsattribute.- Parameters:
value- The value for hasProjects- Returns:
- A modified copy of
thisobject
-
withHasProjects
public final ImmutableRepositoryUpdate withHasProjects(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasProjectsattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for hasProjects- Returns:
- A modified copy of
thisobject
-
withIsArchived
public final ImmutableRepositoryUpdate withIsArchived(boolean value)
Copy the current immutable object by setting a present value for the optionalisArchivedattribute.- Parameters:
value- The value for isArchived- Returns:
- A modified copy of
thisobject
-
withIsArchived
public final ImmutableRepositoryUpdate withIsArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisArchivedattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for isArchived- Returns:
- A modified copy of
thisobject
-
withIsPrivate
public final ImmutableRepositoryUpdate withIsPrivate(boolean value)
Copy the current immutable object by setting a present value for the optionalisPrivateattribute.- Parameters:
value- The value for isPrivate- Returns:
- A modified copy of
thisobject
-
withIsPrivate
public final ImmutableRepositoryUpdate withIsPrivate(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisPrivateattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for isPrivate- Returns:
- A modified copy of
thisobject
-
withIsTemplate
public final ImmutableRepositoryUpdate withIsTemplate(boolean value)
Copy the current immutable object by setting a present value for the optionalisTemplateattribute.- Parameters:
value- The value for isTemplate- Returns:
- A modified copy of
thisobject
-
withIsTemplate
public final ImmutableRepositoryUpdate withIsTemplate(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisTemplateattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for isTemplate- Returns:
- A modified copy of
thisobject
-
withSquashMergeCommitMessage
public final ImmutableRepositoryUpdate withSquashMergeCommitMessage(String value)
Copy the current immutable object by setting a present value for the optionalsquashMergeCommitMessageattribute.- Parameters:
value- The value for squashMergeCommitMessage- Returns:
- A modified copy of
thisobject
-
withSquashMergeCommitMessage
public final ImmutableRepositoryUpdate withSquashMergeCommitMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesquashMergeCommitMessageattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for squashMergeCommitMessage- Returns:
- A modified copy of
thisobject
-
withSquashMergeCommitTitle
public final ImmutableRepositoryUpdate withSquashMergeCommitTitle(String value)
Copy the current immutable object by setting a present value for the optionalsquashMergeCommitTitleattribute.- Parameters:
value- The value for squashMergeCommitTitle- Returns:
- A modified copy of
thisobject
-
withSquashMergeCommitTitle
public final ImmutableRepositoryUpdate withSquashMergeCommitTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesquashMergeCommitTitleattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for squashMergeCommitTitle- Returns:
- A modified copy of
thisobject
-
withMergeCommitMessage
public final ImmutableRepositoryUpdate withMergeCommitMessage(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitMessageattribute.- Parameters:
value- The value for mergeCommitMessage- Returns:
- A modified copy of
thisobject
-
withMergeCommitMessage
public final ImmutableRepositoryUpdate withMergeCommitMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitMessageattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for mergeCommitMessage- Returns:
- A modified copy of
thisobject
-
withMergeCommitTitle
public final ImmutableRepositoryUpdate withMergeCommitTitle(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitTitleattribute.- Parameters:
value- The value for mergeCommitTitle- Returns:
- A modified copy of
thisobject
-
withMergeCommitTitle
public final ImmutableRepositoryUpdate withMergeCommitTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitTitleattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for mergeCommitTitle- Returns:
- A modified copy of
thisobject
-
withTeamId
public final ImmutableRepositoryUpdate withTeamId(int value)
Copy the current immutable object by setting a present value for the optionalteamIdattribute.- Parameters:
value- The value for teamId- Returns:
- A modified copy of
thisobject
-
withTeamId
public final ImmutableRepositoryUpdate withTeamId(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for theteamIdattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for teamId- Returns:
- A modified copy of
thisobject
-
withVisibility
public final ImmutableRepositoryUpdate withVisibility(String value)
Copy the current immutable object by setting a present value for the optionalvisibilityattribute.- Parameters:
value- The value for visibility- Returns:
- A modified copy of
thisobject
-
withVisibility
public final ImmutableRepositoryUpdate withVisibility(Optional<String> optional)
Copy the current immutable object by setting an optional value for thevisibilityattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for visibility- Returns:
- A modified copy of
thisobject
-
withWebCommitSignoffRequired
public final ImmutableRepositoryUpdate withWebCommitSignoffRequired(boolean value)
Copy the current immutable object by setting a present value for the optionalwebCommitSignoffRequiredattribute.- Parameters:
value- The value for webCommitSignoffRequired- Returns:
- A modified copy of
thisobject
-
withWebCommitSignoffRequired
public final ImmutableRepositoryUpdate withWebCommitSignoffRequired(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thewebCommitSignoffRequiredattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for webCommitSignoffRequired- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableRepositoryUpdatethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:description,allowAutoMerge,allowForking,allowSquashMerge,allowMergeCommit,allowRebaseMerge,allowUpdateBranch,defaultBranch,deleteBranchOnMerge,homepage,hasDownloads,hasIssues,hasWiki,hasPages,hasProjects,isArchived,isPrivate,isTemplate,squashMergeCommitMessage,squashMergeCommitTitle,mergeCommitMessage,mergeCommitTitle,teamId,visibility,webCommitSignoffRequired.
-
toString
public String toString()
Prints the immutable valueRepositoryUpdatewith attribute values.
-
copyOf
public static ImmutableRepositoryUpdate copyOf(RepositoryUpdate instance)
Creates an immutable copy of aRepositoryUpdatevalue. 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 RepositoryUpdate instance
-
builder
public static ImmutableRepositoryUpdate.Builder builder()
Creates a builder forImmutableRepositoryUpdate.ImmutableRepositoryUpdate.builder() .description(String) // optionaldescription.allowAutoMerge(Boolean) // optionalallowAutoMerge.allowForking(Boolean) // optionalallowForking.allowSquashMerge(Boolean) // optionalallowSquashMerge.allowMergeCommit(Boolean) // optionalallowMergeCommit.allowRebaseMerge(Boolean) // optionalallowRebaseMerge.allowUpdateBranch(Boolean) // optionalallowUpdateBranch.defaultBranch(String) // optionaldefaultBranch.deleteBranchOnMerge(Boolean) // optionaldeleteBranchOnMerge.homepage(String) // optionalhomepage.hasDownloads(Boolean) // optionalhasDownloads.hasIssues(Boolean) // optionalhasIssues.hasWiki(Boolean) // optionalhasWiki.hasPages(Boolean) // optionalhasPages.hasProjects(Boolean) // optionalhasProjects.isArchived(Boolean) // optionalisArchived.isPrivate(Boolean) // optionalisPrivate.isTemplate(Boolean) // optionalisTemplate.squashMergeCommitMessage(String) // optionalsquashMergeCommitMessage.squashMergeCommitTitle(String) // optionalsquashMergeCommitTitle.mergeCommitMessage(String) // optionalmergeCommitMessage.mergeCommitTitle(String) // optionalmergeCommitTitle.teamId(Integer) // optionalteamId.visibility(String) // optionalvisibility.webCommitSignoffRequired(Boolean) // optionalwebCommitSignoffRequired.build();- Returns:
- A new ImmutableRepositoryUpdate builder
-
-