Interface ReleaseHostsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ReleaseHostsResponse.Builder,ReleaseHostsResponse>,Ec2Response.Builder,SdkBuilder<ReleaseHostsResponse.Builder,ReleaseHostsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ReleaseHostsResponse
@Mutable @NotThreadSafe public static interface ReleaseHostsResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<ReleaseHostsResponse.Builder,ReleaseHostsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReleaseHostsResponse.Buildersuccessful(String... successful)The IDs of the Dedicated Hosts that were successfully released.ReleaseHostsResponse.Buildersuccessful(Collection<String> successful)The IDs of the Dedicated Hosts that were successfully released.ReleaseHostsResponse.Builderunsuccessful(Collection<UnsuccessfulItem> unsuccessful)The IDs of the Dedicated Hosts that could not be released, including an error message.ReleaseHostsResponse.Builderunsuccessful(Consumer<UnsuccessfulItem.Builder>... unsuccessful)The IDs of the Dedicated Hosts that could not be released, including an error message.ReleaseHostsResponse.Builderunsuccessful(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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
successful
ReleaseHostsResponse.Builder successful(Collection<String> 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
ReleaseHostsResponse.Builder successful(String... 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
ReleaseHostsResponse.Builder unsuccessful(Collection<UnsuccessfulItem> 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
ReleaseHostsResponse.Builder unsuccessful(UnsuccessfulItem... 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
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.Builderavoiding the need to create one manually viaUnsuccessfulItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#unsuccessful(List.) - 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:
#unsuccessful(java.util.Collection)
-
-