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 classImmutableTeamInvitation.BuilderBuilds instances of typeImmutableTeamInvitation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTeamInvitation.Builderbuilder()Creates a builder forImmutableTeamInvitation.static ImmutableTeamInvitationcopyOf(TeamInvitation instance)Creates an immutable copy of aTeamInvitationvalue.Stringemail()Email addressbooleanequals(Object another)This instance is equal to all instances ofImmutableTeamInvitationthat have equal attribute values.StringfailedReason()Failed reasoninthashCode()Computes a hash code from attributes:id,login,nodeId,email,role,failedReason,inviter,teamCount,invitationTeamsUrl,invitationSource.Integerid()IDStringinvitationSource()Invitation SourceURIinvitationTeamsUrl()Invitation Teams URLUserinviter()InviterStringlogin()login usernameStringnodeId()Node IDStringrole()RoleIntegerteamCount()Team CountStringtoString()Prints the immutable valueTeamInvitationwith attribute values.ImmutableTeamInvitationwithEmail(String value)Copy the current immutable object by setting a value for theemailattribute.ImmutableTeamInvitationwithFailedReason(String value)Copy the current immutable object by setting a value for thefailedReasonattribute.ImmutableTeamInvitationwithId(Integer value)Copy the current immutable object by setting a value for theidattribute.ImmutableTeamInvitationwithInvitationSource(String value)Copy the current immutable object by setting a value for theinvitationSourceattribute.ImmutableTeamInvitationwithInvitationTeamsUrl(URI value)Copy the current immutable object by setting a value for theinvitationTeamsUrlattribute.ImmutableTeamInvitationwithInviter(User value)Copy the current immutable object by setting a value for theinviterattribute.ImmutableTeamInvitationwithLogin(String value)Copy the current immutable object by setting a value for theloginattribute.ImmutableTeamInvitationwithNodeId(String value)Copy the current immutable object by setting a value for thenodeIdattribute.ImmutableTeamInvitationwithRole(String value)Copy the current immutable object by setting a value for theroleattribute.ImmutableTeamInvitationwithTeamCount(Integer value)Copy the current immutable object by setting a value for theteamCountattribute.
-
-
-
Method Detail
-
id
@Nullable public Integer id()
ID- Specified by:
idin interfaceTeamInvitation
-
login
@Nullable public String login()
login username- Specified by:
loginin interfaceTeamInvitation
-
nodeId
@Nullable public String nodeId()
Node ID- Specified by:
nodeIdin interfaceTeamInvitation
-
email
@Nullable public String email()
Email address- Specified by:
emailin interfaceTeamInvitation
-
role
@Nullable public String role()
Role- Specified by:
rolein interfaceTeamInvitation
-
failedReason
@Nullable public String failedReason()
Failed reason- Specified by:
failedReasonin interfaceTeamInvitation
-
inviter
@Nullable public User inviter()
Inviter- Specified by:
inviterin interfaceTeamInvitation
-
teamCount
@Nullable public Integer teamCount()
Team Count- Specified by:
teamCountin interfaceTeamInvitation
-
invitationTeamsUrl
@Nullable public URI invitationTeamsUrl()
Invitation Teams URL- Specified by:
invitationTeamsUrlin interfaceTeamInvitation
-
invitationSource
@Nullable public String invitationSource()
Invitation Source- Specified by:
invitationSourcein interfaceTeamInvitation
-
withId
public final ImmutableTeamInvitation withId(@Nullable Integer value)
Copy the current immutable object by setting a value for theidattribute. 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
thisobject
-
withLogin
public final ImmutableTeamInvitation withLogin(@Nullable String value)
Copy the current immutable object by setting a value for theloginattribute. 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
thisobject
-
withNodeId
public final ImmutableTeamInvitation withNodeId(@Nullable String value)
Copy the current immutable object by setting a value for thenodeIdattribute. 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
thisobject
-
withEmail
public final ImmutableTeamInvitation withEmail(@Nullable String value)
Copy the current immutable object by setting a value for theemailattribute. 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
thisobject
-
withRole
public final ImmutableTeamInvitation withRole(@Nullable String value)
Copy the current immutable object by setting a value for theroleattribute. 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
thisobject
-
withFailedReason
public final ImmutableTeamInvitation withFailedReason(@Nullable String value)
Copy the current immutable object by setting a value for thefailedReasonattribute. 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
thisobject
-
withInviter
public final ImmutableTeamInvitation withInviter(@Nullable User value)
Copy the current immutable object by setting a value for theinviterattribute. 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
thisobject
-
withTeamCount
public final ImmutableTeamInvitation withTeamCount(@Nullable Integer value)
Copy the current immutable object by setting a value for theteamCountattribute. 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
thisobject
-
withInvitationTeamsUrl
public final ImmutableTeamInvitation withInvitationTeamsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theinvitationTeamsUrlattribute. 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
thisobject
-
withInvitationSource
public final ImmutableTeamInvitation withInvitationSource(@Nullable String value)
Copy the current immutable object by setting a value for theinvitationSourceattribute. 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
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableTeamInvitationthat 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 valueTeamInvitationwith attribute values.
-
copyOf
public static ImmutableTeamInvitation copyOf(TeamInvitation instance)
Creates an immutable copy of aTeamInvitationvalue. 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) // nullableid.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
-
-