Interface DescribeScheduledInstanceAvailabilityRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DescribeScheduledInstanceAvailabilityRequest.Builder,,DescribeScheduledInstanceAvailabilityRequest> Ec2Request.Builder,SdkBuilder<DescribeScheduledInstanceAvailabilityRequest.Builder,,DescribeScheduledInstanceAvailabilityRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DescribeScheduledInstanceAvailabilityRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.filters(Collection<Filter> filters) The filters.filters(Consumer<Filter.Builder>... filters) The filters.The filters.firstSlotStartTimeRange(Consumer<SlotDateTimeRangeRequest.Builder> firstSlotStartTimeRange) The time period for the first schedule to start.firstSlotStartTimeRange(SlotDateTimeRangeRequest firstSlotStartTimeRange) The time period for the first schedule to start.maxResults(Integer maxResults) The maximum number of results to return in a single call.maxSlotDurationInHours(Integer maxSlotDurationInHours) The maximum available duration, in hours.minSlotDurationInHours(Integer minSlotDurationInHours) The minimum available duration, in hours.The token for the next set of results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.recurrence(Consumer<ScheduledInstanceRecurrenceRequest.Builder> recurrence) The schedule recurrence.recurrence(ScheduledInstanceRecurrenceRequest recurrence) The schedule recurrence.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, sdkFields
-
Method Details
-
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.
-
filters
The filters.
-
availability-zone- The Availability Zone (for example,us-west-2a). -
instance-type- The instance type (for example,c4.large). -
platform- The platform (Linux/UNIXorWindows).
- Parameters:
filters- The filters.-
availability-zone- The Availability Zone (for example,us-west-2a). -
instance-type- The instance type (for example,c4.large). -
platform- The platform (Linux/UNIXorWindows).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
The filters.
-
availability-zone- The Availability Zone (for example,us-west-2a). -
instance-type- The instance type (for example,c4.large). -
platform- The platform (Linux/UNIXorWindows).
- Parameters:
filters- The filters.-
availability-zone- The Availability Zone (for example,us-west-2a). -
instance-type- The instance type (for example,c4.large). -
platform- The platform (Linux/UNIXorWindows).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
The filters.
-
availability-zone- The Availability Zone (for example,us-west-2a). -
instance-type- The instance type (for example,c4.large). -
platform- The platform (Linux/UNIXorWindows).
Filter.Builderavoiding the need to create one manually viaFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(List<Filter>).- Parameters:
filters- a consumer that will call methods onFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
firstSlotStartTimeRange
DescribeScheduledInstanceAvailabilityRequest.Builder firstSlotStartTimeRange(SlotDateTimeRangeRequest firstSlotStartTimeRange) The time period for the first schedule to start.
- Parameters:
firstSlotStartTimeRange- The time period for the first schedule to start.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firstSlotStartTimeRange
default DescribeScheduledInstanceAvailabilityRequest.Builder firstSlotStartTimeRange(Consumer<SlotDateTimeRangeRequest.Builder> firstSlotStartTimeRange) The time period for the first schedule to start.
This is a convenience method that creates an instance of theSlotDateTimeRangeRequest.Builderavoiding the need to create one manually viaSlotDateTimeRangeRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofirstSlotStartTimeRange(SlotDateTimeRangeRequest).- Parameters:
firstSlotStartTimeRange- a consumer that will call methods onSlotDateTimeRangeRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returned
NextTokenvalue.- Parameters:
maxResults- The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returnedNextTokenvalue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxSlotDurationInHours
DescribeScheduledInstanceAvailabilityRequest.Builder maxSlotDurationInHours(Integer maxSlotDurationInHours) The maximum available duration, in hours. This value must be greater than
MinSlotDurationInHoursand less than 1,720.- Parameters:
maxSlotDurationInHours- The maximum available duration, in hours. This value must be greater thanMinSlotDurationInHoursand less than 1,720.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minSlotDurationInHours
DescribeScheduledInstanceAvailabilityRequest.Builder minSlotDurationInHours(Integer minSlotDurationInHours) The minimum available duration, in hours. The minimum required duration is 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.
- Parameters:
minSlotDurationInHours- The minimum available duration, in hours. The minimum required duration is 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token for the next set of results.
- Parameters:
nextToken- The token for the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurrence
DescribeScheduledInstanceAvailabilityRequest.Builder recurrence(ScheduledInstanceRecurrenceRequest recurrence) The schedule recurrence.
- Parameters:
recurrence- The schedule recurrence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurrence
default DescribeScheduledInstanceAvailabilityRequest.Builder recurrence(Consumer<ScheduledInstanceRecurrenceRequest.Builder> recurrence) The schedule recurrence.
This is a convenience method that creates an instance of theScheduledInstanceRecurrenceRequest.Builderavoiding the need to create one manually viaScheduledInstanceRecurrenceRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecurrence(ScheduledInstanceRecurrenceRequest).- Parameters:
recurrence- a consumer that will call methods onScheduledInstanceRecurrenceRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
DescribeScheduledInstanceAvailabilityRequest.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
DescribeScheduledInstanceAvailabilityRequest.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.
-