Interface PeeringError.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PeeringError.Builder,PeeringError>,SdkBuilder<PeeringError.Builder,PeeringError>,SdkPojo
- Enclosing class:
- PeeringError
public static interface PeeringError.Builder extends SdkPojo, CopyableBuilder<PeeringError.Builder,PeeringError>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PeeringError.Buildercode(String code)The error code for the peering request.PeeringError.Buildercode(PeeringErrorCode code)The error code for the peering request.PeeringError.Buildermessage(String message)The message associated with the errorcode.default PeeringError.BuildermissingPermissionsContext(Consumer<PermissionsErrorContext.Builder> missingPermissionsContext)Provides additional information about missing permissions for the peering error.PeeringError.BuildermissingPermissionsContext(PermissionsErrorContext missingPermissionsContext)Provides additional information about missing permissions for the peering error.PeeringError.BuilderrequestId(String requestId)The ID of the Peering request.PeeringError.BuilderresourceArn(String resourceArn)The ARN of the requested peering resource.-
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 Detail
-
code
PeeringError.Builder code(String 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:
PeeringErrorCode,PeeringErrorCode
-
code
PeeringError.Builder code(PeeringErrorCode 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:
PeeringErrorCode,PeeringErrorCode
-
message
PeeringError.Builder message(String 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
PeeringError.Builder resourceArn(String 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
PeeringError.Builder requestId(String 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
PeeringError.Builder missingPermissionsContext(PermissionsErrorContext 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:
missingPermissionsContext(PermissionsErrorContext)
-
-