public class FleetAttributes
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
General properties describing a fleet.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
buildId
Unique identifier for a build.
|
private java.util.Date |
creationTime
Time stamp indicating when this object was created.
|
private java.lang.String |
description
Human-readable description of the fleet.
|
private java.lang.String |
fleetId
Unique identifier for a fleet.
|
private java.util.List<java.lang.String> |
logPaths
Path to game-session log files generated by your game server.
|
private java.lang.String |
name
Descriptive label associated with this fleet.
|
private java.lang.String |
newGameSessionProtectionPolicy
Type of game session protection to set for all new instances started in
the fleet.
|
private java.lang.String |
serverLaunchParameters
Parameters required to launch your game server.
|
private java.lang.String |
serverLaunchPath
Path to the launch executable for the game server.
|
private java.lang.String |
status
Current status of the fleet.
|
private java.util.Date |
terminationTime
Time stamp indicating when this fleet was terminated.
|
Constructor and Description |
---|
FleetAttributes() |
Modifier and Type | Method and Description |
---|---|
FleetAttributes |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBuildId()
Unique identifier for a build.
|
java.util.Date |
getCreationTime()
Time stamp indicating when this object was created.
|
java.lang.String |
getDescription()
Human-readable description of the fleet.
|
java.lang.String |
getFleetId()
Unique identifier for a fleet.
|
java.util.List<java.lang.String> |
getLogPaths()
Path to game-session log files generated by your game server.
|
java.lang.String |
getName()
Descriptive label associated with this fleet.
|
java.lang.String |
getNewGameSessionProtectionPolicy()
Type of game session protection to set for all new instances started in
the fleet.
|
java.lang.String |
getServerLaunchParameters()
Parameters required to launch your game server.
|
java.lang.String |
getServerLaunchPath()
Path to the launch executable for the game server.
|
java.lang.String |
getStatus()
Current status of the fleet.
|
java.util.Date |
getTerminationTime()
Time stamp indicating when this fleet was terminated.
|
int |
hashCode() |
void |
setBuildId(java.lang.String buildId)
Unique identifier for a build.
|
void |
setCreationTime(java.util.Date creationTime)
Time stamp indicating when this object was created.
|
void |
setDescription(java.lang.String description)
Human-readable description of the fleet.
|
void |
setFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
|
void |
setLogPaths(java.util.Collection<java.lang.String> logPaths)
Path to game-session log files generated by your game server.
|
void |
setName(java.lang.String name)
Descriptive label associated with this fleet.
|
void |
setNewGameSessionProtectionPolicy(ProtectionPolicy newGameSessionProtectionPolicy)
Type of game session protection to set for all new instances started in
the fleet.
|
void |
setNewGameSessionProtectionPolicy(java.lang.String newGameSessionProtectionPolicy)
Type of game session protection to set for all new instances started in
the fleet.
|
void |
setServerLaunchParameters(java.lang.String serverLaunchParameters)
Parameters required to launch your game server.
|
void |
setServerLaunchPath(java.lang.String serverLaunchPath)
Path to the launch executable for the game server.
|
void |
setStatus(FleetStatus status)
Current status of the fleet.
|
void |
setStatus(java.lang.String status)
Current status of the fleet.
|
void |
setTerminationTime(java.util.Date terminationTime)
Time stamp indicating when this fleet was terminated.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FleetAttributes |
withBuildId(java.lang.String buildId)
Unique identifier for a build.
|
FleetAttributes |
withCreationTime(java.util.Date creationTime)
Time stamp indicating when this object was created.
|
FleetAttributes |
withDescription(java.lang.String description)
Human-readable description of the fleet.
|
FleetAttributes |
withFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
|
FleetAttributes |
withLogPaths(java.util.Collection<java.lang.String> logPaths)
Path to game-session log files generated by your game server.
|
FleetAttributes |
withLogPaths(java.lang.String... logPaths)
Path to game-session log files generated by your game server.
|
FleetAttributes |
withName(java.lang.String name)
Descriptive label associated with this fleet.
|
FleetAttributes |
withNewGameSessionProtectionPolicy(ProtectionPolicy newGameSessionProtectionPolicy)
Type of game session protection to set for all new instances started in
the fleet.
|
FleetAttributes |
withNewGameSessionProtectionPolicy(java.lang.String newGameSessionProtectionPolicy)
Type of game session protection to set for all new instances started in
the fleet.
|
FleetAttributes |
withServerLaunchParameters(java.lang.String serverLaunchParameters)
Parameters required to launch your game server.
|
FleetAttributes |
withServerLaunchPath(java.lang.String serverLaunchPath)
Path to the launch executable for the game server.
|
FleetAttributes |
withStatus(FleetStatus status)
Current status of the fleet.
|
FleetAttributes |
withStatus(java.lang.String status)
Current status of the fleet.
|
FleetAttributes |
withTerminationTime(java.util.Date terminationTime)
Time stamp indicating when this fleet was terminated.
|
private java.lang.String fleetId
Unique identifier for a fleet.
private java.lang.String description
Human-readable description of the fleet.
private java.lang.String name
Descriptive label associated with this fleet. Fleet names do not need to be unique.
private java.util.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).
private java.util.Date terminationTime
Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
private java.lang.String status
Current status of the fleet. Possible fleet states include:
private java.lang.String buildId
Unique identifier for a build.
private java.lang.String serverLaunchPath
Path to the launch executable for the game server. A game server is built
into a C:\game
drive. This value must be expressed as
C:\game\[launchpath]
. Example: If, when built, your game
server files are in a folder called "MyGame", your log path should be
C:\game\MyGame\server.exe
.
private java.lang.String serverLaunchParameters
Parameters required to launch your game server. These parameters should be expressed as a string of command-line parameters. Example: "+sv_port 33435 +start_lobby".
private java.util.List<java.lang.String> logPaths
Path to game-session log files generated by your game server. Once a game session has been terminated, Amazon GameLift captures and stores the logs on Amazon S3. Use the GameLift console to access the stored logs.
private java.lang.String newGameSessionProtectionPolicy
Type of game session protection to set for all new instances started in the fleet.
public void setFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
fleetId
- Unique identifier for a fleet.public java.lang.String getFleetId()
Unique identifier for a fleet.
public FleetAttributes withFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
fleetId
- Unique identifier for a fleet.public void setDescription(java.lang.String description)
Human-readable description of the fleet.
description
- Human-readable description of the fleet.public java.lang.String getDescription()
Human-readable description of the fleet.
public FleetAttributes withDescription(java.lang.String description)
Human-readable description of the fleet.
description
- Human-readable description of the fleet.public void setName(java.lang.String name)
Descriptive label associated with this fleet. Fleet names do not need to be unique.
name
- Descriptive label associated with this fleet. Fleet names do not
need to be unique.public java.lang.String getName()
Descriptive label associated with this fleet. Fleet names do not need to be unique.
public FleetAttributes withName(java.lang.String name)
Descriptive label associated with this fleet. Fleet names do not need to be unique.
name
- Descriptive label associated with this fleet. Fleet names do not
need to be unique.public void setCreationTime(java.util.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).
creationTime
- Time stamp indicating when this object was created. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public java.util.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).
public FleetAttributes withCreationTime(java.util.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).
creationTime
- Time stamp indicating when this object was created. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public void setTerminationTime(java.util.Date terminationTime)
Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
terminationTime
- Time stamp indicating when this fleet was terminated. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public java.util.Date getTerminationTime()
Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
public FleetAttributes withTerminationTime(java.util.Date terminationTime)
Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).
terminationTime
- Time stamp indicating when this fleet was terminated. Format is an
integer representing the number of seconds since the Unix epoch
(Unix time).public void setStatus(java.lang.String status)
Current status of the fleet. Possible fleet states include:
status
- Current status of the fleet. Possible fleet states include:
FleetStatus
public java.lang.String getStatus()
Current status of the fleet. Possible fleet states include:
FleetStatus
public FleetAttributes withStatus(java.lang.String status)
Current status of the fleet. Possible fleet states include:
status
- Current status of the fleet. Possible fleet states include:
FleetStatus
public void setStatus(FleetStatus status)
Current status of the fleet. Possible fleet states include:
status
- Current status of the fleet. Possible fleet states include:
FleetStatus
public FleetAttributes withStatus(FleetStatus status)
Current status of the fleet. Possible fleet states include:
status
- Current status of the fleet. Possible fleet states include:
FleetStatus
public void setBuildId(java.lang.String buildId)
Unique identifier for a build.
buildId
- Unique identifier for a build.public java.lang.String getBuildId()
Unique identifier for a build.
public FleetAttributes withBuildId(java.lang.String buildId)
Unique identifier for a build.
buildId
- Unique identifier for a build.public void setServerLaunchPath(java.lang.String serverLaunchPath)
Path to the launch executable for the game server. A game server is built
into a C:\game
drive. This value must be expressed as
C:\game\[launchpath]
. Example: If, when built, your game
server files are in a folder called "MyGame", your log path should be
C:\game\MyGame\server.exe
.
serverLaunchPath
- Path to the launch executable for the game server. A game server
is built into a C:\game
drive. This value must be
expressed as C:\game\[launchpath]
. Example: If, when
built, your game server files are in a folder called "MyGame",
your log path should be C:\game\MyGame\server.exe
.public java.lang.String getServerLaunchPath()
Path to the launch executable for the game server. A game server is built
into a C:\game
drive. This value must be expressed as
C:\game\[launchpath]
. Example: If, when built, your game
server files are in a folder called "MyGame", your log path should be
C:\game\MyGame\server.exe
.
C:\game
drive. This value must be
expressed as C:\game\[launchpath]
. Example: If, when
built, your game server files are in a folder called "MyGame",
your log path should be C:\game\MyGame\server.exe
.public FleetAttributes withServerLaunchPath(java.lang.String serverLaunchPath)
Path to the launch executable for the game server. A game server is built
into a C:\game
drive. This value must be expressed as
C:\game\[launchpath]
. Example: If, when built, your game
server files are in a folder called "MyGame", your log path should be
C:\game\MyGame\server.exe
.
serverLaunchPath
- Path to the launch executable for the game server. A game server
is built into a C:\game
drive. This value must be
expressed as C:\game\[launchpath]
. Example: If, when
built, your game server files are in a folder called "MyGame",
your log path should be C:\game\MyGame\server.exe
.public void setServerLaunchParameters(java.lang.String serverLaunchParameters)
Parameters required to launch your game server. These parameters should be expressed as a string of command-line parameters. Example: "+sv_port 33435 +start_lobby".
serverLaunchParameters
- Parameters required to launch your game server. These parameters
should be expressed as a string of command-line parameters.
Example: "+sv_port 33435 +start_lobby".public java.lang.String getServerLaunchParameters()
Parameters required to launch your game server. These parameters should be expressed as a string of command-line parameters. Example: "+sv_port 33435 +start_lobby".
public FleetAttributes withServerLaunchParameters(java.lang.String serverLaunchParameters)
Parameters required to launch your game server. These parameters should be expressed as a string of command-line parameters. Example: "+sv_port 33435 +start_lobby".
serverLaunchParameters
- Parameters required to launch your game server. These parameters
should be expressed as a string of command-line parameters.
Example: "+sv_port 33435 +start_lobby".public java.util.List<java.lang.String> getLogPaths()
Path to game-session log files generated by your game server. Once a game session has been terminated, Amazon GameLift captures and stores the logs on Amazon S3. Use the GameLift console to access the stored logs.
public void setLogPaths(java.util.Collection<java.lang.String> logPaths)
Path to game-session log files generated by your game server. Once a game session has been terminated, Amazon GameLift captures and stores the logs on Amazon S3. Use the GameLift console to access the stored logs.
logPaths
- Path to game-session log files generated by your game server. Once
a game session has been terminated, Amazon GameLift captures and
stores the logs on Amazon S3. Use the GameLift console to access
the stored logs.public FleetAttributes withLogPaths(java.lang.String... logPaths)
Path to game-session log files generated by your game server. Once a game session has been terminated, Amazon GameLift captures and stores the logs on Amazon S3. Use the GameLift console to access the stored logs.
NOTE: This method appends the values to the existing list (if
any). Use setLogPaths(java.util.Collection)
or
withLogPaths(java.util.Collection)
if you want to override the
existing values.
logPaths
- Path to game-session log files generated by your game server. Once
a game session has been terminated, Amazon GameLift captures and
stores the logs on Amazon S3. Use the GameLift console to access
the stored logs.public FleetAttributes withLogPaths(java.util.Collection<java.lang.String> logPaths)
Path to game-session log files generated by your game server. Once a game session has been terminated, Amazon GameLift captures and stores the logs on Amazon S3. Use the GameLift console to access the stored logs.
logPaths
- Path to game-session log files generated by your game server. Once
a game session has been terminated, Amazon GameLift captures and
stores the logs on Amazon S3. Use the GameLift console to access
the stored logs.public void setNewGameSessionProtectionPolicy(java.lang.String newGameSessionProtectionPolicy)
Type of game session protection to set for all new instances started in the fleet.
newGameSessionProtectionPolicy
- Type of game session protection to set for all new instances
started in the fleet.
ProtectionPolicy
public java.lang.String getNewGameSessionProtectionPolicy()
Type of game session protection to set for all new instances started in the fleet.
ProtectionPolicy
public FleetAttributes withNewGameSessionProtectionPolicy(java.lang.String newGameSessionProtectionPolicy)
Type of game session protection to set for all new instances started in the fleet.
newGameSessionProtectionPolicy
- Type of game session protection to set for all new instances
started in the fleet.
ProtectionPolicy
public void setNewGameSessionProtectionPolicy(ProtectionPolicy newGameSessionProtectionPolicy)
Type of game session protection to set for all new instances started in the fleet.
newGameSessionProtectionPolicy
- Type of game session protection to set for all new instances
started in the fleet.
ProtectionPolicy
public FleetAttributes withNewGameSessionProtectionPolicy(ProtectionPolicy newGameSessionProtectionPolicy)
Type of game session protection to set for all new instances started in the fleet.
newGameSessionProtectionPolicy
- Type of game session protection to set for all new instances
started in the fleet.
ProtectionPolicy
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public FleetAttributes clone()
clone
in class java.lang.Object