Class Build
- java.lang.Object
-
- com.amazonaws.services.gamelift.model.Build
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Build extends Object implements Serializable, Cloneable
Properties describing a game build.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Build()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Build
clone()
boolean
equals(Object obj)
String
getBuildId()
Unique identifier for a build.Date
getCreationTime()
Time stamp indicating when this object was created.String
getName()
Descriptive label associated with this build.Long
getSizeOnDisk()
File size of the uploaded game build, expressed in bytes.String
getStatus()
Current status of the build.String
getVersion()
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
setName(String name)
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
setStatus(String status)
Current status of the build.void
setVersion(String version)
Version associated with this build.String
toString()
Returns a string representation of this object; useful for testing and debugging.Build
withBuildId(String buildId)
Unique identifier for a build.Build
withCreationTime(Date creationTime)
Time stamp indicating when this object was created.Build
withName(String name)
Descriptive label associated with this build.Build
withSizeOnDisk(Long sizeOnDisk)
File size of the uploaded game build, expressed in bytes.Build
withStatus(BuildStatus status)
Current status of the build.Build
withStatus(String status)
Current status of the build.Build
withVersion(String version)
Version associated with this build.
-
-
-
Method Detail
-
setBuildId
public void setBuildId(String buildId)
Unique identifier for a build.
- Parameters:
buildId
- Unique identifier for a build.
-
getBuildId
public String getBuildId()
Unique identifier for a build.
- Returns:
- Unique identifier for a build.
-
withBuildId
public Build withBuildId(String buildId)
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
public void setName(String name)
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
public String 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
public Build withName(String name)
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
public void setVersion(String 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.
- 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
public String 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
public Build withVersion(String 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.
- 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
public void setStatus(String 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.
- 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:
BuildStatus
-
getStatus
public String 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:
BuildStatus
-
withStatus
public Build withStatus(String 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.
- 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:
BuildStatus
-
setStatus
public void setStatus(BuildStatus 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.
- 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:
BuildStatus
-
withStatus
public Build withStatus(BuildStatus 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.
- 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:
BuildStatus
-
setSizeOnDisk
public void setSizeOnDisk(Long sizeOnDisk)
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
public Long 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
public Build withSizeOnDisk(Long sizeOnDisk)
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
public void setCreationTime(Date creationTime)
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
public Date 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
public Build withCreationTime(Date creationTime)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-