Class UpdateContainerFleetRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.gamelift.model.GameLiftRequest
-
- software.amazon.awssdk.services.gamelift.model.UpdateContainerFleetRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateContainerFleetRequest.Builder,UpdateContainerFleetRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateContainerFleetRequest extends GameLiftRequest implements ToCopyableBuilder<UpdateContainerFleetRequest.Builder,UpdateContainerFleetRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateContainerFleetRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateContainerFleetRequest.Builderbuilder()DeploymentConfigurationdeploymentConfiguration()Instructions for how to deploy updates to a container fleet, if the fleet update initiates a deployment.Stringdescription()A meaningful description of the container fleet.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfleetId()A unique identifier for the container fleet to update.StringgameServerContainerGroupDefinitionName()The name or ARN value of a new game server container group definition to deploy on the fleet.IntegergameServerContainerGroupsPerInstance()The number of times to replicate the game server container group on each fleet instance.GameSessionCreationLimitPolicygameSessionCreationLimitPolicy()A policy that limits the number of game sessions that each individual player can create on instances in this fleet.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasInstanceInboundPermissionAuthorizations()For responses, this returns true if the service returned a value for the InstanceInboundPermissionAuthorizations property.booleanhasInstanceInboundPermissionRevocations()For responses, this returns true if the service returned a value for the InstanceInboundPermissionRevocations property.booleanhasMetricGroups()For responses, this returns true if the service returned a value for the MetricGroups property.booleanhasRemoveAttributes()For responses, this returns true if the service returned a value for the RemoveAttributes property.ConnectionPortRangeinstanceConnectionPortRange()A revised set of port numbers to open on each fleet instance.List<IpPermission>instanceInboundPermissionAuthorizations()A set of ports to add to the container fleet's inbound permissions.List<IpPermission>instanceInboundPermissionRevocations()A set of ports to remove from the container fleet's inbound permissions.LogConfigurationlogConfiguration()The method for collecting container logs for the fleet.List<String>metricGroups()The name of an Amazon Web Services CloudWatch metric group to add this fleet to.ProtectionPolicynewGameSessionProtectionPolicy()The game session protection policy to apply to all new game sessions that are started in this fleet.StringnewGameSessionProtectionPolicyAsString()The game session protection policy to apply to all new game sessions that are started in this fleet.StringperInstanceContainerGroupDefinitionName()The name or ARN value of a new per-instance container group definition to deploy on the fleet.List<ContainerFleetRemoveAttribute>removeAttributes()If set, this update removes a fleet's per-instance container group definition.List<String>removeAttributesAsStrings()If set, this update removes a fleet's per-instance container group definition.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends UpdateContainerFleetRequest.Builder>serializableBuilderClass()UpdateContainerFleetRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
fleetId
public final String fleetId()
A unique identifier for the container fleet to update. You can use either the fleet ID or ARN value.
- Returns:
- A unique identifier for the container fleet to update. You can use either the fleet ID or ARN value.
-
gameServerContainerGroupDefinitionName
public final String gameServerContainerGroupDefinitionName()
The name or ARN value of a new game server container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value. You can't remove a fleet's game server container group definition, you can only update or replace it with another definition.
Update a container group definition by calling UpdateContainerGroupDefinition. This operation creates a ContainerGroupDefinition resource with an incremented version.
- Returns:
- The name or ARN value of a new game server container group definition to deploy on the fleet. If you're
updating the fleet to a specific version of a container group definition, use the ARN value and include
the version number. If you're updating the fleet to the latest version of a container group definition,
you can use the name value. You can't remove a fleet's game server container group definition, you can
only update or replace it with another definition.
Update a container group definition by calling UpdateContainerGroupDefinition. This operation creates a ContainerGroupDefinition resource with an incremented version.
-
perInstanceContainerGroupDefinitionName
public final String perInstanceContainerGroupDefinitionName()
The name or ARN value of a new per-instance container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value.
Update a container group definition by calling UpdateContainerGroupDefinition. This operation creates a ContainerGroupDefinition resource with an incremented version.
To remove a fleet's per-instance container group definition, leave this parameter empty and use the parameter
RemoveAttributes.- Returns:
- The name or ARN value of a new per-instance container group definition to deploy on the fleet. If you're
updating the fleet to a specific version of a container group definition, use the ARN value and include
the version number. If you're updating the fleet to the latest version of a container group definition,
you can use the name value.
Update a container group definition by calling UpdateContainerGroupDefinition. This operation creates a ContainerGroupDefinition resource with an incremented version.
To remove a fleet's per-instance container group definition, leave this parameter empty and use the parameter
RemoveAttributes.
-
gameServerContainerGroupsPerInstance
public final Integer gameServerContainerGroupsPerInstance()
The number of times to replicate the game server container group on each fleet instance. By default, Amazon GameLift calculates the maximum number of game server container groups that can fit on each instance. You can remove this property value to use the calculated value, or set it manually. If you set this number manually, Amazon GameLift uses your value as long as it's less than the calculated maximum.
- Returns:
- The number of times to replicate the game server container group on each fleet instance. By default, Amazon GameLift calculates the maximum number of game server container groups that can fit on each instance. You can remove this property value to use the calculated value, or set it manually. If you set this number manually, Amazon GameLift uses your value as long as it's less than the calculated maximum.
-
instanceConnectionPortRange
public final ConnectionPortRange instanceConnectionPortRange()
A revised set of port numbers to open on each fleet instance. By default, Amazon GameLift calculates an optimal port range based on your fleet configuration. If you previously set this parameter manually, you can't reset this to use the calculated settings.
- Returns:
- A revised set of port numbers to open on each fleet instance. By default, Amazon GameLift calculates an optimal port range based on your fleet configuration. If you previously set this parameter manually, you can't reset this to use the calculated settings.
-
hasInstanceInboundPermissionAuthorizations
public final boolean hasInstanceInboundPermissionAuthorizations()
For responses, this returns true if the service returned a value for the InstanceInboundPermissionAuthorizations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
instanceInboundPermissionAuthorizations
public final List<IpPermission> instanceInboundPermissionAuthorizations()
A set of ports to add to the container fleet's inbound permissions.
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
hasInstanceInboundPermissionAuthorizations()method.- Returns:
- A set of ports to add to the container fleet's inbound permissions.
-
hasInstanceInboundPermissionRevocations
public final boolean hasInstanceInboundPermissionRevocations()
For responses, this returns true if the service returned a value for the InstanceInboundPermissionRevocations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
instanceInboundPermissionRevocations
public final List<IpPermission> instanceInboundPermissionRevocations()
A set of ports to remove from the container fleet's inbound permissions.
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
hasInstanceInboundPermissionRevocations()method.- Returns:
- A set of ports to remove from the container fleet's inbound permissions.
-
deploymentConfiguration
public final DeploymentConfiguration deploymentConfiguration()
Instructions for how to deploy updates to a container fleet, if the fleet update initiates a deployment. The deployment configuration lets you determine how to replace fleet instances and what actions to take if the deployment fails.
- Returns:
- Instructions for how to deploy updates to a container fleet, if the fleet update initiates a deployment. The deployment configuration lets you determine how to replace fleet instances and what actions to take if the deployment fails.
-
description
public final String description()
A meaningful description of the container fleet.
- Returns:
- A meaningful description of the container fleet.
-
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 theisEmpty()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.
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.
-
newGameSessionProtectionPolicy
public final ProtectionPolicy newGameSessionProtectionPolicy()
The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.
If the service returns an enum value that is not available in the current SDK version,
newGameSessionProtectionPolicywill returnProtectionPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnewGameSessionProtectionPolicyAsString().- Returns:
- The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.
- See Also:
ProtectionPolicy
-
newGameSessionProtectionPolicyAsString
public final String newGameSessionProtectionPolicyAsString()
The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.
If the service returns an enum value that is not available in the current SDK version,
newGameSessionProtectionPolicywill returnProtectionPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnewGameSessionProtectionPolicyAsString().- Returns:
- The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected.
- See Also:
ProtectionPolicy
-
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.
-
logConfiguration
public final LogConfiguration logConfiguration()
The method for collecting container logs for the fleet.
- Returns:
- The method for collecting container logs for the fleet.
-
removeAttributes
public final List<ContainerFleetRemoveAttribute> removeAttributes()
If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.
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
hasRemoveAttributes()method.- Returns:
- If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.
-
hasRemoveAttributes
public final boolean hasRemoveAttributes()
For responses, this returns true if the service returned a value for the RemoveAttributes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
removeAttributesAsStrings
public final List<String> removeAttributesAsStrings()
If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.
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
hasRemoveAttributes()method.- Returns:
- If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition.
-
toBuilder
public UpdateContainerFleetRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateContainerFleetRequest.Builder,UpdateContainerFleetRequest>- Specified by:
toBuilderin classGameLiftRequest
-
builder
public static UpdateContainerFleetRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateContainerFleetRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-