Interface UnsuccessfulInstanceCreditSpecificationItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UnsuccessfulInstanceCreditSpecificationItem.Builder,
,UnsuccessfulInstanceCreditSpecificationItem> SdkBuilder<UnsuccessfulInstanceCreditSpecificationItem.Builder,
,UnsuccessfulInstanceCreditSpecificationItem> SdkPojo
- Enclosing class:
UnsuccessfulInstanceCreditSpecificationItem
public static interface UnsuccessfulInstanceCreditSpecificationItem.Builder
extends SdkPojo, CopyableBuilder<UnsuccessfulInstanceCreditSpecificationItem.Builder,UnsuccessfulInstanceCreditSpecificationItem>
-
Method Summary
Modifier and TypeMethodDescriptionThe applicable error for the burstable performance instance whose credit option for CPU usage was not modified.The applicable error for the burstable performance instance whose credit option for CPU usage was not modified.instanceId
(String instanceId) The ID of the instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
instanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
UnsuccessfulInstanceCreditSpecificationItem.Builder error(UnsuccessfulInstanceCreditSpecificationItemError error) The applicable error for the burstable performance instance whose credit option for CPU usage was not modified.
- Parameters:
error
- The applicable error for the burstable performance instance whose credit option for CPU usage was not modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
default UnsuccessfulInstanceCreditSpecificationItem.Builder error(Consumer<UnsuccessfulInstanceCreditSpecificationItemError.Builder> error) The applicable error for the burstable performance instance whose credit option for CPU usage was not modified.
This is a convenience method that creates an instance of theUnsuccessfulInstanceCreditSpecificationItemError.Builder
avoiding the need to create one manually viaUnsuccessfulInstanceCreditSpecificationItemError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(UnsuccessfulInstanceCreditSpecificationItemError)
.- Parameters:
error
- a consumer that will call methods onUnsuccessfulInstanceCreditSpecificationItemError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-