@Generated(value="software.amazon.awssdk:codegen") public final class CreateFleetRequest extends GameLiftRequest implements ToCopyableBuilder<CreateFleetRequest.Builder,CreateFleetRequest>
Represents the input for a request action.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateFleetRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateFleetRequest.Builder |
builder() |
String |
buildId()
Unique identifier for a build to be deployed on the new fleet.
|
CertificateConfiguration |
certificateConfiguration()
Returns the value of the CertificateConfiguration property for this object.
|
String |
description()
Human-readable description of a fleet.
|
List<IpPermission> |
ec2InboundPermissions()
Range of IP addresses and port settings that permit inbound traffic to access game sessions that running on the
fleet.
|
EC2InstanceType |
ec2InstanceType()
Name of an EC2 instance type that is supported in Amazon GameLift.
|
String |
ec2InstanceTypeAsString()
Name of an EC2 instance type that is supported in Amazon GameLift.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FleetType |
fleetType()
Indicates whether to use on-demand instances or spot instances for this fleet.
|
String |
fleetTypeAsString()
Indicates whether to use on-demand instances or spot instances for this fleet.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceRoleArn()
Unique identifier for an AWS IAM role that manages access to your AWS services.
|
List<String> |
logPaths()
This parameter is no longer used.
|
List<String> |
metricGroups()
Name of an Amazon CloudWatch metric group to add this fleet to.
|
String |
name()
Descriptive label that is associated with a fleet.
|
ProtectionPolicy |
newGameSessionProtectionPolicy()
Game session protection policy to apply to all instances in this fleet.
|
String |
newGameSessionProtectionPolicyAsString()
Game session protection policy to apply to all instances in this fleet.
|
String |
peerVpcAwsAccountId()
Unique identifier for the AWS account with the VPC that you want to peer your Amazon GameLift fleet with.
|
String |
peerVpcId()
Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet.
|
ResourceCreationLimitPolicy |
resourceCreationLimitPolicy()
Policy that limits the number of game sessions an individual player can create over a span of time for this
fleet.
|
RuntimeConfiguration |
runtimeConfiguration()
Instructions for launching server processes on each instance in the fleet.
|
String |
scriptId()
Unique identifier for a Realtime script to be deployed on the new fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateFleetRequest.Builder> |
serializableBuilderClass() |
String |
serverLaunchParameters()
This parameter is no longer used.
|
String |
serverLaunchPath()
This parameter is no longer used.
|
CreateFleetRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
Descriptive label that is associated with a fleet. Fleet names do not need to be unique.
public String description()
Human-readable description of a fleet.
public String buildId()
Unique identifier for a build to be deployed on the new fleet. The custom game server build must have been
successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be
changed once the fleet is created.
READY status. This fleet setting
cannot be changed once the fleet is created.public String scriptId()
Unique identifier for a Realtime script to be deployed on the new fleet. The Realtime script must have been successfully uploaded to Amazon GameLift. This fleet setting cannot be changed once the fleet is created.
public String serverLaunchPath()
This parameter is no longer used. Instead, specify a server launch path using the
RuntimeConfiguration parameter. (Requests that specify a server launch path and launch parameters
instead of a run-time configuration will continue to work.)
RuntimeConfiguration parameter. (Requests that specify a server launch path and launch
parameters instead of a run-time configuration will continue to work.)public String serverLaunchParameters()
This parameter is no longer used. Instead, specify server launch parameters in the
RuntimeConfiguration parameter. (Requests that specify a server launch path and launch parameters
instead of a run-time configuration will continue to work.)
RuntimeConfiguration parameter. (Requests that specify a server launch path and launch
parameters instead of a run-time configuration will continue to work.)public List<String> logPaths()
This parameter is no longer used. Instead, to specify where Amazon GameLift should store log files once a server
process shuts down, use the Amazon GameLift server API ProcessReady() and specify one or more
directory paths in logParameters. See more information in the Server API Reference.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ProcessReady() and specify one
or more directory paths in logParameters. See more information in the Server API Reference.public EC2InstanceType ec2InstanceType()
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
If the service returns an enum value that is not available in the current SDK version, ec2InstanceType
will return EC2InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from ec2InstanceTypeAsString().
EC2InstanceTypepublic String ec2InstanceTypeAsString()
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
If the service returns an enum value that is not available in the current SDK version, ec2InstanceType
will return EC2InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from ec2InstanceTypeAsString().
EC2InstanceTypepublic List<IpPermission> ec2InboundPermissions()
Range of IP addresses and port settings that permit inbound traffic to access game sessions that running on the fleet. For fleets using a custom game build, this parameter is required before game sessions running on the fleet can accept connections. For Realtime Servers fleets, Amazon GameLift automatically sets TCP and UDP ranges for use by the Realtime servers. You can specify multiple permission settings or add more by updating the fleet.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ProtectionPolicy newGameSessionProtectionPolicy()
Game session protection policy to apply to all instances in this fleet. If this parameter is not set, instances in this fleet default to no protection. You can change a fleet's protection policy using UpdateFleetAttributes, but this change will only affect sessions created after the policy change. You can also set protection for individual instances using UpdateGameSession.
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()
Game session protection policy to apply to all instances in this fleet. If this parameter is not set, instances in this fleet default to no protection. You can change a fleet's protection policy using UpdateFleetAttributes, but this change will only affect sessions created after the policy change. You can also set protection for individual instances using UpdateGameSession.
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 RuntimeConfiguration runtimeConfiguration()
Instructions for launching server processes on each instance in the fleet. Server processes run either a custom game build executable or a Realtime Servers script. The run-time configuration lists the types of server processes to run on an instance and includes the following configuration settings: the server executable or launch script file, launch parameters, and the number of processes to run concurrently on each instance. A CreateFleet request must include a run-time configuration with at least one server process configuration.
public ResourceCreationLimitPolicy resourceCreationLimitPolicy()
Policy that limits the number of game sessions an individual player can create over a span of time for this fleet.
public List<String> metricGroups()
Name of an Amazon CloudWatch metric group to add this fleet to. A metric group aggregates the metrics for all fleets in the group. Specify an existing metric group name, or provide a new name to create a new metric group. A fleet can only be included in one metric group at a time.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String peerVpcAwsAccountId()
Unique identifier for the AWS account with the VPC that you want to peer your Amazon GameLift fleet with. You can find your Account ID in the AWS Management Console under account settings.
public String peerVpcId()
Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the same region where your fleet is deployed. Look up a VPC ID using the VPC Dashboard in the AWS Management Console. Learn more about VPC peering in VPC Peering with Amazon GameLift Fleets.
public FleetType fleetType()
Indicates whether to use on-demand instances or spot instances for this fleet. If empty, the default is ON_DEMAND. Both categories of instances use identical hardware and configurations based on the instance type selected for this fleet. Learn more about On-Demand versus Spot Instances.
If the service returns an enum value that is not available in the current SDK version, fleetType will
return FleetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
fleetTypeAsString().
FleetTypepublic String fleetTypeAsString()
Indicates whether to use on-demand instances or spot instances for this fleet. If empty, the default is ON_DEMAND. Both categories of instances use identical hardware and configurations based on the instance type selected for this fleet. Learn more about On-Demand versus Spot Instances.
If the service returns an enum value that is not available in the current SDK version, fleetType will
return FleetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
fleetTypeAsString().
FleetTypepublic String instanceRoleArn()
Unique identifier for an AWS IAM role that manages access to your AWS services. With an instance role ARN set, any application that runs on an instance in this fleet can assume the role, including install scripts, server processes, daemons (background processes). Create a role or look up a role's ARN using the IAM dashboard in the AWS Management Console. Learn more about using on-box credentials for your game servers at Access external resources from a game server.
public CertificateConfiguration certificateConfiguration()
public CreateFleetRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateFleetRequest.Builder,CreateFleetRequest>toBuilder in class GameLiftRequestpublic static CreateFleetRequest.Builder builder()
public static Class<? extends CreateFleetRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.