@Generated(value="software.amazon.awssdk:codegen") public class FleetAttributes extends Object implements StructuredPojo, ToCopyableBuilder<FleetAttributes.Builder,FleetAttributes>
General properties describing a fleet.
Fleet-related operations include:
Describe fleets:
Update fleets:
Manage fleet capacity:
PutScalingPolicy (automatic scaling)
DescribeScalingPolicies (automatic scaling)
DeleteScalingPolicy (automatic scaling)
| Modifier and Type | Class and Description |
|---|---|
static interface |
FleetAttributes.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FleetAttributes.Builder |
builder() |
String |
buildId()
Unique identifier for a build.
|
Instant |
creationTime()
Time stamp indicating when this data object was created.
|
String |
description()
Human-readable description of the fleet.
|
boolean |
equals(Object obj) |
String |
fleetArn()
Identifier for a fleet that is unique across all regions.
|
String |
fleetId()
Unique identifier for a fleet.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<String> |
logPaths()
Location of default log files.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
List<String> |
metricGroups()
Names of metric groups that this fleet is included in.
|
String |
name()
Descriptive label that is associated with a fleet.
|
ProtectionPolicy |
newGameSessionProtectionPolicy()
Type of game session protection to set for all new instances started in the fleet.
|
String |
newGameSessionProtectionPolicyAsString()
Type of game session protection to set for all new instances started in the fleet.
|
OperatingSystem |
operatingSystem()
Operating system of the fleet's computing resources.
|
String |
operatingSystemAsString()
Operating system of the fleet's computing resources.
|
ResourceCreationLimitPolicy |
resourceCreationLimitPolicy()
Fleet policy to limit the number of game sessions an individual player can create over a span of time.
|
static Class<? extends FleetAttributes.Builder> |
serializableBuilderClass() |
String |
serverLaunchParameters()
Game server launch parameters specified for fleets created before 2016-08-04 (or AWS SDK v.
|
String |
serverLaunchPath()
Path to a game server executable in the fleet's build, specified for fleets created before 2016-08-04 (or AWS SDK
v.
|
FleetStatus |
status()
Current status of the fleet.
|
String |
statusAsString()
Current status of the fleet.
|
Instant |
terminationTime()
Time stamp indicating when this data object was terminated.
|
FleetAttributes.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic String fleetId()
Unique identifier for a fleet.
public String fleetArn()
Identifier for a fleet that is unique across all regions.
public String description()
Human-readable description of the fleet.
public String name()
Descriptive label that is associated with a fleet. Fleet names do not need to be unique.
public Instant creationTime()
Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
public Instant terminationTime()
Time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
public FleetStatus status()
Current status of the fleet.
Possible fleet statuses include the following:
NEW -- A new fleet has been defined and desired instances is set to 1.
DOWNLOADING/VALIDATING/BUILDING/ACTIVATING -- Amazon GameLift is setting up the new fleet, creating new instances with the game build and starting server processes.
ACTIVE -- Hosts can now accept game sessions.
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
DELETING -- Hosts are responding to a delete fleet request.
TERMINATED -- The fleet no longer exists.
If the service returns an enum value that is not available in the current SDK version, status will
return FleetStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
Possible fleet statuses include the following:
NEW -- A new fleet has been defined and desired instances is set to 1.
DOWNLOADING/VALIDATING/BUILDING/ACTIVATING -- Amazon GameLift is setting up the new fleet, creating new instances with the game build and starting server processes.
ACTIVE -- Hosts can now accept game sessions.
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
DELETING -- Hosts are responding to a delete fleet request.
TERMINATED -- The fleet no longer exists.
FleetStatuspublic String statusAsString()
Current status of the fleet.
Possible fleet statuses include the following:
NEW -- A new fleet has been defined and desired instances is set to 1.
DOWNLOADING/VALIDATING/BUILDING/ACTIVATING -- Amazon GameLift is setting up the new fleet, creating new instances with the game build and starting server processes.
ACTIVE -- Hosts can now accept game sessions.
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
DELETING -- Hosts are responding to a delete fleet request.
TERMINATED -- The fleet no longer exists.
If the service returns an enum value that is not available in the current SDK version, status will
return FleetStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
Possible fleet statuses include the following:
NEW -- A new fleet has been defined and desired instances is set to 1.
DOWNLOADING/VALIDATING/BUILDING/ACTIVATING -- Amazon GameLift is setting up the new fleet, creating new instances with the game build and starting server processes.
ACTIVE -- Hosts can now accept game sessions.
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
DELETING -- Hosts are responding to a delete fleet request.
TERMINATED -- The fleet no longer exists.
FleetStatuspublic String buildId()
Unique identifier for a build.
public String serverLaunchPath()
Path to a game server executable in the fleet's build, specified for fleets created before 2016-08-04 (or AWS SDK v. 0.12.16). Server launch paths for fleets created after this date are specified in the fleet's RuntimeConfiguration.
public String serverLaunchParameters()
Game server launch parameters specified for fleets created before 2016-08-04 (or AWS SDK v. 0.12.16). Server launch parameters for fleets created after this date are specified in the fleet's RuntimeConfiguration.
public List<String> logPaths()
Location of default log files. When a server process is shut down, Amazon GameLift captures and stores any log
files in this location. These logs are in addition to game session logs; see more on game session logs in the Amazon GameLift Developer Guide. If no default log path for a fleet is specified, Amazon GameLift
automatically uploads logs that are stored on each instance at C:\game\logs (for Windows) or
/local/game/logs (for Linux). Use the Amazon GameLift console to access stored logs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
C:\game\logs (for Windows) or
/local/game/logs (for Linux). Use the Amazon GameLift console to access stored logs.public ProtectionPolicy newGameSessionProtectionPolicy()
Type of game session protection to set for all new instances started in the fleet.
NoProtection -- The game session can be terminated during a scale-down event.
FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during
a scale-down event.
If the service returns an enum value that is not available in the current SDK version,
newGameSessionProtectionPolicy will return ProtectionPolicy.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from newGameSessionProtectionPolicyAsString().
NoProtection -- The game session can be terminated during a scale-down event.
FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated
during a scale-down event.
ProtectionPolicypublic String newGameSessionProtectionPolicyAsString()
Type of game session protection to set for all new instances started in the fleet.
NoProtection -- The game session can be terminated during a scale-down event.
FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during
a scale-down event.
If the service returns an enum value that is not available in the current SDK version,
newGameSessionProtectionPolicy will return ProtectionPolicy.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from newGameSessionProtectionPolicyAsString().
NoProtection -- The game session can be terminated during a scale-down event.
FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated
during a scale-down event.
ProtectionPolicypublic OperatingSystem operatingSystem()
Operating system of the fleet's computing resources. A fleet's operating system depends on the OS specified for the build that is deployed on this fleet.
If the service returns an enum value that is not available in the current SDK version, operatingSystem
will return OperatingSystem.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from operatingSystemAsString().
OperatingSystempublic String operatingSystemAsString()
Operating system of the fleet's computing resources. A fleet's operating system depends on the OS specified for the build that is deployed on this fleet.
If the service returns an enum value that is not available in the current SDK version, operatingSystem
will return OperatingSystem.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from operatingSystemAsString().
OperatingSystempublic ResourceCreationLimitPolicy resourceCreationLimitPolicy()
Fleet policy to limit the number of game sessions an individual player can create over a span of time.
public List<String> metricGroups()
Names of metric groups that this fleet is included in. In Amazon CloudWatch, you can view metrics for an individual fleet or aggregated metrics for fleets that are in a fleet metric group. A fleet can be included in only one metric group at a time.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public FleetAttributes.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<FleetAttributes.Builder,FleetAttributes>public static FleetAttributes.Builder builder()
public static Class<? extends FleetAttributes.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.