public static interface ReleaseHostsResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<ReleaseHostsResponse.Builder,ReleaseHostsResponse>
Modifier and Type | Method and Description |
---|---|
ReleaseHostsResponse.Builder |
successful(Collection<String> successful)
The IDs of the Dedicated Hosts that were successfully released.
|
ReleaseHostsResponse.Builder |
successful(String... successful)
The IDs of the Dedicated Hosts that were successfully released.
|
ReleaseHostsResponse.Builder |
unsuccessful(Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated Hosts that could not be released, including an error message.
|
ReleaseHostsResponse.Builder |
unsuccessful(Consumer<UnsuccessfulItem.Builder>... unsuccessful)
The IDs of the Dedicated Hosts that could not be released, including an error message.
|
ReleaseHostsResponse.Builder |
unsuccessful(UnsuccessfulItem... unsuccessful)
The IDs of the Dedicated Hosts that could not be released, including an error message.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
ReleaseHostsResponse.Builder successful(Collection<String> successful)
The IDs of the Dedicated Hosts that were successfully released.
successful
- The IDs of the Dedicated Hosts that were successfully released.ReleaseHostsResponse.Builder successful(String... successful)
The IDs of the Dedicated Hosts that were successfully released.
successful
- The IDs of the Dedicated Hosts that were successfully released.ReleaseHostsResponse.Builder unsuccessful(Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated Hosts that could not be released, including an error message.
unsuccessful
- The IDs of the Dedicated Hosts that could not be released, including an error message.ReleaseHostsResponse.Builder unsuccessful(UnsuccessfulItem... unsuccessful)
The IDs of the Dedicated Hosts that could not be released, including an error message.
unsuccessful
- The IDs of the Dedicated Hosts that could not be released, including an error message.ReleaseHostsResponse.Builder unsuccessful(Consumer<UnsuccessfulItem.Builder>... unsuccessful)
The IDs of the Dedicated Hosts that could not be released, including an error message.
This is a convenience method that creates an instance of theUnsuccessfulItem.Builder
avoiding the need to create one
manually via UnsuccessfulItem.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and
its result is passed to #unsuccessful(List
.
unsuccessful
- a consumer that will call methods on
UnsuccessfulItem.Builder
#unsuccessful(java.util.Collection)
Copyright © 2023. All rights reserved.