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 Buildclone()booleanequals(Object obj)StringgetBuildId()Unique identifier for a build.DategetCreationTime()Time stamp indicating when this object was created.StringgetName()Descriptive label associated with this build.LonggetSizeOnDisk()File size of the uploaded game build, expressed in bytes.StringgetStatus()Current status of the build.StringgetVersion()Version associated with this build.inthashCode()voidsetBuildId(String buildId)Unique identifier for a build.voidsetCreationTime(Date creationTime)Time stamp indicating when this object was created.voidsetName(String name)Descriptive label associated with this build.voidsetSizeOnDisk(Long sizeOnDisk)File size of the uploaded game build, expressed in bytes.voidsetStatus(BuildStatus status)Current status of the build.voidsetStatus(String status)Current status of the build.voidsetVersion(String version)Version associated with this build.StringtoString()Returns a string representation of this object; useful for testing and debugging.BuildwithBuildId(String buildId)Unique identifier for a build.BuildwithCreationTime(Date creationTime)Time stamp indicating when this object was created.BuildwithName(String name)Descriptive label associated with this build.BuildwithSizeOnDisk(Long sizeOnDisk)File size of the uploaded game build, expressed in bytes.BuildwithStatus(BuildStatus status)Current status of the build.BuildwithStatus(String status)Current status of the build.BuildwithVersion(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-