Interface PeeringError.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PeeringError.Builder,,PeeringError> SdkBuilder<PeeringError.Builder,,PeeringError> SdkPojo
- Enclosing class:
PeeringError
@Mutable
@NotThreadSafe
public static interface PeeringError.Builder
extends SdkPojo, CopyableBuilder<PeeringError.Builder,PeeringError>
-
Method Summary
Modifier and TypeMethodDescriptionThe error code for the peering request.code(PeeringErrorCode code) The error code for the peering request.The message associated with the errorcode.default PeeringError.BuildermissingPermissionsContext(Consumer<PermissionsErrorContext.Builder> missingPermissionsContext) Provides additional information about missing permissions for the peering error.missingPermissionsContext(PermissionsErrorContext missingPermissionsContext) Provides additional information about missing permissions for the peering error.The ID of the Peering request.resourceArn(String resourceArn) The ARN of the requested peering resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
code
The error code for the peering request.
- Parameters:
code- The error code for the peering request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
code
The error code for the peering request.
- Parameters:
code- The error code for the peering request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
message
The message associated with the error
code.- Parameters:
message- The message associated with the errorcode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
The ARN of the requested peering resource.
- Parameters:
resourceArn- The ARN of the requested peering resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestId
The ID of the Peering request.
- Parameters:
requestId- The ID of the Peering request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
missingPermissionsContext
Provides additional information about missing permissions for the peering error.
- Parameters:
missingPermissionsContext- Provides additional information about missing permissions for the peering error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
missingPermissionsContext
default PeeringError.Builder missingPermissionsContext(Consumer<PermissionsErrorContext.Builder> missingPermissionsContext) Provides additional information about missing permissions for the peering error.
This is a convenience method that creates an instance of thePermissionsErrorContext.Builderavoiding the need to create one manually viaPermissionsErrorContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomissingPermissionsContext(PermissionsErrorContext).- Parameters:
missingPermissionsContext- a consumer that will call methods onPermissionsErrorContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-