Class ImmutableTeamCreate.Builder

  • Enclosing class:
    ImmutableTeamCreate

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

        @CanIgnoreReturnValue
        public final ImmutableTeamCreate.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
      • description

        @CanIgnoreReturnValue
        public final ImmutableTeamCreate.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 ImmutableTeamCreate.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
      • maintainers

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

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

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

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

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

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