Class ImmutableTeamInvitation.Builder

  • Enclosing class:
    ImmutableTeamInvitation

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

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

        @CanIgnoreReturnValue
        public final ImmutableTeamInvitation.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
      • email

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

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

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

        @CanIgnoreReturnValue
        public final ImmutableTeamInvitation.Builder inviter​(@Nullable
                                                             User inviter)
        Initializes the value for the inviter attribute.
        Parameters:
        inviter - The value for inviter (can be null)
        Returns:
        this builder for use in a chained invocation
      • teamCount

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

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

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