@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Instance extends Object implements Serializable, Cloneable, StructuredPojo
Represents a virtual computing instance that runs game server processes and hosts game sessions. In Amazon GameLift, one or more instances make up a managed EC2 fleet.
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(Object obj) |
Date |
getCreationTime()
A time stamp indicating when this data object was created.
|
String |
getDnsName()
The DNS identifier assigned to the instance that is running the game session.
|
String |
getFleetArn()
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.
|
String |
getFleetId()
A unique identifier for the fleet that the instance belongs to.
|
String |
getInstanceId()
A unique identifier for the instance.
|
String |
getIpAddress()
IP address that is assigned to the instance.
|
String |
getLocation()
The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2 . |
String |
getOperatingSystem()
Operating system that is running on this EC2 instance.
|
String |
getStatus()
Current status of the instance.
|
String |
getType()
EC2 instance type that defines the computing resources of this instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreationTime(Date creationTime)
A time stamp indicating when this data object was created.
|
void |
setDnsName(String dnsName)
The DNS identifier assigned to the instance that is running the game session.
|
void |
setFleetArn(String fleetArn)
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.
|
void |
setFleetId(String fleetId)
A unique identifier for the fleet that the instance belongs to.
|
void |
setInstanceId(String instanceId)
A unique identifier for the instance.
|
void |
setIpAddress(String ipAddress)
IP address that is assigned to the instance.
|
void |
setLocation(String location)
The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2 . |
void |
setOperatingSystem(OperatingSystem operatingSystem)
Operating system that is running on this EC2 instance.
|
void |
setOperatingSystem(String operatingSystem)
Operating system that is running on this EC2 instance.
|
void |
setStatus(InstanceStatus status)
Current status of the instance.
|
void |
setStatus(String status)
Current status of the instance.
|
void |
setType(EC2InstanceType type)
EC2 instance type that defines the computing resources of this instance.
|
void |
setType(String type)
EC2 instance type that defines the computing resources of this instance.
|
String |
toString()
Returns a string representation of this object.
|
Instance |
withCreationTime(Date creationTime)
A time stamp indicating when this data object was created.
|
Instance |
withDnsName(String dnsName)
The DNS identifier assigned to the instance that is running the game session.
|
Instance |
withFleetArn(String fleetArn)
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.
|
Instance |
withFleetId(String fleetId)
A unique identifier for the fleet that the instance belongs to.
|
Instance |
withInstanceId(String instanceId)
A unique identifier for the instance.
|
Instance |
withIpAddress(String ipAddress)
IP address that is assigned to the instance.
|
Instance |
withLocation(String location)
The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2 . |
Instance |
withOperatingSystem(OperatingSystem operatingSystem)
Operating system that is running on this EC2 instance.
|
Instance |
withOperatingSystem(String operatingSystem)
Operating system that is running on this EC2 instance.
|
Instance |
withStatus(InstanceStatus status)
Current status of the instance.
|
Instance |
withStatus(String status)
Current status of the instance.
|
Instance |
withType(EC2InstanceType type)
EC2 instance type that defines the computing resources of this instance.
|
Instance |
withType(String type)
EC2 instance type that defines the computing resources of this instance.
|
public void setFleetId(String fleetId)
A unique identifier for the fleet that the instance belongs to.
fleetId
- A unique identifier for the fleet that the instance belongs to.public String getFleetId()
A unique identifier for the fleet that the instance belongs to.
public Instance withFleetId(String fleetId)
A unique identifier for the fleet that the instance belongs to.
fleetId
- A unique identifier for the fleet that the instance belongs to.public void setFleetArn(String fleetArn)
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all
Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
fleetArn
- The Amazon Resource Name (ARN) that is assigned to a
Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.public String getFleetArn()
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all
Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.public Instance withFleetArn(String fleetArn)
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all
Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
fleetArn
- The Amazon Resource Name (ARN) that is assigned to a
Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.public void setInstanceId(String instanceId)
A unique identifier for the instance.
instanceId
- A unique identifier for the instance.public String getInstanceId()
A unique identifier for the instance.
public Instance withInstanceId(String instanceId)
A unique identifier for the instance.
instanceId
- A unique identifier for the instance.public void setIpAddress(String ipAddress)
IP address that is assigned to the instance.
ipAddress
- IP address that is assigned to the instance.public String getIpAddress()
IP address that is assigned to the instance.
public Instance withIpAddress(String ipAddress)
IP address that is assigned to the instance.
ipAddress
- IP address that is assigned to the instance.public void setDnsName(String dnsName)
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon Elastic Compute Cloud Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
dnsName
- The DNS identifier assigned to the instance that is running the game session. Values have the following
format:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon Elastic Compute Cloud Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
public String getDnsName()
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon Elastic Compute Cloud Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon Elastic Compute Cloud Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
public Instance withDnsName(String dnsName)
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon Elastic Compute Cloud Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
dnsName
- The DNS identifier assigned to the instance that is running the game session. Values have the following
format:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon Elastic Compute Cloud Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
public void setOperatingSystem(String operatingSystem)
Operating system that is running on this EC2 instance.
operatingSystem
- Operating system that is running on this EC2 instance.OperatingSystem
public String getOperatingSystem()
Operating system that is running on this EC2 instance.
OperatingSystem
public Instance withOperatingSystem(String operatingSystem)
Operating system that is running on this EC2 instance.
operatingSystem
- Operating system that is running on this EC2 instance.OperatingSystem
public void setOperatingSystem(OperatingSystem operatingSystem)
Operating system that is running on this EC2 instance.
operatingSystem
- Operating system that is running on this EC2 instance.OperatingSystem
public Instance withOperatingSystem(OperatingSystem operatingSystem)
Operating system that is running on this EC2 instance.
operatingSystem
- Operating system that is running on this EC2 instance.OperatingSystem
public void setType(String type)
EC2 instance type that defines the computing resources of this instance.
type
- EC2 instance type that defines the computing resources of this instance.EC2InstanceType
public String getType()
EC2 instance type that defines the computing resources of this instance.
EC2InstanceType
public Instance withType(String type)
EC2 instance type that defines the computing resources of this instance.
type
- EC2 instance type that defines the computing resources of this instance.EC2InstanceType
public void setType(EC2InstanceType type)
EC2 instance type that defines the computing resources of this instance.
type
- EC2 instance type that defines the computing resources of this instance.EC2InstanceType
public Instance withType(EC2InstanceType type)
EC2 instance type that defines the computing resources of this instance.
type
- EC2 instance type that defines the computing resources of this instance.EC2InstanceType
public void setStatus(String status)
Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
status
- Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
InstanceStatus
public String getStatus()
Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
InstanceStatus
public Instance withStatus(String status)
Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
status
- Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
InstanceStatus
public void setStatus(InstanceStatus status)
Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
status
- Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
InstanceStatus
public Instance withStatus(InstanceStatus status)
Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
status
- Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
InstanceStatus
public void setCreationTime(Date creationTime)
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057"
).
creationTime
- A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057"
).public Date getCreationTime()
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057"
).
"1469498468.057"
).public Instance withCreationTime(Date creationTime)
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057"
).
creationTime
- A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057"
).public void setLocation(String location)
The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2
.
location
- The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2
.public String getLocation()
The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2
.
us-west-2
.public Instance withLocation(String location)
The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2
.
location
- The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.