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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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/UNIX
orWindows
).
- 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/UNIX
orWindows
).
-
- 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/UNIX
orWindows
).
- 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/UNIX
orWindows
).
-
- 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/UNIX
orWindows
).
Filter.Builder
avoiding the need to create one manually viaFilter.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaSlotDateTimeRangeRequest.builder()
.When the
Consumer
completes,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
NextToken
value.- 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 returnedNextToken
value.- 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
MinSlotDurationInHours
and less than 1,720.- Parameters:
maxSlotDurationInHours
- The maximum available duration, in hours. This value must be greater thanMinSlotDurationInHours
and 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.Builder
avoiding the need to create one manually viaScheduledInstanceRecurrenceRequest.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-