Class GameSummary.Builder
- java.lang.Object
-
- com.rivet.api.resources.cloud.games.games.types.GameSummary.Builder
-
- All Implemented Interfaces:
GameSummary._FinalStage,GameSummary.CreateTsStage,GameSummary.DeveloperGroupIdStage,GameSummary.DisplayNameStage,GameSummary.GameIdStage,GameSummary.NameIdStage
- Enclosing class:
- GameSummary
public static final class GameSummary.Builder extends java.lang.Object implements GameSummary.GameIdStage, GameSummary.CreateTsStage, GameSummary.NameIdStage, GameSummary.DisplayNameStage, GameSummary.DeveloperGroupIdStage, GameSummary._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GameSummary._FinalStagebannerUrl(java.lang.String bannerUrl)The URL of this game's banner image.GameSummary._FinalStagebannerUrl(java.util.Optional<java.lang.String> bannerUrl)GameSummarybuild()GameSummary.NameIdStagecreateTs(java.time.OffsetDateTime createTs)RFC3339 timestamp.GameSummary._FinalStagedeveloperGroupId(java.util.UUID developerGroupId)GameSummary.DeveloperGroupIdStagedisplayName(java.lang.String displayName)Represent a resource's readable display name.GameSummary.Builderfrom(GameSummary other)GameSummary.CreateTsStagegameId(java.util.UUID gameId)GameSummary._FinalStagelogoUrl(java.lang.String logoUrl)The URL of this game's logo image.GameSummary._FinalStagelogoUrl(java.util.Optional<java.lang.String> logoUrl)GameSummary.DisplayNameStagenameId(java.lang.String nameId)A human readable short identifier used to references resources.GameSummary._FinalStagetotalPlayerCount(java.lang.Integer totalPlayerCount)Unsigned 32 bit integer.GameSummary._FinalStagetotalPlayerCount(java.util.Optional<java.lang.Integer> totalPlayerCount)
-
-
-
Method Detail
-
from
public GameSummary.Builder from(GameSummary other)
- Specified by:
fromin interfaceGameSummary.GameIdStage
-
gameId
public GameSummary.CreateTsStage gameId(java.util.UUID gameId)
- Specified by:
gameIdin interfaceGameSummary.GameIdStage
-
createTs
public GameSummary.NameIdStage createTs(java.time.OffsetDateTime createTs)
RFC3339 timestamp.
- Specified by:
createTsin interfaceGameSummary.CreateTsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
nameId
public GameSummary.DisplayNameStage nameId(java.lang.String nameId)
A human readable short identifier used to references resources. Different than a
rivet.common#Uuidbecause this is intended to be human readable. Different thanrivet.common#DisplayNamebecause this should not include special characters and be short.- Specified by:
nameIdin interfaceGameSummary.NameIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
displayName
public GameSummary.DeveloperGroupIdStage displayName(java.lang.String displayName)
Represent a resource's readable display name.
- Specified by:
displayNamein interfaceGameSummary.DisplayNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
developerGroupId
public GameSummary._FinalStage developerGroupId(java.util.UUID developerGroupId)
- Specified by:
developerGroupIdin interfaceGameSummary.DeveloperGroupIdStage
-
bannerUrl
public GameSummary._FinalStage bannerUrl(java.lang.String bannerUrl)
The URL of this game's banner image.
- Specified by:
bannerUrlin interfaceGameSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
bannerUrl
public GameSummary._FinalStage bannerUrl(java.util.Optional<java.lang.String> bannerUrl)
- Specified by:
bannerUrlin interfaceGameSummary._FinalStage
-
logoUrl
public GameSummary._FinalStage logoUrl(java.lang.String logoUrl)
The URL of this game's logo image.
- Specified by:
logoUrlin interfaceGameSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
logoUrl
public GameSummary._FinalStage logoUrl(java.util.Optional<java.lang.String> logoUrl)
- Specified by:
logoUrlin interfaceGameSummary._FinalStage
-
totalPlayerCount
public GameSummary._FinalStage totalPlayerCount(java.lang.Integer totalPlayerCount)
Unsigned 32 bit integer.
- Specified by:
totalPlayerCountin interfaceGameSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalPlayerCount
public GameSummary._FinalStage totalPlayerCount(java.util.Optional<java.lang.Integer> totalPlayerCount)
- Specified by:
totalPlayerCountin interfaceGameSummary._FinalStage
-
build
public GameSummary build()
- Specified by:
buildin interfaceGameSummary._FinalStage
-
-