Class ImmutableTeam.Builder

  • Enclosing class:
    ImmutableTeam

    @NotThreadSafe
    public static final class ImmutableTeam.Builder
    extends Object
    Builds instances of type ImmutableTeam. 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 ImmutableTeam.Builder from​(Team instance)
        Fill a builder with attribute values from the provided Team 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
      • id

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder id​(@Nullable
                                              Integer id)
        Initializes the value for the id attribute.
        Parameters:
        id - The value for id (can be null)
        Returns:
        this builder for use in a chained invocation
      • name

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder name​(@Nullable
                                                String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name (can be null)
        Returns:
        this builder for use in a chained invocation
      • slug

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder slug​(@Nullable
                                                String slug)
        Initializes the value for the slug attribute.
        Parameters:
        slug - The value for slug (can be null)
        Returns:
        this builder for use in a chained invocation
      • description

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder description​(@Nullable
                                                       String description)
        Initializes the value for the description attribute.
        Parameters:
        description - The value for description (can be null)
        Returns:
        this builder for use in a chained invocation
      • privacy

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder privacy​(@Nullable
                                                   String privacy)
        Initializes the value for the privacy attribute.
        Parameters:
        privacy - The value for privacy (can be null)
        Returns:
        this builder for use in a chained invocation
      • permission

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder permission​(@Nullable
                                                      String permission)
        Initializes the value for the permission attribute.
        Parameters:
        permission - The value for permission (can be null)
        Returns:
        this builder for use in a chained invocation
      • nodeId

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder nodeId​(@Nullable
                                                  String nodeId)
        Initializes the value for the nodeId attribute.
        Parameters:
        nodeId - The value for nodeId (can be null)
        Returns:
        this builder for use in a chained invocation
      • url

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder url​(@Nullable
                                               URI url)
        Initializes the value for the url attribute.
        Parameters:
        url - The value for url (can be null)
        Returns:
        this builder for use in a chained invocation
      • htmlUrl

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder htmlUrl​(@Nullable
                                                   URI htmlUrl)
        Initializes the value for the htmlUrl attribute.
        Parameters:
        htmlUrl - The value for htmlUrl (can be null)
        Returns:
        this builder for use in a chained invocation
      • repositoriesUrl

        @CanIgnoreReturnValue
        public final ImmutableTeam.Builder repositoriesUrl​(@Nullable
                                                           URI repositoriesUrl)
        Initializes the value for the repositoriesUrl attribute.
        Parameters:
        repositoriesUrl - The value for repositoriesUrl (can be null)
        Returns:
        this builder for use in a chained invocation