Package com.spotify.github.v3.orgs
Class ImmutableTeamInvitation
- java.lang.Object
-
- com.spotify.github.v3.orgs.ImmutableTeamInvitation
-
- All Implemented Interfaces:
TeamInvitation
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTeamInvitation extends Object implements TeamInvitation
Immutable implementation ofTeamInvitation
.Use the builder to create immutable instances:
ImmutableTeamInvitation.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableTeamInvitation.Builder
Builds instances of typeImmutableTeamInvitation
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTeamInvitation.Builder
builder()
Creates a builder forImmutableTeamInvitation
.static ImmutableTeamInvitation
copyOf(TeamInvitation instance)
Creates an immutable copy of aTeamInvitation
value.String
email()
Email addressboolean
equals(Object another)
This instance is equal to all instances ofImmutableTeamInvitation
that have equal attribute values.String
failedReason()
Failed reasonint
hashCode()
Computes a hash code from attributes:id
,login
,nodeId
,email
,role
,failedReason
,inviter
,teamCount
,invitationTeamsUrl
,invitationSource
.Integer
id()
IDString
invitationSource()
Invitation SourceURI
invitationTeamsUrl()
Invitation Teams URLUser
inviter()
InviterString
login()
login usernameString
nodeId()
Node IDString
role()
RoleInteger
teamCount()
Team CountString
toString()
Prints the immutable valueTeamInvitation
with attribute values.ImmutableTeamInvitation
withEmail(String value)
Copy the current immutable object by setting a value for theemail
attribute.ImmutableTeamInvitation
withFailedReason(String value)
Copy the current immutable object by setting a value for thefailedReason
attribute.ImmutableTeamInvitation
withId(Integer value)
Copy the current immutable object by setting a value for theid
attribute.ImmutableTeamInvitation
withInvitationSource(String value)
Copy the current immutable object by setting a value for theinvitationSource
attribute.ImmutableTeamInvitation
withInvitationTeamsUrl(URI value)
Copy the current immutable object by setting a value for theinvitationTeamsUrl
attribute.ImmutableTeamInvitation
withInviter(User value)
Copy the current immutable object by setting a value for theinviter
attribute.ImmutableTeamInvitation
withLogin(String value)
Copy the current immutable object by setting a value for thelogin
attribute.ImmutableTeamInvitation
withNodeId(String value)
Copy the current immutable object by setting a value for thenodeId
attribute.ImmutableTeamInvitation
withRole(String value)
Copy the current immutable object by setting a value for therole
attribute.ImmutableTeamInvitation
withTeamCount(Integer value)
Copy the current immutable object by setting a value for theteamCount
attribute.
-
-
-
Method Detail
-
id
@Nullable public Integer id()
ID- Specified by:
id
in interfaceTeamInvitation
-
login
@Nullable public String login()
login username- Specified by:
login
in interfaceTeamInvitation
-
nodeId
@Nullable public String nodeId()
Node ID- Specified by:
nodeId
in interfaceTeamInvitation
-
email
@Nullable public String email()
Email address- Specified by:
email
in interfaceTeamInvitation
-
role
@Nullable public String role()
Role- Specified by:
role
in interfaceTeamInvitation
-
failedReason
@Nullable public String failedReason()
Failed reason- Specified by:
failedReason
in interfaceTeamInvitation
-
inviter
@Nullable public User inviter()
Inviter- Specified by:
inviter
in interfaceTeamInvitation
-
teamCount
@Nullable public Integer teamCount()
Team Count- Specified by:
teamCount
in interfaceTeamInvitation
-
invitationTeamsUrl
@Nullable public URI invitationTeamsUrl()
Invitation Teams URL- Specified by:
invitationTeamsUrl
in interfaceTeamInvitation
-
invitationSource
@Nullable public String invitationSource()
Invitation Source- Specified by:
invitationSource
in interfaceTeamInvitation
-
withId
public final ImmutableTeamInvitation withId(@Nullable Integer value)
Copy the current immutable object by setting a value for theid
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for id (can benull
)- 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 thelogin
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for login (can benull
)- 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 thenodeId
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for nodeId (can benull
)- 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 theemail
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for email (can benull
)- 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 therole
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for role (can benull
)- 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 thefailedReason
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for failedReason (can benull
)- 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 theinviter
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for inviter (can benull
)- 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 theteamCount
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for teamCount (can benull
)- 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 theinvitationTeamsUrl
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for invitationTeamsUrl (can benull
)- 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 theinvitationSource
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for invitationSource (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableTeamInvitation
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id
,login
,nodeId
,email
,role
,failedReason
,inviter
,teamCount
,invitationTeamsUrl
,invitationSource
.
-
toString
public String toString()
Prints the immutable valueTeamInvitation
with attribute values.
-
copyOf
public static ImmutableTeamInvitation copyOf(TeamInvitation instance)
Creates an immutable copy of aTeamInvitation
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 forImmutableTeamInvitation
.ImmutableTeamInvitation.builder() .id(Integer | null) // nullable
id
.login(String | null) // nullablelogin
.nodeId(String | null) // nullablenodeId
.email(String | null) // nullableemail
.role(String | null) // nullablerole
.failedReason(String | null) // nullablefailedReason
.inviter(com.spotify.github.v3.User | null) // nullableinviter
.teamCount(Integer | null) // nullableteamCount
.invitationTeamsUrl(java.net.URI | null) // nullableinvitationTeamsUrl
.invitationSource(String | null) // nullableinvitationSource
.build();- Returns:
- A new ImmutableTeamInvitation builder
-
-