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 class
ImmutableRepositoryUpdate.Builder
Builds 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.Builder
builder()
Creates a builder forImmutableRepositoryUpdate
.static ImmutableRepositoryUpdate
copyOf(RepositoryUpdate instance)
Creates an immutable copy of aRepositoryUpdate
value.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()
Descriptionboolean
equals(Object another)
This instance is equal to all instances ofImmutableRepositoryUpdate
that have equal attribute values.Optional<Boolean>
hasDownloads()
Does it have downloadsint
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
.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.String
toString()
Prints the immutable valueRepositoryUpdate
with 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.ImmutableRepositoryUpdate
withAllowAutoMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowAutoMerge
attribute.ImmutableRepositoryUpdate
withAllowAutoMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowAutoMerge
attribute.ImmutableRepositoryUpdate
withAllowForking(boolean value)
Copy the current immutable object by setting a present value for the optionalallowForking
attribute.ImmutableRepositoryUpdate
withAllowForking(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowForking
attribute.ImmutableRepositoryUpdate
withAllowMergeCommit(boolean value)
Copy the current immutable object by setting a present value for the optionalallowMergeCommit
attribute.ImmutableRepositoryUpdate
withAllowMergeCommit(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowMergeCommit
attribute.ImmutableRepositoryUpdate
withAllowRebaseMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowRebaseMerge
attribute.ImmutableRepositoryUpdate
withAllowRebaseMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowRebaseMerge
attribute.ImmutableRepositoryUpdate
withAllowSquashMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowSquashMerge
attribute.ImmutableRepositoryUpdate
withAllowSquashMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowSquashMerge
attribute.ImmutableRepositoryUpdate
withAllowUpdateBranch(boolean value)
Copy the current immutable object by setting a present value for the optionalallowUpdateBranch
attribute.ImmutableRepositoryUpdate
withAllowUpdateBranch(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowUpdateBranch
attribute.ImmutableRepositoryUpdate
withDefaultBranch(String value)
Copy the current immutable object by setting a present value for the optionaldefaultBranch
attribute.ImmutableRepositoryUpdate
withDefaultBranch(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedefaultBranch
attribute.ImmutableRepositoryUpdate
withDeleteBranchOnMerge(boolean value)
Copy the current immutable object by setting a present value for the optionaldeleteBranchOnMerge
attribute.ImmutableRepositoryUpdate
withDeleteBranchOnMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thedeleteBranchOnMerge
attribute.ImmutableRepositoryUpdate
withDescription(String value)
Copy the current immutable object by setting a present value for the optionaldescription
attribute.ImmutableRepositoryUpdate
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedescription
attribute.ImmutableRepositoryUpdate
withHasDownloads(boolean value)
Copy the current immutable object by setting a present value for the optionalhasDownloads
attribute.ImmutableRepositoryUpdate
withHasDownloads(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasDownloads
attribute.ImmutableRepositoryUpdate
withHasIssues(boolean value)
Copy the current immutable object by setting a present value for the optionalhasIssues
attribute.ImmutableRepositoryUpdate
withHasIssues(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasIssues
attribute.ImmutableRepositoryUpdate
withHasPages(boolean value)
Copy the current immutable object by setting a present value for the optionalhasPages
attribute.ImmutableRepositoryUpdate
withHasPages(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasPages
attribute.ImmutableRepositoryUpdate
withHasProjects(boolean value)
Copy the current immutable object by setting a present value for the optionalhasProjects
attribute.ImmutableRepositoryUpdate
withHasProjects(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasProjects
attribute.ImmutableRepositoryUpdate
withHasWiki(boolean value)
Copy the current immutable object by setting a present value for the optionalhasWiki
attribute.ImmutableRepositoryUpdate
withHasWiki(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasWiki
attribute.ImmutableRepositoryUpdate
withHomepage(String value)
Copy the current immutable object by setting a present value for the optionalhomepage
attribute.ImmutableRepositoryUpdate
withHomepage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thehomepage
attribute.ImmutableRepositoryUpdate
withIsArchived(boolean value)
Copy the current immutable object by setting a present value for the optionalisArchived
attribute.ImmutableRepositoryUpdate
withIsArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisArchived
attribute.ImmutableRepositoryUpdate
withIsPrivate(boolean value)
Copy the current immutable object by setting a present value for the optionalisPrivate
attribute.ImmutableRepositoryUpdate
withIsPrivate(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisPrivate
attribute.ImmutableRepositoryUpdate
withIsTemplate(boolean value)
Copy the current immutable object by setting a present value for the optionalisTemplate
attribute.ImmutableRepositoryUpdate
withIsTemplate(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisTemplate
attribute.ImmutableRepositoryUpdate
withMergeCommitMessage(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitMessage
attribute.ImmutableRepositoryUpdate
withMergeCommitMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitMessage
attribute.ImmutableRepositoryUpdate
withMergeCommitTitle(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitTitle
attribute.ImmutableRepositoryUpdate
withMergeCommitTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitTitle
attribute.ImmutableRepositoryUpdate
withSquashMergeCommitMessage(String value)
Copy the current immutable object by setting a present value for the optionalsquashMergeCommitMessage
attribute.ImmutableRepositoryUpdate
withSquashMergeCommitMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesquashMergeCommitMessage
attribute.ImmutableRepositoryUpdate
withSquashMergeCommitTitle(String value)
Copy the current immutable object by setting a present value for the optionalsquashMergeCommitTitle
attribute.ImmutableRepositoryUpdate
withSquashMergeCommitTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesquashMergeCommitTitle
attribute.ImmutableRepositoryUpdate
withTeamId(int value)
Copy the current immutable object by setting a present value for the optionalteamId
attribute.ImmutableRepositoryUpdate
withTeamId(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for theteamId
attribute.ImmutableRepositoryUpdate
withVisibility(String value)
Copy the current immutable object by setting a present value for the optionalvisibility
attribute.ImmutableRepositoryUpdate
withVisibility(Optional<String> optional)
Copy the current immutable object by setting an optional value for thevisibility
attribute.ImmutableRepositoryUpdate
withWebCommitSignoffRequired(boolean value)
Copy the current immutable object by setting a present value for the optionalwebCommitSignoffRequired
attribute.ImmutableRepositoryUpdate
withWebCommitSignoffRequired(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thewebCommitSignoffRequired
attribute.
-
-
-
Method Detail
-
description
public Optional<String> description()
Description- Specified by:
description
in interfaceRepositoryUpdate
-
allowAutoMerge
public Optional<Boolean> allowAutoMerge()
Allow auto merges- Specified by:
allowAutoMerge
in interfaceRepositoryUpdate
-
allowForking
public Optional<Boolean> allowForking()
Either true to allow private forks, or false to prevent private forks.Default: false
- Specified by:
allowForking
in interfaceRepositoryUpdate
-
allowSquashMerge
public Optional<Boolean> allowSquashMerge()
Allow squash merges- Specified by:
allowSquashMerge
in interfaceRepositoryUpdate
-
allowMergeCommit
public Optional<Boolean> allowMergeCommit()
Allow merge commits- Specified by:
allowMergeCommit
in interfaceRepositoryUpdate
-
allowRebaseMerge
public Optional<Boolean> allowRebaseMerge()
Allow rebase merges- Specified by:
allowRebaseMerge
in 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:
allowUpdateBranch
in interfaceRepositoryUpdate
-
defaultBranch
public Optional<String> defaultBranch()
Updates the default branch for this repository.- Specified by:
defaultBranch
in 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:
deleteBranchOnMerge
in interfaceRepositoryUpdate
-
homepage
public Optional<String> homepage()
Homepage URL- Specified by:
homepage
in interfaceRepositoryUpdate
-
hasDownloads
public Optional<Boolean> hasDownloads()
Does it have downloads- Specified by:
hasDownloads
in interfaceRepositoryUpdate
-
hasIssues
public Optional<Boolean> hasIssues()
Does it have issues- Specified by:
hasIssues
in interfaceRepositoryUpdate
-
hasWiki
public Optional<Boolean> hasWiki()
Does it have wiki- Specified by:
hasWiki
in interfaceRepositoryUpdate
-
hasPages
public Optional<Boolean> hasPages()
Does it have pages- Specified by:
hasPages
in interfaceRepositoryUpdate
-
hasProjects
public Optional<Boolean> hasProjects()
Does it have projects- Specified by:
hasProjects
in interfaceRepositoryUpdate
-
isArchived
public Optional<Boolean> isArchived()
Whether to archive this repository. false will unarchive a previously archived repository.Default: false
- Specified by:
isArchived
in interfaceRepositoryUpdate
-
isPrivate
public Optional<Boolean> isPrivate()
Is it private- Specified by:
isPrivate
in 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:
isTemplate
in 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:
squashMergeCommitMessage
in 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:
squashMergeCommitTitle
in 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:
mergeCommitMessage
in 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:
mergeCommitTitle
in 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:
teamId
in interfaceRepositoryUpdate
-
visibility
public Optional<String> visibility()
The visibility of the repo. Can be one of `public`, `private`, `internal`- Specified by:
visibility
in 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:
webCommitSignoffRequired
in interfaceRepositoryUpdate
-
withDescription
public final ImmutableRepositoryUpdate 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 ImmutableRepositoryUpdate 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
-
withAllowAutoMerge
public final ImmutableRepositoryUpdate withAllowAutoMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowAutoMerge
attribute.- Parameters:
value
- The value for allowAutoMerge- Returns:
- A modified copy of
this
object
-
withAllowAutoMerge
public final ImmutableRepositoryUpdate withAllowAutoMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowAutoMerge
attribute. 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
this
object
-
withAllowForking
public final ImmutableRepositoryUpdate withAllowForking(boolean value)
Copy the current immutable object by setting a present value for the optionalallowForking
attribute.- Parameters:
value
- The value for allowForking- Returns:
- A modified copy of
this
object
-
withAllowForking
public final ImmutableRepositoryUpdate withAllowForking(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowForking
attribute. 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
this
object
-
withAllowSquashMerge
public final ImmutableRepositoryUpdate withAllowSquashMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowSquashMerge
attribute.- Parameters:
value
- The value for allowSquashMerge- Returns:
- A modified copy of
this
object
-
withAllowSquashMerge
public final ImmutableRepositoryUpdate withAllowSquashMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowSquashMerge
attribute. 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
this
object
-
withAllowMergeCommit
public final ImmutableRepositoryUpdate withAllowMergeCommit(boolean value)
Copy the current immutable object by setting a present value for the optionalallowMergeCommit
attribute.- Parameters:
value
- The value for allowMergeCommit- Returns:
- A modified copy of
this
object
-
withAllowMergeCommit
public final ImmutableRepositoryUpdate withAllowMergeCommit(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowMergeCommit
attribute. 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
this
object
-
withAllowRebaseMerge
public final ImmutableRepositoryUpdate withAllowRebaseMerge(boolean value)
Copy the current immutable object by setting a present value for the optionalallowRebaseMerge
attribute.- Parameters:
value
- The value for allowRebaseMerge- Returns:
- A modified copy of
this
object
-
withAllowRebaseMerge
public final ImmutableRepositoryUpdate withAllowRebaseMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowRebaseMerge
attribute. 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
this
object
-
withAllowUpdateBranch
public final ImmutableRepositoryUpdate withAllowUpdateBranch(boolean value)
Copy the current immutable object by setting a present value for the optionalallowUpdateBranch
attribute.- Parameters:
value
- The value for allowUpdateBranch- Returns:
- A modified copy of
this
object
-
withAllowUpdateBranch
public final ImmutableRepositoryUpdate withAllowUpdateBranch(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theallowUpdateBranch
attribute. 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
this
object
-
withDefaultBranch
public final ImmutableRepositoryUpdate withDefaultBranch(String value)
Copy the current immutable object by setting a present value for the optionaldefaultBranch
attribute.- Parameters:
value
- The value for defaultBranch- Returns:
- A modified copy of
this
object
-
withDefaultBranch
public final ImmutableRepositoryUpdate withDefaultBranch(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedefaultBranch
attribute. 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
this
object
-
withDeleteBranchOnMerge
public final ImmutableRepositoryUpdate withDeleteBranchOnMerge(boolean value)
Copy the current immutable object by setting a present value for the optionaldeleteBranchOnMerge
attribute.- Parameters:
value
- The value for deleteBranchOnMerge- Returns:
- A modified copy of
this
object
-
withDeleteBranchOnMerge
public final ImmutableRepositoryUpdate withDeleteBranchOnMerge(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thedeleteBranchOnMerge
attribute. 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
this
object
-
withHomepage
public final ImmutableRepositoryUpdate 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 ImmutableRepositoryUpdate 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
-
withHasDownloads
public final ImmutableRepositoryUpdate withHasDownloads(boolean value)
Copy the current immutable object by setting a present value for the optionalhasDownloads
attribute.- Parameters:
value
- The value for hasDownloads- Returns:
- A modified copy of
this
object
-
withHasDownloads
public final ImmutableRepositoryUpdate withHasDownloads(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasDownloads
attribute. 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
this
object
-
withHasIssues
public final ImmutableRepositoryUpdate withHasIssues(boolean value)
Copy the current immutable object by setting a present value for the optionalhasIssues
attribute.- Parameters:
value
- The value for hasIssues- Returns:
- A modified copy of
this
object
-
withHasIssues
public final ImmutableRepositoryUpdate withHasIssues(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasIssues
attribute. 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
this
object
-
withHasWiki
public final ImmutableRepositoryUpdate withHasWiki(boolean value)
Copy the current immutable object by setting a present value for the optionalhasWiki
attribute.- Parameters:
value
- The value for hasWiki- Returns:
- A modified copy of
this
object
-
withHasWiki
public final ImmutableRepositoryUpdate withHasWiki(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasWiki
attribute. 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
this
object
-
withHasPages
public final ImmutableRepositoryUpdate withHasPages(boolean value)
Copy the current immutable object by setting a present value for the optionalhasPages
attribute.- Parameters:
value
- The value for hasPages- Returns:
- A modified copy of
this
object
-
withHasPages
public final ImmutableRepositoryUpdate withHasPages(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasPages
attribute. 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
this
object
-
withHasProjects
public final ImmutableRepositoryUpdate withHasProjects(boolean value)
Copy the current immutable object by setting a present value for the optionalhasProjects
attribute.- Parameters:
value
- The value for hasProjects- Returns:
- A modified copy of
this
object
-
withHasProjects
public final ImmutableRepositoryUpdate withHasProjects(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thehasProjects
attribute. 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
this
object
-
withIsArchived
public final ImmutableRepositoryUpdate withIsArchived(boolean value)
Copy the current immutable object by setting a present value for the optionalisArchived
attribute.- Parameters:
value
- The value for isArchived- Returns:
- A modified copy of
this
object
-
withIsArchived
public final ImmutableRepositoryUpdate withIsArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisArchived
attribute. 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
this
object
-
withIsPrivate
public final ImmutableRepositoryUpdate withIsPrivate(boolean value)
Copy the current immutable object by setting a present value for the optionalisPrivate
attribute.- Parameters:
value
- The value for isPrivate- Returns:
- A modified copy of
this
object
-
withIsPrivate
public final ImmutableRepositoryUpdate withIsPrivate(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisPrivate
attribute. 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
this
object
-
withIsTemplate
public final ImmutableRepositoryUpdate withIsTemplate(boolean value)
Copy the current immutable object by setting a present value for the optionalisTemplate
attribute.- Parameters:
value
- The value for isTemplate- Returns:
- A modified copy of
this
object
-
withIsTemplate
public final ImmutableRepositoryUpdate withIsTemplate(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for theisTemplate
attribute. 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
this
object
-
withSquashMergeCommitMessage
public final ImmutableRepositoryUpdate withSquashMergeCommitMessage(String value)
Copy the current immutable object by setting a present value for the optionalsquashMergeCommitMessage
attribute.- Parameters:
value
- The value for squashMergeCommitMessage- Returns:
- A modified copy of
this
object
-
withSquashMergeCommitMessage
public final ImmutableRepositoryUpdate withSquashMergeCommitMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesquashMergeCommitMessage
attribute. 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
this
object
-
withSquashMergeCommitTitle
public final ImmutableRepositoryUpdate withSquashMergeCommitTitle(String value)
Copy the current immutable object by setting a present value for the optionalsquashMergeCommitTitle
attribute.- Parameters:
value
- The value for squashMergeCommitTitle- Returns:
- A modified copy of
this
object
-
withSquashMergeCommitTitle
public final ImmutableRepositoryUpdate withSquashMergeCommitTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesquashMergeCommitTitle
attribute. 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
this
object
-
withMergeCommitMessage
public final ImmutableRepositoryUpdate withMergeCommitMessage(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitMessage
attribute.- Parameters:
value
- The value for mergeCommitMessage- Returns:
- A modified copy of
this
object
-
withMergeCommitMessage
public final ImmutableRepositoryUpdate withMergeCommitMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitMessage
attribute. 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
this
object
-
withMergeCommitTitle
public final ImmutableRepositoryUpdate withMergeCommitTitle(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitTitle
attribute.- Parameters:
value
- The value for mergeCommitTitle- Returns:
- A modified copy of
this
object
-
withMergeCommitTitle
public final ImmutableRepositoryUpdate withMergeCommitTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitTitle
attribute. 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
this
object
-
withTeamId
public final ImmutableRepositoryUpdate withTeamId(int value)
Copy the current immutable object by setting a present value for the optionalteamId
attribute.- Parameters:
value
- The value for teamId- Returns:
- A modified copy of
this
object
-
withTeamId
public final ImmutableRepositoryUpdate withTeamId(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for theteamId
attribute. 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
this
object
-
withVisibility
public final ImmutableRepositoryUpdate withVisibility(String value)
Copy the current immutable object by setting a present value for the optionalvisibility
attribute.- Parameters:
value
- The value for visibility- Returns:
- A modified copy of
this
object
-
withVisibility
public final ImmutableRepositoryUpdate withVisibility(Optional<String> optional)
Copy the current immutable object by setting an optional value for thevisibility
attribute. 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
this
object
-
withWebCommitSignoffRequired
public final ImmutableRepositoryUpdate withWebCommitSignoffRequired(boolean value)
Copy the current immutable object by setting a present value for the optionalwebCommitSignoffRequired
attribute.- Parameters:
value
- The value for webCommitSignoffRequired- Returns:
- A modified copy of
this
object
-
withWebCommitSignoffRequired
public final ImmutableRepositoryUpdate withWebCommitSignoffRequired(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for thewebCommitSignoffRequired
attribute. 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
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableRepositoryUpdate
that 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 valueRepositoryUpdate
with attribute values.
-
copyOf
public static ImmutableRepositoryUpdate copyOf(RepositoryUpdate instance)
Creates an immutable copy of aRepositoryUpdate
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 RepositoryUpdate instance
-
builder
public static ImmutableRepositoryUpdate.Builder builder()
Creates a builder forImmutableRepositoryUpdate
.ImmutableRepositoryUpdate.builder() .description(String) // optional
description
.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
-
-