@Generated(value="org.immutables.processor.ProxyProcessor") 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. |
long |
getCode() |
String |
getDescription() |
String |
getErrorCode() |
int |
hashCode()
Computes a hash code from attributes:
code, description, errorCode. |
String |
toString()
Prints the immutable value
ErrorDetails with attribute values. |
ImmutableErrorDetails |
withCode(long value)
Copy the current immutable object by setting a value for the
code attribute. |
ImmutableErrorDetails |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableErrorDetails |
withErrorCode(String value)
Copy the current immutable object by setting a value for the
errorCode attribute. |
public long getCode()
getCode in interface ErrorDetailscode attributepublic String getDescription()
getDescription in interface ErrorDetailsdescription attributepublic String getErrorCode()
getErrorCode in interface ErrorDetailserrorCode attributepublic final ImmutableErrorDetails withCode(long value)
code attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for codethis objectpublic final ImmutableErrorDetails withDescription(String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for description (can be null)this objectpublic final ImmutableErrorDetails withErrorCode(String value)
errorCode attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for errorCode (can be null)this objectpublic boolean equals(Object another)
ImmutableErrorDetails that have equal attribute values.public int hashCode()
code, description, errorCode.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()
.code(long) // optional code
.description(String | null) // nullable description
.errorCode(String | null) // nullable errorCode
.build();
Copyright © 2020 SAP SE. All rights reserved.