Class Team.Builder

    • Method Detail

      • type

        public Team.IdStage type​(@NotNull
                                 java.lang.String type)

        Value is always "team"

        Value is always "team"

        Specified by:
        type in interface Team.TypeStage
        Returns:
        Reference to this so that method calls can be chained together.
      • id

        public Team.NameStage id​(@NotNull
                                 java.lang.String id)

        The id of the team

        The id of the team

        Specified by:
        id in interface Team.IdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • name

        public Team._FinalStage name​(@NotNull
                                     java.lang.String name)

        The name of the team

        The name of the team

        Specified by:
        name in interface Team.NameStage
        Returns:
        Reference to this so that method calls can be chained together.
      • distributionMethod

        public Team._FinalStage distributionMethod​(java.lang.String distributionMethod)

        Describes how assignments are distributed among the team members

        Specified by:
        distributionMethod in interface Team._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • distributionMethod

        public Team._FinalStage distributionMethod​(java.util.Optional<java.lang.String> distributionMethod)

        Describes how assignments are distributed among the team members

        Specified by:
        distributionMethod in interface Team._FinalStage
      • assignmentLimit

        public Team._FinalStage assignmentLimit​(java.lang.Integer assignmentLimit)

        The assignment limit for the team. This field is only present when the team's distribution type is load balanced.

        Specified by:
        assignmentLimit in interface Team._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • assignmentLimit

        public Team._FinalStage assignmentLimit​(java.util.Optional<java.lang.Integer> assignmentLimit)

        The assignment limit for the team. This field is only present when the team's distribution type is load balanced.

        Specified by:
        assignmentLimit in interface Team._FinalStage
      • addAllAdminIds

        public Team._FinalStage addAllAdminIds​(java.util.List<java.lang.Integer> adminIds)

        The list of admin IDs that are a part of the team.

        Specified by:
        addAllAdminIds in interface Team._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • addAdminIds

        public Team._FinalStage addAdminIds​(java.lang.Integer adminIds)

        The list of admin IDs that are a part of the team.

        Specified by:
        addAdminIds in interface Team._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.