@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Compute extends Object implements Serializable, Cloneable, StructuredPojo
This data type has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview.
An Amazon GameLift compute resource for hosting your game servers. Computes in an Amazon GameLift fleet differs depending on the fleet's compute type property as follows:
For EC2
fleets, a compute is an EC2 instance.
For ANYWHERE
fleets, a compute is a computing resource that you provide and is registered to the fleet.
For CONTAINER
fleets, a compute is a container that's registered to the fleet.
Constructor and Description |
---|
Compute() |
Modifier and Type | Method and Description |
---|---|
Compute |
clone() |
boolean |
equals(Object obj) |
String |
getComputeArn()
The ARN that is assigned to a compute resource and uniquely identifies it.
|
String |
getComputeName()
A descriptive label for the compute resource.
|
String |
getComputeStatus()
Current status of the compute.
|
ContainerAttributes |
getContainerAttributes()
Some attributes of a container.
|
Date |
getCreationTime()
A time stamp indicating when this data object was created.
|
String |
getDnsName()
The DNS name of a compute resource.
|
String |
getFleetArn()
The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
|
String |
getFleetId()
A unique identifier for the fleet that the compute belongs to.
|
String |
getGameLiftAgentEndpoint()
The endpoint of the Amazon GameLift Agent.
|
String |
getGameLiftServiceSdkEndpoint()
The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet.
|
String |
getInstanceId()
The
InstanceID of the Instance hosting the compute for Container and Managed EC2
fleets. |
String |
getIpAddress()
The IP address of a compute resource.
|
String |
getLocation()
The name of the custom location you added to the fleet that this compute resource resides in.
|
String |
getOperatingSystem()
The type of operating system on the compute resource.
|
String |
getType()
The Amazon EC2 instance type that the fleet uses.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComputeArn(String computeArn)
The ARN that is assigned to a compute resource and uniquely identifies it.
|
void |
setComputeName(String computeName)
A descriptive label for the compute resource.
|
void |
setComputeStatus(String computeStatus)
Current status of the compute.
|
void |
setContainerAttributes(ContainerAttributes containerAttributes)
Some attributes of a container.
|
void |
setCreationTime(Date creationTime)
A time stamp indicating when this data object was created.
|
void |
setDnsName(String dnsName)
The DNS name of a compute resource.
|
void |
setFleetArn(String fleetArn)
The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
|
void |
setFleetId(String fleetId)
A unique identifier for the fleet that the compute belongs to.
|
void |
setGameLiftAgentEndpoint(String gameLiftAgentEndpoint)
The endpoint of the Amazon GameLift Agent.
|
void |
setGameLiftServiceSdkEndpoint(String gameLiftServiceSdkEndpoint)
The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet.
|
void |
setInstanceId(String instanceId)
The
InstanceID of the Instance hosting the compute for Container and Managed EC2
fleets. |
void |
setIpAddress(String ipAddress)
The IP address of a compute resource.
|
void |
setLocation(String location)
The name of the custom location you added to the fleet that this compute resource resides in.
|
void |
setOperatingSystem(String operatingSystem)
The type of operating system on the compute resource.
|
void |
setType(String type)
The Amazon EC2 instance type that the fleet uses.
|
String |
toString()
Returns a string representation of this object.
|
Compute |
withComputeArn(String computeArn)
The ARN that is assigned to a compute resource and uniquely identifies it.
|
Compute |
withComputeName(String computeName)
A descriptive label for the compute resource.
|
Compute |
withComputeStatus(ComputeStatus computeStatus)
Current status of the compute.
|
Compute |
withComputeStatus(String computeStatus)
Current status of the compute.
|
Compute |
withContainerAttributes(ContainerAttributes containerAttributes)
Some attributes of a container.
|
Compute |
withCreationTime(Date creationTime)
A time stamp indicating when this data object was created.
|
Compute |
withDnsName(String dnsName)
The DNS name of a compute resource.
|
Compute |
withFleetArn(String fleetArn)
The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
|
Compute |
withFleetId(String fleetId)
A unique identifier for the fleet that the compute belongs to.
|
Compute |
withGameLiftAgentEndpoint(String gameLiftAgentEndpoint)
The endpoint of the Amazon GameLift Agent.
|
Compute |
withGameLiftServiceSdkEndpoint(String gameLiftServiceSdkEndpoint)
The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet.
|
Compute |
withInstanceId(String instanceId)
The
InstanceID of the Instance hosting the compute for Container and Managed EC2
fleets. |
Compute |
withIpAddress(String ipAddress)
The IP address of a compute resource.
|
Compute |
withLocation(String location)
The name of the custom location you added to the fleet that this compute resource resides in.
|
Compute |
withOperatingSystem(OperatingSystem operatingSystem)
The type of operating system on the compute resource.
|
Compute |
withOperatingSystem(String operatingSystem)
The type of operating system on the compute resource.
|
Compute |
withType(EC2InstanceType type)
The Amazon EC2 instance type that the fleet uses.
|
Compute |
withType(String type)
The Amazon EC2 instance type that the fleet uses.
|
public void setFleetId(String fleetId)
A unique identifier for the fleet that the compute belongs to.
fleetId
- A unique identifier for the fleet that the compute belongs to.public String getFleetId()
A unique identifier for the fleet that the compute belongs to.
public Compute withFleetId(String fleetId)
A unique identifier for the fleet that the compute belongs to.
fleetId
- A unique identifier for the fleet that the compute belongs to.public void setFleetArn(String fleetArn)
The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
fleetArn
- The Amazon Resource Name (ARN) of the fleet that the compute belongs to.public String getFleetArn()
The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
public Compute withFleetArn(String fleetArn)
The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
fleetArn
- The Amazon Resource Name (ARN) of the fleet that the compute belongs to.public void setComputeName(String computeName)
A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is the same
value as the InstanceId
ID.
computeName
- A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is
the same value as the InstanceId
ID.public String getComputeName()
A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is the same
value as the InstanceId
ID.
InstanceId
ID.public Compute withComputeName(String computeName)
A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is the same
value as the InstanceId
ID.
computeName
- A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is
the same value as the InstanceId
ID.public void setComputeArn(String computeArn)
The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across locations. Instances in managed EC2 fleets are not assigned a Compute ARN.
computeArn
- The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across
locations. Instances in managed EC2 fleets are not assigned a Compute ARN.public String getComputeArn()
The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across locations. Instances in managed EC2 fleets are not assigned a Compute ARN.
public Compute withComputeArn(String computeArn)
The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across locations. Instances in managed EC2 fleets are not assigned a Compute ARN.
computeArn
- The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across
locations. Instances in managed EC2 fleets are not assigned a Compute ARN.public void setIpAddress(String ipAddress)
The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
ipAddress
- The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.public String getIpAddress()
The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
public Compute withIpAddress(String ipAddress)
The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
ipAddress
- The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.public void setDnsName(String dnsName)
The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
dnsName
- The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.public String getDnsName()
The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
public Compute withDnsName(String dnsName)
The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
dnsName
- The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.public void setComputeStatus(String computeStatus)
Current status of the compute. A compute must have an ACTIVE
status to host game sessions.
computeStatus
- Current status of the compute. A compute must have an ACTIVE
status to host game sessions.ComputeStatus
public String getComputeStatus()
Current status of the compute. A compute must have an ACTIVE
status to host game sessions.
ACTIVE
status to host game sessions.ComputeStatus
public Compute withComputeStatus(String computeStatus)
Current status of the compute. A compute must have an ACTIVE
status to host game sessions.
computeStatus
- Current status of the compute. A compute must have an ACTIVE
status to host game sessions.ComputeStatus
public Compute withComputeStatus(ComputeStatus computeStatus)
Current status of the compute. A compute must have an ACTIVE
status to host game sessions.
computeStatus
- Current status of the compute. A compute must have an ACTIVE
status to host game sessions.ComputeStatus
public void setLocation(String location)
The name of the custom location you added to the fleet that this compute resource resides in.
location
- The name of the custom location you added to the fleet that this compute resource resides in.public String getLocation()
The name of the custom location you added to the fleet that this compute resource resides in.
public Compute withLocation(String location)
The name of the custom location you added to the fleet that this compute resource resides in.
location
- The name of the custom location you added to the fleet that this compute resource resides in.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 Compute 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 setOperatingSystem(String operatingSystem)
The type of operating system on the compute resource.
operatingSystem
- The type of operating system on the compute resource.OperatingSystem
public String getOperatingSystem()
The type of operating system on the compute resource.
OperatingSystem
public Compute withOperatingSystem(String operatingSystem)
The type of operating system on the compute resource.
operatingSystem
- The type of operating system on the compute resource.OperatingSystem
public Compute withOperatingSystem(OperatingSystem operatingSystem)
The type of operating system on the compute resource.
operatingSystem
- The type of operating system on the compute resource.OperatingSystem
public void setType(String type)
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
type
- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere
fleet, this property is empty.EC2InstanceType
public String getType()
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
EC2InstanceType
public Compute withType(String type)
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
type
- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere
fleet, this property is empty.EC2InstanceType
public Compute withType(EC2InstanceType type)
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
type
- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere
fleet, this property is empty.EC2InstanceType
public void setGameLiftServiceSdkEndpoint(String gameLiftServiceSdkEndpoint)
The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The game servers on the compute use this endpoint to connect to the Amazon GameLift service.
gameLiftServiceSdkEndpoint
- The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The
game servers on the compute use this endpoint to connect to the Amazon GameLift service.public String getGameLiftServiceSdkEndpoint()
The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The game servers on the compute use this endpoint to connect to the Amazon GameLift service.
public Compute withGameLiftServiceSdkEndpoint(String gameLiftServiceSdkEndpoint)
The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The game servers on the compute use this endpoint to connect to the Amazon GameLift service.
gameLiftServiceSdkEndpoint
- The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The
game servers on the compute use this endpoint to connect to the Amazon GameLift service.public void setGameLiftAgentEndpoint(String gameLiftAgentEndpoint)
The endpoint of the Amazon GameLift Agent.
gameLiftAgentEndpoint
- The endpoint of the Amazon GameLift Agent.public String getGameLiftAgentEndpoint()
The endpoint of the Amazon GameLift Agent.
public Compute withGameLiftAgentEndpoint(String gameLiftAgentEndpoint)
The endpoint of the Amazon GameLift Agent.
gameLiftAgentEndpoint
- The endpoint of the Amazon GameLift Agent.public void setInstanceId(String instanceId)
The InstanceID
of the Instance
hosting the compute for Container and Managed EC2
fleets.
instanceId
- The InstanceID
of the Instance
hosting the compute for Container and Managed EC2
fleets.public String getInstanceId()
The InstanceID
of the Instance
hosting the compute for Container and Managed EC2
fleets.
InstanceID
of the Instance
hosting the compute for Container and Managed
EC2 fleets.public Compute withInstanceId(String instanceId)
The InstanceID
of the Instance
hosting the compute for Container and Managed EC2
fleets.
instanceId
- The InstanceID
of the Instance
hosting the compute for Container and Managed EC2
fleets.public void setContainerAttributes(ContainerAttributes containerAttributes)
Some attributes of a container.
containerAttributes
- Some attributes of a container.public ContainerAttributes getContainerAttributes()
Some attributes of a container.
public Compute withContainerAttributes(ContainerAttributes containerAttributes)
Some attributes of a container.
containerAttributes
- Some attributes of a container.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.