Class ImmutableTeamInvitation

  • All Implemented Interfaces:
    TeamInvitation

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

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

    • Method Detail

      • withId

        public final ImmutableTeamInvitation 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
      • withLogin

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

        public final ImmutableTeamInvitation 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
      • withEmail

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

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

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

        public final ImmutableTeamInvitation withInviter​(@Nullable
                                                         User value)
        Copy the current immutable object by setting a value for the inviter attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for inviter (can be null)
        Returns:
        A modified copy of the this object
      • withTeamCount

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

        public final ImmutableTeamInvitation withInvitationTeamsUrl​(@Nullable
                                                                    URI value)
        Copy the current immutable object by setting a value for the invitationTeamsUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for invitationTeamsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withInvitationSource

        public final ImmutableTeamInvitation withInvitationSource​(@Nullable
                                                                  String value)
        Copy the current immutable object by setting a value for the invitationSource attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for invitationSource (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 ImmutableTeamInvitation 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, login, nodeId, email, role, failedReason, inviter, teamCount, invitationTeamsUrl, invitationSource.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableTeamInvitation.Builder builder()
        Creates a builder for ImmutableTeamInvitation.
         ImmutableTeamInvitation.builder()
            .id(Integer | null) // nullable id
            .login(String | null) // nullable login
            .nodeId(String | null) // nullable nodeId
            .email(String | null) // nullable email
            .role(String | null) // nullable role
            .failedReason(String | null) // nullable failedReason
            .inviter(com.spotify.github.v3.User | null) // nullable inviter
            .teamCount(Integer | null) // nullable teamCount
            .invitationTeamsUrl(java.net.URI | null) // nullable invitationTeamsUrl
            .invitationSource(String | null) // nullable invitationSource
            .build();
         
        Returns:
        A new ImmutableTeamInvitation builder