Class Build
- All Implemented Interfaces:
Serializable
,Cloneable
Properties describing a game build.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Unique identifier for a build.Time stamp indicating when this object was created.getName()
Descriptive label associated with this build.File size of the uploaded game build, expressed in bytes.Current status of the build.Version associated with this build.int
hashCode()
void
setBuildId
(String buildId) Unique identifier for a build.void
setCreationTime
(Date creationTime) Time stamp indicating when this object was created.void
Descriptive label associated with this build.void
setSizeOnDisk
(Long sizeOnDisk) File size of the uploaded game build, expressed in bytes.void
setStatus
(BuildStatus status) Current status of the build.void
Current status of the build.void
setVersion
(String version) Version associated with this build.toString()
Returns a string representation of this object; useful for testing and debugging.withBuildId
(String buildId) Unique identifier for a build.withCreationTime
(Date creationTime) Time stamp indicating when this object was created.Descriptive label associated with this build.withSizeOnDisk
(Long sizeOnDisk) File size of the uploaded game build, expressed in bytes.withStatus
(BuildStatus status) Current status of the build.withStatus
(String status) Current status of the build.withVersion
(String version) Version associated with this build.
-
Constructor Details
-
Build
public Build()
-
-
Method Details
-
setBuildId
Unique identifier for a build.
- Parameters:
buildId
- Unique identifier for a build.
-
getBuildId
Unique identifier for a build.
- Returns:
- Unique identifier for a build.
-
withBuildId
Unique identifier for a build.
- Parameters:
buildId
- Unique identifier for a build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
Descriptive label associated with this build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.
- Parameters:
name
- Descriptive label associated with this build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.
-
getName
Descriptive label associated with this build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.
- Returns:
- Descriptive label associated with this build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.
-
withName
Descriptive label associated with this build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.
- Parameters:
name
- Descriptive label associated with this build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVersion
Version associated with this build. Version strings do not need to be unique to a build. This value can be set using CreateBuild or UpdateBuild.
- Parameters:
version
- Version associated with this build. Version strings do not need to be unique to a build. This value can be set using CreateBuild or UpdateBuild.
-
getVersion
Version associated with this build. Version strings do not need to be unique to a build. This value can be set using CreateBuild or UpdateBuild.
- Returns:
- Version associated with this build. Version strings do not need to be unique to a build. This value can be set using CreateBuild or UpdateBuild.
-
withVersion
Version associated with this build. Version strings do not need to be unique to a build. This value can be set using CreateBuild or UpdateBuild.
- Parameters:
version
- Version associated with this build. Version strings do not need to be unique to a build. This value can be set using CreateBuild or UpdateBuild.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
Current status of the build. Possible build states include:
- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- Parameters:
status
- Current status of the build. Possible build states include:- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- See Also:
-
getStatus
Current status of the build. Possible build states include:
- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- Returns:
- Current status of the build. Possible build states include:
- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- See Also:
-
withStatus
Current status of the build. Possible build states include:
- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- Parameters:
status
- Current status of the build. Possible build states include:- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStatus
Current status of the build. Possible build states include:
- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- Parameters:
status
- Current status of the build. Possible build states include:- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- See Also:
-
withStatus
Current status of the build. Possible build states include:
- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- Parameters:
status
- Current status of the build. Possible build states include:- INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
- READY: The game build has been successfully uploaded. You can now create new fleets for this build.
- FAILED: The game build upload failed. You cannot create new fleets for this build.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setSizeOnDisk
File size of the uploaded game build, expressed in bytes. When the build state is INITIALIZED, this value is 0.
- Parameters:
sizeOnDisk
- File size of the uploaded game build, expressed in bytes. When the build state is INITIALIZED, this value is 0.
-
getSizeOnDisk
File size of the uploaded game build, expressed in bytes. When the build state is INITIALIZED, this value is 0.
- Returns:
- File size of the uploaded game build, expressed in bytes. When the build state is INITIALIZED, this value is 0.
-
withSizeOnDisk
File size of the uploaded game build, expressed in bytes. When the build state is INITIALIZED, this value is 0.
- Parameters:
sizeOnDisk
- File size of the uploaded game build, expressed in bytes. When the build state is INITIALIZED, this value is 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationTime
Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
- Parameters:
creationTime
- Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
-
getCreationTime
Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
- Returns:
- Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
-
withCreationTime
Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
- Parameters:
creationTime
- Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-