Class UpdateFleetCapacityRequest
- 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.UpdateFleetCapacityRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateFleetCapacityRequest.Builder,UpdateFleetCapacityRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateFleetCapacityRequest extends GameLiftRequest implements ToCopyableBuilder<UpdateFleetCapacityRequest.Builder,UpdateFleetCapacityRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateFleetCapacityRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateFleetCapacityRequest.Builderbuilder()IntegerdesiredInstances()The number of Amazon EC2 instances you want to maintain in the specified fleet location.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfleetId()A unique identifier for the fleet to update capacity settings for.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringlocation()The name of a remote location to update fleet capacity settings for, in the form of an Amazon Web Services Region code such asus-west-2.IntegermaxSize()The maximum number of instances that are allowed in the specified fleet location.IntegerminSize()The minimum number of instances that are allowed in the specified fleet location.List<SdkField<?>>sdkFields()static Class<? extends UpdateFleetCapacityRequest.Builder>serializableBuilderClass()UpdateFleetCapacityRequest.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 fleet to update capacity settings for. You can use either the fleet ID or ARN value.
- Returns:
- A unique identifier for the fleet to update capacity settings for. You can use either the fleet ID or ARN value.
-
desiredInstances
public final Integer desiredInstances()
The number of Amazon EC2 instances you want to maintain in the specified fleet location. This value must fall between the minimum and maximum size limits. Changes in desired instance value can take up to 1 minute to be reflected when viewing the fleet's capacity settings.
- Returns:
- The number of Amazon EC2 instances you want to maintain in the specified fleet location. This value must fall between the minimum and maximum size limits. Changes in desired instance value can take up to 1 minute to be reflected when viewing the fleet's capacity settings.
-
minSize
public final Integer minSize()
The minimum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 0.
- Returns:
- The minimum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 0.
-
maxSize
public final Integer maxSize()
The maximum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 1.
- Returns:
- The maximum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 1.
-
location
public final String location()
The name of a remote location to update fleet capacity settings for, in the form of an Amazon Web Services Region code such as
us-west-2.- Returns:
- The name of a remote location to update fleet capacity settings for, in the form of an Amazon Web
Services Region code such as
us-west-2.
-
toBuilder
public UpdateFleetCapacityRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateFleetCapacityRequest.Builder,UpdateFleetCapacityRequest>- Specified by:
toBuilderin classGameLiftRequest
-
builder
public static UpdateFleetCapacityRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateFleetCapacityRequest.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
-
-