@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableErrorDetails extends Object implements ErrorDetails
ErrorDetails.
Use the builder to create immutable instances:
ImmutableErrorDetails.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableErrorDetails.Builder
Builds instances of type
ImmutableErrorDetails. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableErrorDetails.Builder |
builder()
Creates a builder for
ImmutableErrorDetails. |
static ImmutableErrorDetails |
copyOf(ErrorDetails instance)
Creates an immutable copy of a
ErrorDetails value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableErrorDetails that have equal attribute values. |
ErrorCode |
errorCode()
Error Code.
|
String |
errorMessage()
Detailed error message corresponding to the error code.
|
int |
hashCode()
Computes a hash code from attributes:
errorCode, retryAfterSeconds, errorMessage. |
Integer |
retryAfterSeconds()
Specifies the time delay in seconds after which operation can be retried.
|
String |
toString()
Prints the immutable value
ErrorDetails with attribute values. |
ImmutableErrorDetails |
withErrorCode(ErrorCode value)
Copy the current immutable object by setting a value for the
errorCode attribute. |
ImmutableErrorDetails |
withErrorMessage(String value)
Copy the current immutable object by setting a value for the
errorMessage attribute. |
ImmutableErrorDetails |
withRetryAfterSeconds(Integer value)
Copy the current immutable object by setting a value for the
retryAfterSeconds attribute. |
public ErrorCode errorCode()
errorCode in interface ErrorDetails@Nullable public Integer retryAfterSeconds()
retryAfterSeconds in interface ErrorDetailspublic String errorMessage()
errorMessage in interface ErrorDetailspublic final ImmutableErrorDetails withErrorCode(ErrorCode value)
errorCode attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for errorCodethis objectpublic final ImmutableErrorDetails withRetryAfterSeconds(@Nullable Integer value)
retryAfterSeconds attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for retryAfterSeconds (can be null)this objectpublic final ImmutableErrorDetails withErrorMessage(String value)
errorMessage attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for errorMessagethis objectpublic boolean equals(@Nullable Object another)
ImmutableErrorDetails that have equal attribute values.public int hashCode()
errorCode, retryAfterSeconds, errorMessage.public String toString()
ErrorDetails with attribute values.public static ImmutableErrorDetails copyOf(ErrorDetails instance)
ErrorDetails value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableErrorDetails.Builder builder()
ImmutableErrorDetails.
ImmutableErrorDetails.builder()
.errorCode(com.amazonaws.appflow.custom.connector.model.ErrorCode) // required errorCode
.retryAfterSeconds(Integer | null) // nullable retryAfterSeconds
.errorMessage(String) // required errorMessage
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.