@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GameServerInstance extends Object implements Serializable, Cloneable, StructuredPojo
This data type is used with the GameLift FleetIQ and game server groups.
Additional properties, including status, that describe an EC2 instance in a game server group. Instance
configurations are set with game server group properties (see DescribeGameServerGroup
and with the EC2
launch template that was used when creating the game server group.
Retrieve game server instances for a game server group by calling DescribeGameServerInstances
.
Related actions
CreateGameServerGroup | ListGameServerGroups | DescribeGameServerGroup | UpdateGameServerGroup | DeleteGameServerGroup | ResumeGameServerGroup | SuspendGameServerGroup | DescribeGameServerInstances | All APIs by task
Constructor and Description |
---|
GameServerInstance() |
Modifier and Type | Method and Description |
---|---|
GameServerInstance |
clone() |
boolean |
equals(Object obj) |
String |
getGameServerGroupArn()
A generated unique identifier for the game server group that includes the game server instance.
|
String |
getGameServerGroupName()
A developer-defined identifier for the game server group that includes the game server instance.
|
String |
getInstanceId()
The unique identifier for the instance where the game server is running.
|
String |
getInstanceStatus()
Current status of the game server instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGameServerGroupArn(String gameServerGroupArn)
A generated unique identifier for the game server group that includes the game server instance.
|
void |
setGameServerGroupName(String gameServerGroupName)
A developer-defined identifier for the game server group that includes the game server instance.
|
void |
setInstanceId(String instanceId)
The unique identifier for the instance where the game server is running.
|
void |
setInstanceStatus(String instanceStatus)
Current status of the game server instance.
|
String |
toString()
Returns a string representation of this object.
|
GameServerInstance |
withGameServerGroupArn(String gameServerGroupArn)
A generated unique identifier for the game server group that includes the game server instance.
|
GameServerInstance |
withGameServerGroupName(String gameServerGroupName)
A developer-defined identifier for the game server group that includes the game server instance.
|
GameServerInstance |
withInstanceId(String instanceId)
The unique identifier for the instance where the game server is running.
|
GameServerInstance |
withInstanceStatus(GameServerInstanceStatus instanceStatus)
Current status of the game server instance.
|
GameServerInstance |
withInstanceStatus(String instanceStatus)
Current status of the game server instance.
|
public void setGameServerGroupName(String gameServerGroupName)
A developer-defined identifier for the game server group that includes the game server instance. The name is unique for each Region in each AWS account.
gameServerGroupName
- A developer-defined identifier for the game server group that includes the game server instance. The name
is unique for each Region in each AWS account.public String getGameServerGroupName()
A developer-defined identifier for the game server group that includes the game server instance. The name is unique for each Region in each AWS account.
public GameServerInstance withGameServerGroupName(String gameServerGroupName)
A developer-defined identifier for the game server group that includes the game server instance. The name is unique for each Region in each AWS account.
gameServerGroupName
- A developer-defined identifier for the game server group that includes the game server instance. The name
is unique for each Region in each AWS account.public void setGameServerGroupArn(String gameServerGroupArn)
A generated unique identifier for the game server group that includes the game server instance.
gameServerGroupArn
- A generated unique identifier for the game server group that includes the game server instance.public String getGameServerGroupArn()
A generated unique identifier for the game server group that includes the game server instance.
public GameServerInstance withGameServerGroupArn(String gameServerGroupArn)
A generated unique identifier for the game server group that includes the game server instance.
gameServerGroupArn
- A generated unique identifier for the game server group that includes the game server instance.public void setInstanceId(String instanceId)
The unique identifier for the instance where the game server is running. This ID is available in the instance
metadata. EC2 instance IDs use a 17-character format, for example: i-1234567890abcdef0
.
instanceId
- The unique identifier for the instance where the game server is running. This ID is available in the
instance metadata. EC2 instance IDs use a 17-character format, for example:
i-1234567890abcdef0
.public String getInstanceId()
The unique identifier for the instance where the game server is running. This ID is available in the instance
metadata. EC2 instance IDs use a 17-character format, for example: i-1234567890abcdef0
.
i-1234567890abcdef0
.public GameServerInstance withInstanceId(String instanceId)
The unique identifier for the instance where the game server is running. This ID is available in the instance
metadata. EC2 instance IDs use a 17-character format, for example: i-1234567890abcdef0
.
instanceId
- The unique identifier for the instance where the game server is running. This ID is available in the
instance metadata. EC2 instance IDs use a 17-character format, for example:
i-1234567890abcdef0
.public void setInstanceStatus(String instanceStatus)
Current status of the game server instance.
ACTIVE -- The instance is viable for hosting game servers.
DRAINING -- The instance is not viable for hosting game servers. Existing game servers are in the process of ending, and new game servers are not started on this instance unless no other resources are available. When the instance is put in DRAINING, a new instance is started up to replace it. Once the instance has no UTILIZED game servers, it will be terminated in favor of the new instance.
SPOT_TERMINATING -- The instance is in the process of shutting down due to a Spot instance interruption. No new game servers are started on this instance.
instanceStatus
- Current status of the game server instance.
ACTIVE -- The instance is viable for hosting game servers.
DRAINING -- The instance is not viable for hosting game servers. Existing game servers are in the process of ending, and new game servers are not started on this instance unless no other resources are available. When the instance is put in DRAINING, a new instance is started up to replace it. Once the instance has no UTILIZED game servers, it will be terminated in favor of the new instance.
SPOT_TERMINATING -- The instance is in the process of shutting down due to a Spot instance interruption. No new game servers are started on this instance.
GameServerInstanceStatus
public String getInstanceStatus()
Current status of the game server instance.
ACTIVE -- The instance is viable for hosting game servers.
DRAINING -- The instance is not viable for hosting game servers. Existing game servers are in the process of ending, and new game servers are not started on this instance unless no other resources are available. When the instance is put in DRAINING, a new instance is started up to replace it. Once the instance has no UTILIZED game servers, it will be terminated in favor of the new instance.
SPOT_TERMINATING -- The instance is in the process of shutting down due to a Spot instance interruption. No new game servers are started on this instance.
ACTIVE -- The instance is viable for hosting game servers.
DRAINING -- The instance is not viable for hosting game servers. Existing game servers are in the process of ending, and new game servers are not started on this instance unless no other resources are available. When the instance is put in DRAINING, a new instance is started up to replace it. Once the instance has no UTILIZED game servers, it will be terminated in favor of the new instance.
SPOT_TERMINATING -- The instance is in the process of shutting down due to a Spot instance interruption. No new game servers are started on this instance.
GameServerInstanceStatus
public GameServerInstance withInstanceStatus(String instanceStatus)
Current status of the game server instance.
ACTIVE -- The instance is viable for hosting game servers.
DRAINING -- The instance is not viable for hosting game servers. Existing game servers are in the process of ending, and new game servers are not started on this instance unless no other resources are available. When the instance is put in DRAINING, a new instance is started up to replace it. Once the instance has no UTILIZED game servers, it will be terminated in favor of the new instance.
SPOT_TERMINATING -- The instance is in the process of shutting down due to a Spot instance interruption. No new game servers are started on this instance.
instanceStatus
- Current status of the game server instance.
ACTIVE -- The instance is viable for hosting game servers.
DRAINING -- The instance is not viable for hosting game servers. Existing game servers are in the process of ending, and new game servers are not started on this instance unless no other resources are available. When the instance is put in DRAINING, a new instance is started up to replace it. Once the instance has no UTILIZED game servers, it will be terminated in favor of the new instance.
SPOT_TERMINATING -- The instance is in the process of shutting down due to a Spot instance interruption. No new game servers are started on this instance.
GameServerInstanceStatus
public GameServerInstance withInstanceStatus(GameServerInstanceStatus instanceStatus)
Current status of the game server instance.
ACTIVE -- The instance is viable for hosting game servers.
DRAINING -- The instance is not viable for hosting game servers. Existing game servers are in the process of ending, and new game servers are not started on this instance unless no other resources are available. When the instance is put in DRAINING, a new instance is started up to replace it. Once the instance has no UTILIZED game servers, it will be terminated in favor of the new instance.
SPOT_TERMINATING -- The instance is in the process of shutting down due to a Spot instance interruption. No new game servers are started on this instance.
instanceStatus
- Current status of the game server instance.
ACTIVE -- The instance is viable for hosting game servers.
DRAINING -- The instance is not viable for hosting game servers. Existing game servers are in the process of ending, and new game servers are not started on this instance unless no other resources are available. When the instance is put in DRAINING, a new instance is started up to replace it. Once the instance has no UTILIZED game servers, it will be terminated in favor of the new instance.
SPOT_TERMINATING -- The instance is in the process of shutting down due to a Spot instance interruption. No new game servers are started on this instance.
GameServerInstanceStatus
public String toString()
toString
in class Object
Object.toString()
public GameServerInstance clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.