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 class
ImmutableTeam.Builder
Builds instances of typeImmutableTeam
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTeam.Builder
builder()
Creates a builder forImmutableTeam
.static ImmutableTeam
copyOf(Team instance)
Creates an immutable copy of aTeam
value.String
description()
Descriptionboolean
equals(Object another)
This instance is equal to all instances ofImmutableTeam
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,name
,slug
,description
,privacy
,permission
,nodeId
,url
,htmlUrl
,repositoriesUrl
.URI
htmlUrl()
HTML URLInteger
id()
ID.String
name()
Name.String
nodeId()
Node IDString
permission()
PermissionString
privacy()
PrivacyURI
repositoriesUrl()
Repositories URLString
slug()
Slug.String
toString()
Prints the immutable valueTeam
with attribute values.URI
url()
URLImmutableTeam
withDescription(String value)
Copy the current immutable object by setting a value for thedescription
attribute.ImmutableTeam
withHtmlUrl(URI value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute.ImmutableTeam
withId(Integer value)
Copy the current immutable object by setting a value for theid
attribute.ImmutableTeam
withName(String value)
Copy the current immutable object by setting a value for thename
attribute.ImmutableTeam
withNodeId(String value)
Copy the current immutable object by setting a value for thenodeId
attribute.ImmutableTeam
withPermission(String value)
Copy the current immutable object by setting a value for thepermission
attribute.ImmutableTeam
withPrivacy(String value)
Copy the current immutable object by setting a value for theprivacy
attribute.ImmutableTeam
withRepositoriesUrl(URI value)
Copy the current immutable object by setting a value for therepositoriesUrl
attribute.ImmutableTeam
withSlug(String value)
Copy the current immutable object by setting a value for theslug
attribute.ImmutableTeam
withUrl(URI value)
Copy the current immutable object by setting a value for theurl
attribute.
-
-
-
Method Detail
-
description
@Nullable public String description()
Description- Specified by:
description
in interfaceTeam
-
permission
@Nullable public String permission()
Permission- Specified by:
permission
in interfaceTeam
-
repositoriesUrl
@Nullable public URI repositoriesUrl()
Repositories URL- Specified by:
repositoriesUrl
in interfaceTeam
-
withId
public final ImmutableTeam 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
-
withName
public final ImmutableTeam withName(@Nullable String value)
Copy the current immutable object by setting a value for thename
attribute. 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
this
object
-
withSlug
public final ImmutableTeam withSlug(@Nullable String value)
Copy the current immutable object by setting a value for theslug
attribute. 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
this
object
-
withDescription
public final ImmutableTeam withDescription(@Nullable String value)
Copy the current immutable object by setting a value for thedescription
attribute. 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
this
object
-
withPrivacy
public final ImmutableTeam withPrivacy(@Nullable String value)
Copy the current immutable object by setting a value for theprivacy
attribute. 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
this
object
-
withPermission
public final ImmutableTeam withPermission(@Nullable String value)
Copy the current immutable object by setting a value for thepermission
attribute. 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
this
object
-
withNodeId
public final ImmutableTeam 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
-
withUrl
public final ImmutableTeam withUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theurl
attribute. 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
this
object
-
withHtmlUrl
public final ImmutableTeam withHtmlUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute. 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
this
object
-
withRepositoriesUrl
public final ImmutableTeam withRepositoriesUrl(@Nullable URI value)
Copy the current immutable object by setting a value for therepositoriesUrl
attribute. 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
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableTeam
that 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 valueTeam
with attribute values.
-
copyOf
public static ImmutableTeam copyOf(Team instance)
Creates an immutable copy of aTeam
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 Team instance
-
builder
public static ImmutableTeam.Builder builder()
Creates a builder forImmutableTeam
.ImmutableTeam.builder() .id(Integer | null) // nullable
id
.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
-
-