Interface UpdateError.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UpdateError.Builder,
,UpdateError> SdkBuilder<UpdateError.Builder,
,UpdateError> SdkPojo
- Enclosing class:
UpdateError
public static interface UpdateError.Builder
extends SdkPojo, CopyableBuilder<UpdateError.Builder,UpdateError>
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateError.Builder
causedBy
(Consumer<UpdateInstruction.Builder> causedBy) Specifies which permission update caused the error.causedBy
(UpdateInstruction causedBy) Specifies which permission update caused the error.The error code.The message for this error.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
-
causedBy
Specifies which permission update caused the error.
- Parameters:
causedBy
- Specifies which permission update caused the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
causedBy
Specifies which permission update caused the error.
This is a convenience method that creates an instance of theUpdateInstruction.Builder
avoiding the need to create one manually viaUpdateInstruction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocausedBy(UpdateInstruction)
.- Parameters:
causedBy
- a consumer that will call methods onUpdateInstruction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
code
The error code.
- Parameters:
code
- The error code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
message
The message for this error.
- Parameters:
message
- The message for this error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-