Interface ReleaseHostsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ReleaseHostsResponse.Builder,
,ReleaseHostsResponse> Ec2Response.Builder
,SdkBuilder<ReleaseHostsResponse.Builder,
,ReleaseHostsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ReleaseHostsResponse
public static interface ReleaseHostsResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<ReleaseHostsResponse.Builder,ReleaseHostsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionsuccessful
(String... successful) The IDs of the Dedicated Hosts that were successfully released.successful
(Collection<String> successful) The IDs of the Dedicated Hosts that were successfully released.unsuccessful
(Collection<UnsuccessfulItem> unsuccessful) The IDs of the Dedicated Hosts that could not be released, including an error message.unsuccessful
(Consumer<UnsuccessfulItem.Builder>... unsuccessful) The IDs of the Dedicated Hosts that could not be released, including an error message.unsuccessful
(UnsuccessfulItem... unsuccessful) The IDs of the Dedicated Hosts that could not be released, including an error message.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
successful
The IDs of the Dedicated Hosts that were successfully released.
- Parameters:
successful
- The IDs of the Dedicated Hosts that were successfully released.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successful
The IDs of the Dedicated Hosts that were successfully released.
- Parameters:
successful
- The IDs of the Dedicated Hosts that were successfully released.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unsuccessful
The IDs of the Dedicated Hosts that could not be released, including an error message.
- Parameters:
unsuccessful
- The IDs of the Dedicated Hosts that could not be released, including an error message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unsuccessful
The IDs of the Dedicated Hosts that could not be released, including an error message.
- Parameters:
unsuccessful
- The IDs of the Dedicated Hosts that could not be released, including an error message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaUnsuccessfulItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tounsuccessful(List<UnsuccessfulItem>)
.- Parameters:
unsuccessful
- a consumer that will call methods onUnsuccessfulItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-