Class ImmutableRepository

  • All Implemented Interfaces:
    UpdateTracking, Repository, RepositoryBase

    @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableRepository
    extends Object
    implements Repository
    Immutable implementation of Repository.

    Use the builder to create immutable instances: ImmutableRepository.builder().

    • Method Detail

      • withCreatedAt

        public final ImmutableRepository withCreatedAt​(@Nullable
                                                       GitHubInstant value)
        Copy the current immutable object by setting a value for the createdAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for createdAt (can be null)
        Returns:
        A modified copy of the this object
      • withUpdatedAt

        public final ImmutableRepository withUpdatedAt​(@Nullable
                                                       GitHubInstant value)
        Copy the current immutable object by setting a value for the updatedAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for updatedAt (can be null)
        Returns:
        A modified copy of the this object
      • withId

        public final ImmutableRepository withId​(@Nullable
                                                Integer value)
        Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for id (can be null)
        Returns:
        A modified copy of the this object
      • withName

        public final ImmutableRepository withName​(@Nullable
                                                  String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name (can be null)
        Returns:
        A modified copy of the this object
      • withFullName

        public final ImmutableRepository withFullName​(@Nullable
                                                      String value)
        Copy the current immutable object by setting a value for the fullName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for fullName (can be null)
        Returns:
        A modified copy of the this object
      • withDescription

        public final ImmutableRepository withDescription​(String value)
        Copy the current immutable object by setting a present value for the optional description attribute.
        Parameters:
        value - The value for description
        Returns:
        A modified copy of this object
      • withDescription

        public final ImmutableRepository withDescription​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the description attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for description
        Returns:
        A modified copy of this object
      • withIsPrivate

        public final ImmutableRepository withIsPrivate​(@Nullable
                                                       Boolean value)
        Copy the current immutable object by setting a value for the isPrivate attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for isPrivate (can be null)
        Returns:
        A modified copy of the this object
      • withIsPublic

        public final ImmutableRepository withIsPublic​(boolean value)
        Copy the current immutable object by setting a present value for the optional isPublic attribute.
        Parameters:
        value - The value for isPublic
        Returns:
        A modified copy of this object
      • withIsPublic

        public final ImmutableRepository withIsPublic​(Optional<Boolean> optional)
        Copy the current immutable object by setting an optional value for the isPublic attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for isPublic
        Returns:
        A modified copy of this object
      • withFork

        public final ImmutableRepository withFork​(@Nullable
                                                  Boolean value)
        Copy the current immutable object by setting a value for the fork attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for fork (can be null)
        Returns:
        A modified copy of the this object
      • withUrl

        public final ImmutableRepository withUrl​(@Nullable
                                                 URI value)
        Copy the current immutable object by setting a value for the url attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for url (can be null)
        Returns:
        A modified copy of the this object
      • withHtmlUrl

        public final ImmutableRepository withHtmlUrl​(@Nullable
                                                     URI value)
        Copy the current immutable object by setting a value for the htmlUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for htmlUrl (can be null)
        Returns:
        A modified copy of the this object
      • withArchiveUrl

        public final ImmutableRepository withArchiveUrl​(@Nullable
                                                        String value)
        Copy the current immutable object by setting a value for the archiveUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for archiveUrl (can be null)
        Returns:
        A modified copy of the this object
      • withAssigneesUrl

        public final ImmutableRepository withAssigneesUrl​(@Nullable
                                                          String value)
        Copy the current immutable object by setting a value for the assigneesUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for assigneesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withBlobsUrl

        public final ImmutableRepository withBlobsUrl​(@Nullable
                                                      String value)
        Copy the current immutable object by setting a value for the blobsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for blobsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withBranchesUrl

        public final ImmutableRepository withBranchesUrl​(@Nullable
                                                         String value)
        Copy the current immutable object by setting a value for the branchesUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for branchesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withCloneUrl

        public final ImmutableRepository withCloneUrl​(@Nullable
                                                      URI value)
        Copy the current immutable object by setting a value for the cloneUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for cloneUrl (can be null)
        Returns:
        A modified copy of the this object
      • withCollaboratorsUrl

        public final ImmutableRepository withCollaboratorsUrl​(@Nullable
                                                              String value)
        Copy the current immutable object by setting a value for the collaboratorsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for collaboratorsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withCommentsUrl

        public final ImmutableRepository withCommentsUrl​(@Nullable
                                                         String value)
        Copy the current immutable object by setting a value for the commentsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for commentsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withCommitsUrl

        public final ImmutableRepository withCommitsUrl​(@Nullable
                                                        String value)
        Copy the current immutable object by setting a value for the commitsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for commitsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withCompareUrl

        public final ImmutableRepository withCompareUrl​(@Nullable
                                                        String value)
        Copy the current immutable object by setting a value for the compareUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for compareUrl (can be null)
        Returns:
        A modified copy of the this object
      • withContentsUrl

        public final ImmutableRepository withContentsUrl​(@Nullable
                                                         String value)
        Copy the current immutable object by setting a value for the contentsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for contentsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withContributorsUrl

        public final ImmutableRepository withContributorsUrl​(@Nullable
                                                             URI value)
        Copy the current immutable object by setting a value for the contributorsUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for contributorsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withDeploymentsUrl

        public final ImmutableRepository withDeploymentsUrl​(URI value)
        Copy the current immutable object by setting a present value for the optional deploymentsUrl attribute.
        Parameters:
        value - The value for deploymentsUrl
        Returns:
        A modified copy of this object
      • withDeploymentsUrl

        public final ImmutableRepository withDeploymentsUrl​(Optional<? extends URI> optional)
        Copy the current immutable object by setting an optional value for the deploymentsUrl attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for deploymentsUrl
        Returns:
        A modified copy of this object
      • withDownloadsUrl

        public final ImmutableRepository withDownloadsUrl​(@Nullable
                                                          URI value)
        Copy the current immutable object by setting a value for the downloadsUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for downloadsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withEventsUrl

        public final ImmutableRepository withEventsUrl​(@Nullable
                                                       URI value)
        Copy the current immutable object by setting a value for the eventsUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for eventsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withForksUrl

        public final ImmutableRepository withForksUrl​(@Nullable
                                                      URI value)
        Copy the current immutable object by setting a value for the forksUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for forksUrl (can be null)
        Returns:
        A modified copy of the this object
      • withGitCommitsUrl

        public final ImmutableRepository withGitCommitsUrl​(@Nullable
                                                           String value)
        Copy the current immutable object by setting a value for the gitCommitsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for gitCommitsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withGitRefsUrl

        public final ImmutableRepository withGitRefsUrl​(@Nullable
                                                        String value)
        Copy the current immutable object by setting a value for the gitRefsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for gitRefsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withGitTagsUrl

        public final ImmutableRepository withGitTagsUrl​(@Nullable
                                                        String value)
        Copy the current immutable object by setting a value for the gitTagsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for gitTagsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withGitUrl

        public final ImmutableRepository withGitUrl​(@Nullable
                                                    URI value)
        Copy the current immutable object by setting a value for the gitUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for gitUrl (can be null)
        Returns:
        A modified copy of the this object
      • withHooksUrl

        public final ImmutableRepository withHooksUrl​(@Nullable
                                                      URI value)
        Copy the current immutable object by setting a value for the hooksUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for hooksUrl (can be null)
        Returns:
        A modified copy of the this object
      • withHomepage

        public final ImmutableRepository withHomepage​(URI value)
        Copy the current immutable object by setting a present value for the optional homepage attribute.
        Parameters:
        value - The value for homepage
        Returns:
        A modified copy of this object
      • withHomepage

        public final ImmutableRepository withHomepage​(Optional<? extends URI> optional)
        Copy the current immutable object by setting an optional value for the homepage attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for homepage
        Returns:
        A modified copy of this object
      • withLanguage

        public final ImmutableRepository withLanguage​(String value)
        Copy the current immutable object by setting a present value for the optional language attribute.
        Parameters:
        value - The value for language
        Returns:
        A modified copy of this object
      • withLanguage

        public final ImmutableRepository withLanguage​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the language attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for language
        Returns:
        A modified copy of this object
      • withForksCount

        public final ImmutableRepository withForksCount​(@Nullable
                                                        Integer value)
        Copy the current immutable object by setting a value for the forksCount attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for forksCount (can be null)
        Returns:
        A modified copy of the this object
      • withStargazersCount

        public final ImmutableRepository withStargazersCount​(@Nullable
                                                             Integer value)
        Copy the current immutable object by setting a value for the stargazersCount attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for stargazersCount (can be null)
        Returns:
        A modified copy of the this object
      • withWatchersCount

        public final ImmutableRepository withWatchersCount​(@Nullable
                                                           Integer value)
        Copy the current immutable object by setting a value for the watchersCount attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for watchersCount (can be null)
        Returns:
        A modified copy of the this object
      • withSize

        public final ImmutableRepository withSize​(@Nullable
                                                  Integer value)
        Copy the current immutable object by setting a value for the size attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for size (can be null)
        Returns:
        A modified copy of the this object
      • withDefaultBranch

        public final ImmutableRepository withDefaultBranch​(@Nullable
                                                           String value)
        Copy the current immutable object by setting a value for the defaultBranch attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for defaultBranch (can be null)
        Returns:
        A modified copy of the this object
      • withOpenIssuesCount

        public final ImmutableRepository withOpenIssuesCount​(@Nullable
                                                             Integer value)
        Copy the current immutable object by setting a value for the openIssuesCount attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for openIssuesCount (can be null)
        Returns:
        A modified copy of the this object
      • withHasIssues

        public final ImmutableRepository withHasIssues​(@Nullable
                                                       Boolean value)
        Copy the current immutable object by setting a value for the hasIssues attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for hasIssues (can be null)
        Returns:
        A modified copy of the this object
      • withHasWiki

        public final ImmutableRepository withHasWiki​(@Nullable
                                                     Boolean value)
        Copy the current immutable object by setting a value for the hasWiki attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for hasWiki (can be null)
        Returns:
        A modified copy of the this object
      • withHasPages

        public final ImmutableRepository withHasPages​(@Nullable
                                                      Boolean value)
        Copy the current immutable object by setting a value for the hasPages attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for hasPages (can be null)
        Returns:
        A modified copy of the this object
      • withHasDownloads

        public final ImmutableRepository withHasDownloads​(@Nullable
                                                          Boolean value)
        Copy the current immutable object by setting a value for the hasDownloads attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for hasDownloads (can be null)
        Returns:
        A modified copy of the this object
      • withPermissions

        public final ImmutableRepository withPermissions​(Permissions value)
        Copy the current immutable object by setting a present value for the optional permissions attribute.
        Parameters:
        value - The value for permissions
        Returns:
        A modified copy of this object
      • withPermissions

        public final ImmutableRepository withPermissions​(Optional<? extends Permissions> optional)
        Copy the current immutable object by setting an optional value for the permissions attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for permissions
        Returns:
        A modified copy of this object
      • withForks

        @Deprecated
        public final ImmutableRepository withForks​(@Nullable
                                                   Integer value)
        Deprecated.
        Copy the current immutable object by setting a value for the forks attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for forks (can be null)
        Returns:
        A modified copy of the this object
      • withPushedAt

        public final ImmutableRepository withPushedAt​(@Nullable
                                                      GitHubInstant value)
        Copy the current immutable object by setting a value for the pushedAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for pushedAt (can be null)
        Returns:
        A modified copy of the this object
      • withIssuesUrl

        public final ImmutableRepository withIssuesUrl​(@Nullable
                                                       String value)
        Copy the current immutable object by setting a value for the issuesUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for issuesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withIssueCommentUrl

        public final ImmutableRepository withIssueCommentUrl​(@Nullable
                                                             String value)
        Copy the current immutable object by setting a value for the issueCommentUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for issueCommentUrl (can be null)
        Returns:
        A modified copy of the this object
      • withIssueEventsUrl

        public final ImmutableRepository withIssueEventsUrl​(@Nullable
                                                            String value)
        Copy the current immutable object by setting a value for the issueEventsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for issueEventsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withKeysUrl

        public final ImmutableRepository withKeysUrl​(@Nullable
                                                     String value)
        Copy the current immutable object by setting a value for the keysUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for keysUrl (can be null)
        Returns:
        A modified copy of the this object
      • withLabelsUrl

        public final ImmutableRepository withLabelsUrl​(@Nullable
                                                       String value)
        Copy the current immutable object by setting a value for the labelsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for labelsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withLanguagesUrl

        public final ImmutableRepository withLanguagesUrl​(@Nullable
                                                          URI value)
        Copy the current immutable object by setting a value for the languagesUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for languagesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withMergesUrl

        public final ImmutableRepository withMergesUrl​(@Nullable
                                                       URI value)
        Copy the current immutable object by setting a value for the mergesUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for mergesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withMilestonesUrl

        public final ImmutableRepository withMilestonesUrl​(@Nullable
                                                           String value)
        Copy the current immutable object by setting a value for the milestonesUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for milestonesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withMirrorUrl

        public final ImmutableRepository withMirrorUrl​(URI value)
        Copy the current immutable object by setting a present value for the optional mirrorUrl attribute.
        Parameters:
        value - The value for mirrorUrl
        Returns:
        A modified copy of this object
      • withMirrorUrl

        public final ImmutableRepository withMirrorUrl​(Optional<? extends URI> optional)
        Copy the current immutable object by setting an optional value for the mirrorUrl attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for mirrorUrl
        Returns:
        A modified copy of this object
      • withNotificationsUrl

        public final ImmutableRepository withNotificationsUrl​(@Nullable
                                                              String value)
        Copy the current immutable object by setting a value for the notificationsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for notificationsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withOpenIssues

        @Deprecated
        public final ImmutableRepository withOpenIssues​(int value)
        Deprecated.
        Copy the current immutable object by setting a present value for the optional openIssues attribute.
        Parameters:
        value - The value for openIssues
        Returns:
        A modified copy of this object
      • withOpenIssues

        @Deprecated
        public final ImmutableRepository withOpenIssues​(Optional<Integer> optional)
        Deprecated.
        Copy the current immutable object by setting an optional value for the openIssues attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for openIssues
        Returns:
        A modified copy of this object
      • withPullsUrl

        public final ImmutableRepository withPullsUrl​(@Nullable
                                                      String value)
        Copy the current immutable object by setting a value for the pullsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for pullsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withReleasesUrl

        public final ImmutableRepository withReleasesUrl​(@Nullable
                                                         String value)
        Copy the current immutable object by setting a value for the releasesUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for releasesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withSshUrl

        public final ImmutableRepository withSshUrl​(@Nullable
                                                    String value)
        Copy the current immutable object by setting a value for the sshUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sshUrl (can be null)
        Returns:
        A modified copy of the this object
      • withStargazersUrl

        public final ImmutableRepository withStargazersUrl​(@Nullable
                                                           URI value)
        Copy the current immutable object by setting a value for the stargazersUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for stargazersUrl (can be null)
        Returns:
        A modified copy of the this object
      • withStatusesUrl

        public final ImmutableRepository withStatusesUrl​(@Nullable
                                                         String value)
        Copy the current immutable object by setting a value for the statusesUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for statusesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withSubscribersUrl

        public final ImmutableRepository withSubscribersUrl​(@Nullable
                                                            URI value)
        Copy the current immutable object by setting a value for the subscribersUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for subscribersUrl (can be null)
        Returns:
        A modified copy of the this object
      • withSubscriptionUrl

        public final ImmutableRepository withSubscriptionUrl​(@Nullable
                                                             URI value)
        Copy the current immutable object by setting a value for the subscriptionUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for subscriptionUrl (can be null)
        Returns:
        A modified copy of the this object
      • withSvnUrl

        public final ImmutableRepository withSvnUrl​(@Nullable
                                                    URI value)
        Copy the current immutable object by setting a value for the svnUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for svnUrl (can be null)
        Returns:
        A modified copy of the this object
      • withTagsUrl

        public final ImmutableRepository withTagsUrl​(@Nullable
                                                     URI value)
        Copy the current immutable object by setting a value for the tagsUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for tagsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withTreesUrl

        public final ImmutableRepository withTreesUrl​(@Nullable
                                                      String value)
        Copy the current immutable object by setting a value for the treesUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for treesUrl (can be null)
        Returns:
        A modified copy of the this object
      • withTeamsUrl

        public final ImmutableRepository withTeamsUrl​(@Nullable
                                                      String value)
        Copy the current immutable object by setting a value for the teamsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for teamsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withWatchers

        @Deprecated
        public final ImmutableRepository withWatchers​(int value)
        Deprecated.
        Copy the current immutable object by setting a present value for the optional watchers attribute.
        Parameters:
        value - The value for watchers
        Returns:
        A modified copy of this object
      • withWatchers

        @Deprecated
        public final ImmutableRepository withWatchers​(Optional<Integer> optional)
        Deprecated.
        Copy the current immutable object by setting an optional value for the watchers attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for watchers
        Returns:
        A modified copy of this object
      • withStargazers

        @Deprecated
        public final ImmutableRepository withStargazers​(int value)
        Deprecated.
        Copy the current immutable object by setting a present value for the optional stargazers attribute.
        Parameters:
        value - The value for stargazers
        Returns:
        A modified copy of this object
      • withStargazers

        @Deprecated
        public final ImmutableRepository withStargazers​(Optional<Integer> optional)
        Deprecated.
        Copy the current immutable object by setting an optional value for the stargazers attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for stargazers
        Returns:
        A modified copy of this object
      • withMasterBranch

        @Deprecated
        public final ImmutableRepository withMasterBranch​(String value)
        Deprecated.
        Copy the current immutable object by setting a present value for the optional masterBranch attribute.
        Parameters:
        value - The value for masterBranch
        Returns:
        A modified copy of this object
      • withMasterBranch

        @Deprecated
        public final ImmutableRepository withMasterBranch​(Optional<String> optional)
        Deprecated.
        Copy the current immutable object by setting an optional value for the masterBranch attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for masterBranch
        Returns:
        A modified copy of this object
      • withOwner

        public final ImmutableRepository withOwner​(@Nullable
                                                   User value)
        Copy the current immutable object by setting a value for the owner attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for owner (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableRepository that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: createdAt, updatedAt, id, name, fullName, description, isPrivate, isPublic, fork, url, htmlUrl, archiveUrl, assigneesUrl, blobsUrl, branchesUrl, cloneUrl, collaboratorsUrl, commentsUrl, commitsUrl, compareUrl, contentsUrl, contributorsUrl, deploymentsUrl, downloadsUrl, eventsUrl, forksUrl, gitCommitsUrl, gitRefsUrl, gitTagsUrl, gitUrl, hooksUrl, homepage, language, forksCount, stargazersCount, watchersCount, size, defaultBranch, openIssuesCount, hasIssues, hasWiki, hasPages, hasDownloads, permissions, forks, pushedAt, issuesUrl, issueCommentUrl, issueEventsUrl, keysUrl, labelsUrl, languagesUrl, mergesUrl, milestonesUrl, mirrorUrl, notificationsUrl, openIssues, pullsUrl, releasesUrl, sshUrl, stargazersUrl, statusesUrl, subscribersUrl, subscriptionUrl, svnUrl, tagsUrl, treesUrl, teamsUrl, watchers, stargazers, masterBranch, owner.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value Repository with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableRepository copyOf​(Repository instance)
        Creates an immutable copy of a Repository 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 Repository instance
      • builder

        public static ImmutableRepository.Builder builder()
        Creates a builder for ImmutableRepository.
         ImmutableRepository.builder()
            .createdAt(com.spotify.github.GitHubInstant | null) // nullable createdAt
            .updatedAt(com.spotify.github.GitHubInstant | null) // nullable updatedAt
            .id(Integer | null) // nullable id
            .name(String | null) // nullable name
            .fullName(String | null) // nullable fullName
            .description(String) // optional description
            .isPrivate(Boolean | null) // nullable isPrivate
            .isPublic(Boolean) // optional isPublic
            .fork(Boolean | null) // nullable fork
            .url(java.net.URI | null) // nullable url
            .htmlUrl(java.net.URI | null) // nullable htmlUrl
            .archiveUrl(String | null) // nullable archiveUrl
            .assigneesUrl(String | null) // nullable assigneesUrl
            .blobsUrl(String | null) // nullable blobsUrl
            .branchesUrl(String | null) // nullable branchesUrl
            .cloneUrl(java.net.URI | null) // nullable cloneUrl
            .collaboratorsUrl(String | null) // nullable collaboratorsUrl
            .commentsUrl(String | null) // nullable commentsUrl
            .commitsUrl(String | null) // nullable commitsUrl
            .compareUrl(String | null) // nullable compareUrl
            .contentsUrl(String | null) // nullable contentsUrl
            .contributorsUrl(java.net.URI | null) // nullable contributorsUrl
            .deploymentsUrl(java.net.URI) // optional deploymentsUrl
            .downloadsUrl(java.net.URI | null) // nullable downloadsUrl
            .eventsUrl(java.net.URI | null) // nullable eventsUrl
            .forksUrl(java.net.URI | null) // nullable forksUrl
            .gitCommitsUrl(String | null) // nullable gitCommitsUrl
            .gitRefsUrl(String | null) // nullable gitRefsUrl
            .gitTagsUrl(String | null) // nullable gitTagsUrl
            .gitUrl(java.net.URI | null) // nullable gitUrl
            .hooksUrl(java.net.URI | null) // nullable hooksUrl
            .homepage(java.net.URI) // optional homepage
            .language(String) // optional language
            .forksCount(Integer | null) // nullable forksCount
            .stargazersCount(Integer | null) // nullable stargazersCount
            .watchersCount(Integer | null) // nullable watchersCount
            .size(Integer | null) // nullable size
            .defaultBranch(String | null) // nullable defaultBranch
            .openIssuesCount(Integer | null) // nullable openIssuesCount
            .hasIssues(Boolean | null) // nullable hasIssues
            .hasWiki(Boolean | null) // nullable hasWiki
            .hasPages(Boolean | null) // nullable hasPages
            .hasDownloads(Boolean | null) // nullable hasDownloads
            .permissions(com.spotify.github.v3.repos.Permissions) // optional permissions
            .forks(Integer | null) // nullable forks
            .pushedAt(com.spotify.github.GitHubInstant | null) // nullable pushedAt
            .issuesUrl(String | null) // nullable issuesUrl
            .issueCommentUrl(String | null) // nullable issueCommentUrl
            .issueEventsUrl(String | null) // nullable issueEventsUrl
            .keysUrl(String | null) // nullable keysUrl
            .labelsUrl(String | null) // nullable labelsUrl
            .languagesUrl(java.net.URI | null) // nullable languagesUrl
            .mergesUrl(java.net.URI | null) // nullable mergesUrl
            .milestonesUrl(String | null) // nullable milestonesUrl
            .mirrorUrl(java.net.URI) // optional mirrorUrl
            .notificationsUrl(String | null) // nullable notificationsUrl
            .openIssues(Integer) // optional openIssues
            .pullsUrl(String | null) // nullable pullsUrl
            .releasesUrl(String | null) // nullable releasesUrl
            .sshUrl(String | null) // nullable sshUrl
            .stargazersUrl(java.net.URI | null) // nullable stargazersUrl
            .statusesUrl(String | null) // nullable statusesUrl
            .subscribersUrl(java.net.URI | null) // nullable subscribersUrl
            .subscriptionUrl(java.net.URI | null) // nullable subscriptionUrl
            .svnUrl(java.net.URI | null) // nullable svnUrl
            .tagsUrl(java.net.URI | null) // nullable tagsUrl
            .treesUrl(String | null) // nullable treesUrl
            .teamsUrl(String | null) // nullable teamsUrl
            .watchers(Integer) // optional watchers
            .stargazers(Integer) // optional stargazers
            .masterBranch(String) // optional masterBranch
            .owner(com.spotify.github.v3.User | null) // nullable owner
            .build();
         
        Returns:
        A new ImmutableRepository builder