Package com.spotify.github.v3
Class ImmutableTeam
- java.lang.Object
-
- com.spotify.github.v3.ImmutableTeam
-
- All Implemented Interfaces:
Team
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTeam extends Object implements Team
Immutable implementation ofTeam.Use the builder to create immutable instances:
ImmutableTeam.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableTeam.BuilderBuilds instances of typeImmutableTeam.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTeam.Builderbuilder()Creates a builder forImmutableTeam.static ImmutableTeamcopyOf(Team instance)Creates an immutable copy of aTeamvalue.Stringdescription()Descriptionbooleanequals(Object another)This instance is equal to all instances ofImmutableTeamthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,name,slug,description,privacy,permission,nodeId,url,htmlUrl,repositoriesUrl.URIhtmlUrl()HTML URLIntegerid()ID.Stringname()Name.StringnodeId()Node IDStringpermission()PermissionStringprivacy()PrivacyURIrepositoriesUrl()Repositories URLStringslug()Slug.StringtoString()Prints the immutable valueTeamwith attribute values.URIurl()URLImmutableTeamwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableTeamwithHtmlUrl(URI value)Copy the current immutable object by setting a value for thehtmlUrlattribute.ImmutableTeamwithId(Integer value)Copy the current immutable object by setting a value for theidattribute.ImmutableTeamwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableTeamwithNodeId(String value)Copy the current immutable object by setting a value for thenodeIdattribute.ImmutableTeamwithPermission(String value)Copy the current immutable object by setting a value for thepermissionattribute.ImmutableTeamwithPrivacy(String value)Copy the current immutable object by setting a value for theprivacyattribute.ImmutableTeamwithRepositoriesUrl(URI value)Copy the current immutable object by setting a value for therepositoriesUrlattribute.ImmutableTeamwithSlug(String value)Copy the current immutable object by setting a value for theslugattribute.ImmutableTeamwithUrl(URI value)Copy the current immutable object by setting a value for theurlattribute.
-
-
-
Method Detail
-
description
@Nullable public String description()
Description- Specified by:
descriptionin interfaceTeam
-
permission
@Nullable public String permission()
Permission- Specified by:
permissionin interfaceTeam
-
repositoriesUrl
@Nullable public URI repositoriesUrl()
Repositories URL- Specified by:
repositoriesUrlin interfaceTeam
-
withId
public final ImmutableTeam 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
-
withName
public final ImmutableTeam withName(@Nullable String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withSlug
public final ImmutableTeam withSlug(@Nullable String value)
Copy the current immutable object by setting a value for theslugattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for slug (can benull)- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableTeam withDescription(@Nullable String value)
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withPrivacy
public final ImmutableTeam withPrivacy(@Nullable String value)
Copy the current immutable object by setting a value for theprivacyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for privacy (can benull)- Returns:
- A modified copy of the
thisobject
-
withPermission
public final ImmutableTeam withPermission(@Nullable String value)
Copy the current immutable object by setting a value for thepermissionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for permission (can benull)- Returns:
- A modified copy of the
thisobject
-
withNodeId
public final ImmutableTeam 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
-
withUrl
public final ImmutableTeam withUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theurlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url (can benull)- Returns:
- A modified copy of the
thisobject
-
withHtmlUrl
public final ImmutableTeam withHtmlUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thehtmlUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for htmlUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withRepositoriesUrl
public final ImmutableTeam withRepositoriesUrl(@Nullable URI value)
Copy the current immutable object by setting a value for therepositoriesUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repositoriesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableTeamthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,name,slug,description,privacy,permission,nodeId,url,htmlUrl,repositoriesUrl.
-
toString
public String toString()
Prints the immutable valueTeamwith attribute values.
-
copyOf
public static ImmutableTeam copyOf(Team instance)
Creates an immutable copy of aTeamvalue. 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 Team instance
-
builder
public static ImmutableTeam.Builder builder()
Creates a builder forImmutableTeam.ImmutableTeam.builder() .id(Integer | null) // nullableid.name(String | null) // nullablename.slug(String | null) // nullableslug.description(String | null) // nullabledescription.privacy(String | null) // nullableprivacy.permission(String | null) // nullablepermission.nodeId(String | null) // nullablenodeId.url(java.net.URI | null) // nullableurl.htmlUrl(java.net.URI | null) // nullablehtmlUrl.repositoriesUrl(java.net.URI | null) // nullablerepositoriesUrl.build();- Returns:
- A new ImmutableTeam builder
-
-