Class ContainerFleet

java.lang.Object
software.amazon.awssdk.services.gamelift.model.ContainerFleet
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ContainerFleet.Builder,ContainerFleet>

@Generated("software.amazon.awssdk:codegen") public final class ContainerFleet extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContainerFleet.Builder,ContainerFleet>

Describes an Amazon GameLift Servers managed container fleet.

See Also:
  • Method Details

    • fleetId

      public final String fleetId()

      A unique identifier for the container fleet to retrieve.

      Returns:
      A unique identifier for the container fleet to retrieve.
    • fleetArn

      public final String fleetArn()

      The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Servers 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. In a GameLift fleet ARN, the resource ID matches the FleetId value.

      Returns:
      The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Servers 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. In a GameLift fleet ARN, the resource ID matches the FleetId value.
    • fleetRoleArn

      public final String fleetRoleArn()

      The unique identifier for an Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift Servers. See Set up an IAM service role. This fleet property can't be changed.

      Returns:
      The unique identifier for an Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift Servers. See Set up an IAM service role. This fleet property can't be changed.
    • gameServerContainerGroupDefinitionName

      public final String gameServerContainerGroupDefinitionName()

      The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.

      Returns:
      The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.
    • gameServerContainerGroupDefinitionArn

      public final String gameServerContainerGroupDefinitionArn()

      The Amazon Resource Name (ARN) that is assigned to the fleet's game server container group. The ARN value also identifies the specific container group definition version in use.

      Returns:
      The Amazon Resource Name (ARN) that is assigned to the fleet's game server container group. The ARN value also identifies the specific container group definition version in use.
    • perInstanceContainerGroupDefinitionName

      public final String perInstanceContainerGroupDefinitionName()

      The name of the fleet's per-instance container group definition.

      Returns:
      The name of the fleet's per-instance container group definition.
    • perInstanceContainerGroupDefinitionArn

      public final String perInstanceContainerGroupDefinitionArn()

      The Amazon Resource Name (ARN) that is assigned to the fleet's per-instance container group. The ARN value also identifies the specific container group definition version in use.

      Returns:
      The Amazon Resource Name (ARN) that is assigned to the fleet's per-instance container group. The ARN value also identifies the specific container group definition version in use.
    • instanceConnectionPortRange

      public final ConnectionPortRange instanceConnectionPortRange()
      Returns the value of the InstanceConnectionPortRange property for this object.
      Returns:
      The value of the InstanceConnectionPortRange property for this object.
    • hasInstanceInboundPermissions

      public final boolean hasInstanceInboundPermissions()
      For responses, this returns true if the service returned a value for the InstanceInboundPermissions property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • instanceInboundPermissions

      public final List<IpPermission> instanceInboundPermissions()

      The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasInstanceInboundPermissions() method.

      Returns:
      The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.
    • gameServerContainerGroupsPerInstance

      public final Integer gameServerContainerGroupsPerInstance()

      The number of times to replicate the game server container group on each fleet instance.

      Returns:
      The number of times to replicate the game server container group on each fleet instance.
    • maximumGameServerContainerGroupsPerInstance

      public final Integer maximumGameServerContainerGroupsPerInstance()

      The calculated maximum number of game server container group that can be deployed on each fleet instance. The calculation depends on the resource needs of the container group and the CPU and memory resources of the fleet's instance type.

      Returns:
      The calculated maximum number of game server container group that can be deployed on each fleet instance. The calculation depends on the resource needs of the container group and the CPU and memory resources of the fleet's instance type.
    • instanceType

      public final String instanceType()

      The Amazon EC2 instance type to use for all instances in the fleet. Instance type determines the computing resources and processing power that's available to host your game servers. This includes including CPU, memory, storage, and networking capacity. You can't update this fleet property.

      Returns:
      The Amazon EC2 instance type to use for all instances in the fleet. Instance type determines the computing resources and processing power that's available to host your game servers. This includes including CPU, memory, storage, and networking capacity. You can't update this fleet property.
    • billingType

      public final ContainerFleetBillingType billingType()

      Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances. You can't update this fleet property.

      By default, this property is set to ON_DEMAND.

      If the service returns an enum value that is not available in the current SDK version, billingType will return ContainerFleetBillingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from billingTypeAsString().

      Returns:
      Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances. You can't update this fleet property.

      By default, this property is set to ON_DEMAND.

      See Also:
    • billingTypeAsString

      public final String billingTypeAsString()

      Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances. You can't update this fleet property.

      By default, this property is set to ON_DEMAND.

      If the service returns an enum value that is not available in the current SDK version, billingType will return ContainerFleetBillingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from billingTypeAsString().

      Returns:
      Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances. You can't update this fleet property.

      By default, this property is set to ON_DEMAND.

      See Also:
    • description

      public final String description()

      A meaningful description of the container fleet.

      Returns:
      A meaningful description of the container fleet.
    • creationTime

      public final Instant 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").

      Returns:
      A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
    • hasMetricGroups

      public final boolean hasMetricGroups()
      For responses, this returns true if the service returned a value for the MetricGroups property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • metricGroups

      public final List<String> metricGroups()

      The name of an Amazon Web Services CloudWatch metric group to add this fleet to. Metric groups aggregate metrics for multiple fleets.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasMetricGroups() method.

      Returns:
      The name of an Amazon Web Services CloudWatch metric group to add this fleet to. Metric groups aggregate metrics for multiple fleets.
    • newGameSessionProtectionPolicy

      public final ProtectionPolicy newGameSessionProtectionPolicy()

      Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession.

      • NoProtection -- Game sessions can be shut down during active gameplay.

      • FullProtection -- Game sessions in ACTIVE status can't be shut down.

      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().

      Returns:
      Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession.

      • NoProtection -- Game sessions can be shut down during active gameplay.

      • FullProtection -- Game sessions in ACTIVE status can't be shut down.

      See Also:
    • newGameSessionProtectionPolicyAsString

      public final String newGameSessionProtectionPolicyAsString()

      Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession.

      • NoProtection -- Game sessions can be shut down during active gameplay.

      • FullProtection -- Game sessions in ACTIVE status can't be shut down.

      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().

      Returns:
      Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession.

      • NoProtection -- Game sessions can be shut down during active gameplay.

      • FullProtection -- Game sessions in ACTIVE status can't be shut down.

      See Also:
    • gameSessionCreationLimitPolicy

      public final GameSessionCreationLimitPolicy gameSessionCreationLimitPolicy()

      A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.

      Returns:
      A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.
    • status

      public final ContainerFleetStatus status()

      The current status of the container fleet.

      • PENDING -- A new container fleet has been requested.

      • CREATING -- A new container fleet resource is being created.

      • CREATED -- A new container fleet resource has been created. No fleet instances have been deployed.

      • ACTIVATING -- New container fleet instances are being deployed.

      • ACTIVE -- The container fleet has been deployed and is ready to host game sessions.

      • UPDATING -- Updates to the container fleet is being updated. A deployment is in progress.

      If the service returns an enum value that is not available in the current SDK version, status will return ContainerFleetStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The current status of the container fleet.

      • PENDING -- A new container fleet has been requested.

      • CREATING -- A new container fleet resource is being created.

      • CREATED -- A new container fleet resource has been created. No fleet instances have been deployed.

      • ACTIVATING -- New container fleet instances are being deployed.

      • ACTIVE -- The container fleet has been deployed and is ready to host game sessions.

      • UPDATING -- Updates to the container fleet is being updated. A deployment is in progress.

      See Also:
    • statusAsString

      public final String statusAsString()

      The current status of the container fleet.

      • PENDING -- A new container fleet has been requested.

      • CREATING -- A new container fleet resource is being created.

      • CREATED -- A new container fleet resource has been created. No fleet instances have been deployed.

      • ACTIVATING -- New container fleet instances are being deployed.

      • ACTIVE -- The container fleet has been deployed and is ready to host game sessions.

      • UPDATING -- Updates to the container fleet is being updated. A deployment is in progress.

      If the service returns an enum value that is not available in the current SDK version, status will return ContainerFleetStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The current status of the container fleet.

      • PENDING -- A new container fleet has been requested.

      • CREATING -- A new container fleet resource is being created.

      • CREATED -- A new container fleet resource has been created. No fleet instances have been deployed.

      • ACTIVATING -- New container fleet instances are being deployed.

      • ACTIVE -- The container fleet has been deployed and is ready to host game sessions.

      • UPDATING -- Updates to the container fleet is being updated. A deployment is in progress.

      See Also:
    • deploymentDetails

      public final DeploymentDetails deploymentDetails()

      Information about the most recent deployment for the container fleet.

      Returns:
      Information about the most recent deployment for the container fleet.
    • logConfiguration

      public final LogConfiguration logConfiguration()

      The method that is used to collect container logs for the fleet. Amazon GameLift Servers saves all standard output for each container in logs, including game session logs.

      • CLOUDWATCH -- Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.

      • S3 -- Store logs in an Amazon S3 bucket that you define.

      • NONE -- Don't collect container logs.

      Returns:
      The method that is used to collect container logs for the fleet. Amazon GameLift Servers saves all standard output for each container in logs, including game session logs.

      • CLOUDWATCH -- Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.

      • S3 -- Store logs in an Amazon S3 bucket that you define.

      • NONE -- Don't collect container logs.

    • hasLocationAttributes

      public final boolean hasLocationAttributes()
      For responses, this returns true if the service returned a value for the LocationAttributes property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • locationAttributes

      public final List<ContainerFleetLocationAttributes> locationAttributes()

      Information about the container fleet's remote locations where fleet instances are deployed.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasLocationAttributes() method.

      Returns:
      Information about the container fleet's remote locations where fleet instances are deployed.
    • toBuilder

      public ContainerFleet.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ContainerFleet.Builder,ContainerFleet>
      Returns:
      a builder for type T
    • builder

      public static ContainerFleet.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ContainerFleet.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.