Class ImmutableRepositoryUpdate.Builder

  • Enclosing class:
    ImmutableRepositoryUpdate

    @NotThreadSafe
    public static final class ImmutableRepositoryUpdate.Builder
    extends Object
    Builds instances of type ImmutableRepositoryUpdate. Initialize attributes and then invoke the build() 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 Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder from​(RepositoryUpdate instance)
        Fill a builder with attribute values from the provided RepositoryUpdate instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • description

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder description​(String description)
        Initializes the optional value description to description.
        Parameters:
        description - The value for description
        Returns:
        this builder for chained invocation
      • description

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder description​(Optional<String> description)
        Initializes the optional value description to description.
        Parameters:
        description - The value for description
        Returns:
        this builder for use in a chained invocation
      • allowAutoMerge

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowAutoMerge​(boolean allowAutoMerge)
        Initializes the optional value allowAutoMerge to allowAutoMerge.
        Parameters:
        allowAutoMerge - The value for allowAutoMerge
        Returns:
        this builder for chained invocation
      • allowAutoMerge

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowAutoMerge​(Optional<Boolean> allowAutoMerge)
        Initializes the optional value allowAutoMerge to allowAutoMerge.
        Parameters:
        allowAutoMerge - The value for allowAutoMerge
        Returns:
        this builder for use in a chained invocation
      • allowForking

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowForking​(boolean allowForking)
        Initializes the optional value allowForking to allowForking.
        Parameters:
        allowForking - The value for allowForking
        Returns:
        this builder for chained invocation
      • allowForking

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowForking​(Optional<Boolean> allowForking)
        Initializes the optional value allowForking to allowForking.
        Parameters:
        allowForking - The value for allowForking
        Returns:
        this builder for use in a chained invocation
      • allowSquashMerge

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowSquashMerge​(boolean allowSquashMerge)
        Initializes the optional value allowSquashMerge to allowSquashMerge.
        Parameters:
        allowSquashMerge - The value for allowSquashMerge
        Returns:
        this builder for chained invocation
      • allowSquashMerge

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowSquashMerge​(Optional<Boolean> allowSquashMerge)
        Initializes the optional value allowSquashMerge to allowSquashMerge.
        Parameters:
        allowSquashMerge - The value for allowSquashMerge
        Returns:
        this builder for use in a chained invocation
      • allowMergeCommit

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowMergeCommit​(boolean allowMergeCommit)
        Initializes the optional value allowMergeCommit to allowMergeCommit.
        Parameters:
        allowMergeCommit - The value for allowMergeCommit
        Returns:
        this builder for chained invocation
      • allowMergeCommit

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowMergeCommit​(Optional<Boolean> allowMergeCommit)
        Initializes the optional value allowMergeCommit to allowMergeCommit.
        Parameters:
        allowMergeCommit - The value for allowMergeCommit
        Returns:
        this builder for use in a chained invocation
      • allowRebaseMerge

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowRebaseMerge​(boolean allowRebaseMerge)
        Initializes the optional value allowRebaseMerge to allowRebaseMerge.
        Parameters:
        allowRebaseMerge - The value for allowRebaseMerge
        Returns:
        this builder for chained invocation
      • allowRebaseMerge

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowRebaseMerge​(Optional<Boolean> allowRebaseMerge)
        Initializes the optional value allowRebaseMerge to allowRebaseMerge.
        Parameters:
        allowRebaseMerge - The value for allowRebaseMerge
        Returns:
        this builder for use in a chained invocation
      • allowUpdateBranch

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowUpdateBranch​(boolean allowUpdateBranch)
        Initializes the optional value allowUpdateBranch to allowUpdateBranch.
        Parameters:
        allowUpdateBranch - The value for allowUpdateBranch
        Returns:
        this builder for chained invocation
      • allowUpdateBranch

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder allowUpdateBranch​(Optional<Boolean> allowUpdateBranch)
        Initializes the optional value allowUpdateBranch to allowUpdateBranch.
        Parameters:
        allowUpdateBranch - The value for allowUpdateBranch
        Returns:
        this builder for use in a chained invocation
      • defaultBranch

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder defaultBranch​(String defaultBranch)
        Initializes the optional value defaultBranch to defaultBranch.
        Parameters:
        defaultBranch - The value for defaultBranch
        Returns:
        this builder for chained invocation
      • defaultBranch

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder defaultBranch​(Optional<String> defaultBranch)
        Initializes the optional value defaultBranch to defaultBranch.
        Parameters:
        defaultBranch - The value for defaultBranch
        Returns:
        this builder for use in a chained invocation
      • deleteBranchOnMerge

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder deleteBranchOnMerge​(boolean deleteBranchOnMerge)
        Initializes the optional value deleteBranchOnMerge to deleteBranchOnMerge.
        Parameters:
        deleteBranchOnMerge - The value for deleteBranchOnMerge
        Returns:
        this builder for chained invocation
      • deleteBranchOnMerge

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder deleteBranchOnMerge​(Optional<Boolean> deleteBranchOnMerge)
        Initializes the optional value deleteBranchOnMerge to deleteBranchOnMerge.
        Parameters:
        deleteBranchOnMerge - The value for deleteBranchOnMerge
        Returns:
        this builder for use in a chained invocation
      • homepage

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder homepage​(String homepage)
        Initializes the optional value homepage to homepage.
        Parameters:
        homepage - The value for homepage
        Returns:
        this builder for chained invocation
      • hasDownloads

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder hasDownloads​(boolean hasDownloads)
        Initializes the optional value hasDownloads to hasDownloads.
        Parameters:
        hasDownloads - The value for hasDownloads
        Returns:
        this builder for chained invocation
      • hasDownloads

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder hasDownloads​(Optional<Boolean> hasDownloads)
        Initializes the optional value hasDownloads to hasDownloads.
        Parameters:
        hasDownloads - The value for hasDownloads
        Returns:
        this builder for use in a chained invocation
      • hasIssues

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder hasIssues​(boolean hasIssues)
        Initializes the optional value hasIssues to hasIssues.
        Parameters:
        hasIssues - The value for hasIssues
        Returns:
        this builder for chained invocation
      • hasWiki

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder hasWiki​(boolean hasWiki)
        Initializes the optional value hasWiki to hasWiki.
        Parameters:
        hasWiki - The value for hasWiki
        Returns:
        this builder for chained invocation
      • hasPages

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder hasPages​(boolean hasPages)
        Initializes the optional value hasPages to hasPages.
        Parameters:
        hasPages - The value for hasPages
        Returns:
        this builder for chained invocation
      • hasProjects

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder hasProjects​(boolean hasProjects)
        Initializes the optional value hasProjects to hasProjects.
        Parameters:
        hasProjects - The value for hasProjects
        Returns:
        this builder for chained invocation
      • hasProjects

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder hasProjects​(Optional<Boolean> hasProjects)
        Initializes the optional value hasProjects to hasProjects.
        Parameters:
        hasProjects - The value for hasProjects
        Returns:
        this builder for use in a chained invocation
      • isArchived

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder isArchived​(boolean isArchived)
        Initializes the optional value isArchived to isArchived.
        Parameters:
        isArchived - The value for isArchived
        Returns:
        this builder for chained invocation
      • isPrivate

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder isPrivate​(boolean isPrivate)
        Initializes the optional value isPrivate to isPrivate.
        Parameters:
        isPrivate - The value for isPrivate
        Returns:
        this builder for chained invocation
      • isTemplate

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder isTemplate​(boolean isTemplate)
        Initializes the optional value isTemplate to isTemplate.
        Parameters:
        isTemplate - The value for isTemplate
        Returns:
        this builder for chained invocation
      • squashMergeCommitMessage

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder squashMergeCommitMessage​(String squashMergeCommitMessage)
        Initializes the optional value squashMergeCommitMessage to squashMergeCommitMessage.
        Parameters:
        squashMergeCommitMessage - The value for squashMergeCommitMessage
        Returns:
        this builder for chained invocation
      • squashMergeCommitMessage

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder squashMergeCommitMessage​(Optional<String> squashMergeCommitMessage)
        Initializes the optional value squashMergeCommitMessage to squashMergeCommitMessage.
        Parameters:
        squashMergeCommitMessage - The value for squashMergeCommitMessage
        Returns:
        this builder for use in a chained invocation
      • squashMergeCommitTitle

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder squashMergeCommitTitle​(String squashMergeCommitTitle)
        Initializes the optional value squashMergeCommitTitle to squashMergeCommitTitle.
        Parameters:
        squashMergeCommitTitle - The value for squashMergeCommitTitle
        Returns:
        this builder for chained invocation
      • squashMergeCommitTitle

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder squashMergeCommitTitle​(Optional<String> squashMergeCommitTitle)
        Initializes the optional value squashMergeCommitTitle to squashMergeCommitTitle.
        Parameters:
        squashMergeCommitTitle - The value for squashMergeCommitTitle
        Returns:
        this builder for use in a chained invocation
      • mergeCommitMessage

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder mergeCommitMessage​(String mergeCommitMessage)
        Initializes the optional value mergeCommitMessage to mergeCommitMessage.
        Parameters:
        mergeCommitMessage - The value for mergeCommitMessage
        Returns:
        this builder for chained invocation
      • mergeCommitMessage

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder mergeCommitMessage​(Optional<String> mergeCommitMessage)
        Initializes the optional value mergeCommitMessage to mergeCommitMessage.
        Parameters:
        mergeCommitMessage - The value for mergeCommitMessage
        Returns:
        this builder for use in a chained invocation
      • mergeCommitTitle

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder mergeCommitTitle​(String mergeCommitTitle)
        Initializes the optional value mergeCommitTitle to mergeCommitTitle.
        Parameters:
        mergeCommitTitle - The value for mergeCommitTitle
        Returns:
        this builder for chained invocation
      • mergeCommitTitle

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder mergeCommitTitle​(Optional<String> mergeCommitTitle)
        Initializes the optional value mergeCommitTitle to mergeCommitTitle.
        Parameters:
        mergeCommitTitle - The value for mergeCommitTitle
        Returns:
        this builder for use in a chained invocation
      • teamId

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder teamId​(int teamId)
        Initializes the optional value teamId to teamId.
        Parameters:
        teamId - The value for teamId
        Returns:
        this builder for chained invocation
      • visibility

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder visibility​(String visibility)
        Initializes the optional value visibility to visibility.
        Parameters:
        visibility - The value for visibility
        Returns:
        this builder for chained invocation
      • visibility

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder visibility​(Optional<String> visibility)
        Initializes the optional value visibility to visibility.
        Parameters:
        visibility - The value for visibility
        Returns:
        this builder for use in a chained invocation
      • webCommitSignoffRequired

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder webCommitSignoffRequired​(boolean webCommitSignoffRequired)
        Initializes the optional value webCommitSignoffRequired to webCommitSignoffRequired.
        Parameters:
        webCommitSignoffRequired - The value for webCommitSignoffRequired
        Returns:
        this builder for chained invocation
      • webCommitSignoffRequired

        @CanIgnoreReturnValue
        public final ImmutableRepositoryUpdate.Builder webCommitSignoffRequired​(Optional<Boolean> webCommitSignoffRequired)
        Initializes the optional value webCommitSignoffRequired to webCommitSignoffRequired.
        Parameters:
        webCommitSignoffRequired - The value for webCommitSignoffRequired
        Returns:
        this builder for use in a chained invocation