Interface DescribeEc2InstanceLimitsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeEc2InstanceLimitsResponse.Builder,,DescribeEc2InstanceLimitsResponse> GameLiftResponse.Builder,SdkBuilder<DescribeEc2InstanceLimitsResponse.Builder,,DescribeEc2InstanceLimitsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeEc2InstanceLimitsResponse
@Mutable
@NotThreadSafe
public static interface DescribeEc2InstanceLimitsResponse.Builder
extends GameLiftResponse.Builder, SdkPojo, CopyableBuilder<DescribeEc2InstanceLimitsResponse.Builder,DescribeEc2InstanceLimitsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionec2InstanceLimits(Collection<EC2InstanceLimit> ec2InstanceLimits) The maximum number of instances for the specified instance type.ec2InstanceLimits(Consumer<EC2InstanceLimit.Builder>... ec2InstanceLimits) The maximum number of instances for the specified instance type.ec2InstanceLimits(EC2InstanceLimit... ec2InstanceLimits) The maximum number of instances for the specified instance type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.gamelift.model.GameLiftResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
ec2InstanceLimits
DescribeEc2InstanceLimitsResponse.Builder ec2InstanceLimits(Collection<EC2InstanceLimit> ec2InstanceLimits) The maximum number of instances for the specified instance type.
- Parameters:
ec2InstanceLimits- The maximum number of instances for the specified instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2InstanceLimits
The maximum number of instances for the specified instance type.
- Parameters:
ec2InstanceLimits- The maximum number of instances for the specified instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2InstanceLimits
DescribeEc2InstanceLimitsResponse.Builder ec2InstanceLimits(Consumer<EC2InstanceLimit.Builder>... ec2InstanceLimits) The maximum number of instances for the specified instance type.
This is a convenience method that creates an instance of theEC2InstanceLimit.Builderavoiding the need to create one manually viaEC2InstanceLimit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toec2InstanceLimits(List<EC2InstanceLimit>).- Parameters:
ec2InstanceLimits- a consumer that will call methods onEC2InstanceLimit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-