Class ImmutableTeam

  • All Implemented Interfaces:
    Team

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

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

    • Method Detail

      • id

        @Nullable
        public Integer id()
        ID.
        Specified by:
        id in interface Team
      • name

        @Nullable
        public String name()
        Name.
        Specified by:
        name in interface Team
      • slug

        @Nullable
        public String slug()
        Slug.
        Specified by:
        slug in interface Team
      • description

        @Nullable
        public String description()
        Description
        Specified by:
        description in interface Team
      • privacy

        @Nullable
        public String privacy()
        Privacy
        Specified by:
        privacy in interface Team
      • permission

        @Nullable
        public String permission()
        Permission
        Specified by:
        permission in interface Team
      • nodeId

        @Nullable
        public String nodeId()
        Node ID
        Specified by:
        nodeId in interface Team
      • url

        @Nullable
        public URI url()
        URL
        Specified by:
        url in interface Team
      • htmlUrl

        @Nullable
        public URI htmlUrl()
        HTML URL
        Specified by:
        htmlUrl in interface Team
      • repositoriesUrl

        @Nullable
        public URI repositoriesUrl()
        Repositories URL
        Specified by:
        repositoriesUrl in interface Team
      • withId

        public final ImmutableTeam 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 ImmutableTeam 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
      • withSlug

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

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

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

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

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

        public final ImmutableTeam 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 ImmutableTeam 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
      • withRepositoriesUrl

        public final ImmutableTeam withRepositoriesUrl​(@Nullable
                                                       URI value)
        Copy the current immutable object by setting a value for the repositoriesUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for repositoriesUrl (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 ImmutableTeam 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: id, name, slug, description, privacy, permission, nodeId, url, htmlUrl, repositoriesUrl.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableTeam.Builder builder()
        Creates a builder for ImmutableTeam.
         ImmutableTeam.builder()
            .id(Integer | null) // nullable id
            .name(String | null) // nullable name
            .slug(String | null) // nullable slug
            .description(String | null) // nullable description
            .privacy(String | null) // nullable privacy
            .permission(String | null) // nullable permission
            .nodeId(String | null) // nullable nodeId
            .url(java.net.URI | null) // nullable url
            .htmlUrl(java.net.URI | null) // nullable htmlUrl
            .repositoriesUrl(java.net.URI | null) // nullable repositoriesUrl
            .build();
         
        Returns:
        A new ImmutableTeam builder