Interface GetInstanceTypesFromInstanceRequirementsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetInstanceTypesFromInstanceRequirementsResponse.Builder,,GetInstanceTypesFromInstanceRequirementsResponse> Ec2Response.Builder,SdkBuilder<GetInstanceTypesFromInstanceRequirementsResponse.Builder,,GetInstanceTypesFromInstanceRequirementsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetInstanceTypesFromInstanceRequirementsResponse
@Mutable
@NotThreadSafe
public static interface GetInstanceTypesFromInstanceRequirementsResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<GetInstanceTypesFromInstanceRequirementsResponse.Builder,GetInstanceTypesFromInstanceRequirementsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninstanceTypes(Collection<InstanceTypeInfoFromInstanceRequirements> instanceTypes) The instance types with the specified instance attributes.instanceTypes(Consumer<InstanceTypeInfoFromInstanceRequirements.Builder>... instanceTypes) The instance types with the specified instance attributes.instanceTypes(InstanceTypeInfoFromInstanceRequirements... instanceTypes) The instance types with the specified instance attributes.The token to include in another request to get the next page of items.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
-
instanceTypes
GetInstanceTypesFromInstanceRequirementsResponse.Builder instanceTypes(Collection<InstanceTypeInfoFromInstanceRequirements> instanceTypes) The instance types with the specified instance attributes.
- Parameters:
instanceTypes- The instance types with the specified instance attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
GetInstanceTypesFromInstanceRequirementsResponse.Builder instanceTypes(InstanceTypeInfoFromInstanceRequirements... instanceTypes) The instance types with the specified instance attributes.
- Parameters:
instanceTypes- The instance types with the specified instance attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
GetInstanceTypesFromInstanceRequirementsResponse.Builder instanceTypes(Consumer<InstanceTypeInfoFromInstanceRequirements.Builder>... instanceTypes) The instance types with the specified instance attributes.
This is a convenience method that creates an instance of theInstanceTypeInfoFromInstanceRequirements.Builderavoiding the need to create one manually viaInstanceTypeInfoFromInstanceRequirements.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceTypes(List<InstanceTypeInfoFromInstanceRequirements>).- Parameters:
instanceTypes- a consumer that will call methods onInstanceTypeInfoFromInstanceRequirements.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to include in another request to get the next page of items. This value is
nullwhen there are no more items to return.- Parameters:
nextToken- The token to include in another request to get the next page of items. This value isnullwhen there are no more items to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-