Interface GetCapacityManagerSupportabilityScoresRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetCapacityManagerSupportabilityScoresRequest.Builder,,GetCapacityManagerSupportabilityScoresRequest> Ec2Request.Builder,SdkBuilder<GetCapacityManagerSupportabilityScoresRequest.Builder,,GetCapacityManagerSupportabilityScoresRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetCapacityManagerSupportabilityScoresRequest
-
Method Summary
Modifier and TypeMethodDescriptioncapacityAmount(Integer capacityAmount) The amount of capacity that you need, in the unit that you specify forCapacityUnit.capacityAvailabilityZoneIds(String... capacityAvailabilityZoneIds) The IDs of the Availability Zones to score, such asuse1-az1.capacityAvailabilityZoneIds(Collection<String> capacityAvailabilityZoneIds) The IDs of the Availability Zones to score, such asuse1-az1.capacityUnit(String capacityUnit) The unit forCapacityAmount.capacityUnit(CapacityUnit capacityUnit) The unit forCapacityAmount.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.instanceRequirementsWithMetadata(Consumer<InstanceRequirementsWithMetadataRequest.Builder> instanceRequirementsWithMetadata) The attributes that the instance types must have, such as vCPU and memory ranges.instanceRequirementsWithMetadata(InstanceRequirementsWithMetadataRequest instanceRequirementsWithMetadata) The attributes that the instance types must have, such as vCPU and memory ranges.instanceTypes(String... instanceTypes) The instance types to score.instanceTypes(Collection<String> instanceTypes) The instance types to score.marketType(String marketType) The capacity market to score.marketType(SupportabilityMarketType marketType) The capacity market to score.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
marketType
The capacity market to score.
- Parameters:
marketType- The capacity market to score.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
marketType
GetCapacityManagerSupportabilityScoresRequest.Builder marketType(SupportabilityMarketType marketType) The capacity market to score.
- Parameters:
marketType- The capacity market to score.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityAmount
The amount of capacity that you need, in the unit that you specify for
CapacityUnit. Each score is relative to this amount.- Parameters:
capacityAmount- The amount of capacity that you need, in the unit that you specify forCapacityUnit. Each score is relative to this amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityUnit
The unit for
CapacityAmount.- Parameters:
capacityUnit- The unit forCapacityAmount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityUnit
The unit for
CapacityAmount.- Parameters:
capacityUnit- The unit forCapacityAmount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityAvailabilityZoneIds
GetCapacityManagerSupportabilityScoresRequest.Builder capacityAvailabilityZoneIds(Collection<String> capacityAvailabilityZoneIds) The IDs of the Availability Zones to score, such as
use1-az1. You can specify Availability Zones in different Regions. You can specify up to 10 Availability Zones.- Parameters:
capacityAvailabilityZoneIds- The IDs of the Availability Zones to score, such asuse1-az1. You can specify Availability Zones in different Regions. You can specify up to 10 Availability Zones.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityAvailabilityZoneIds
GetCapacityManagerSupportabilityScoresRequest.Builder capacityAvailabilityZoneIds(String... capacityAvailabilityZoneIds) The IDs of the Availability Zones to score, such as
use1-az1. You can specify Availability Zones in different Regions. You can specify up to 10 Availability Zones.- Parameters:
capacityAvailabilityZoneIds- The IDs of the Availability Zones to score, such asuse1-az1. You can specify Availability Zones in different Regions. You can specify up to 10 Availability Zones.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
GetCapacityManagerSupportabilityScoresRequest.Builder instanceTypes(Collection<String> instanceTypes) The instance types to score. You can specify up to 50 instance types.
Specify either
InstanceTypesorInstanceRequirementsWithMetadata, but not both.- Parameters:
instanceTypes- The instance types to score. You can specify up to 50 instance types.Specify either
InstanceTypesorInstanceRequirementsWithMetadata, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
The instance types to score. You can specify up to 50 instance types.
Specify either
InstanceTypesorInstanceRequirementsWithMetadata, but not both.- Parameters:
instanceTypes- The instance types to score. You can specify up to 50 instance types.Specify either
InstanceTypesorInstanceRequirementsWithMetadata, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirementsWithMetadata
GetCapacityManagerSupportabilityScoresRequest.Builder instanceRequirementsWithMetadata(InstanceRequirementsWithMetadataRequest instanceRequirementsWithMetadata) The attributes that the instance types must have, such as vCPU and memory ranges. Capacity Manager resolves the attributes into matching instance types and scores each one.
Specify either
InstanceTypesorInstanceRequirementsWithMetadata, but not both.- Parameters:
instanceRequirementsWithMetadata- The attributes that the instance types must have, such as vCPU and memory ranges. Capacity Manager resolves the attributes into matching instance types and scores each one.Specify either
InstanceTypesorInstanceRequirementsWithMetadata, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirementsWithMetadata
default GetCapacityManagerSupportabilityScoresRequest.Builder instanceRequirementsWithMetadata(Consumer<InstanceRequirementsWithMetadataRequest.Builder> instanceRequirementsWithMetadata) The attributes that the instance types must have, such as vCPU and memory ranges. Capacity Manager resolves the attributes into matching instance types and scores each one.
Specify either
This is a convenience method that creates an instance of theInstanceTypesorInstanceRequirementsWithMetadata, but not both.InstanceRequirementsWithMetadataRequest.Builderavoiding the need to create one manually viaInstanceRequirementsWithMetadataRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceRequirementsWithMetadata(InstanceRequirementsWithMetadataRequest).- Parameters:
instanceRequirementsWithMetadata- a consumer that will call methods onInstanceRequirementsWithMetadataRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetCapacityManagerSupportabilityScoresRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetCapacityManagerSupportabilityScoresRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-