@Generated(value={"Immutables.generator","SMFSchemaValidationErrorType"}) public final class SMFSchemaValidationError extends Object implements SMFSchemaValidationErrorType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFSchemaValidationError.Builder
Builds instances of type
SMFSchemaValidationError. |
| Modifier and Type | Method and Description |
|---|---|
static SMFSchemaValidationError.Builder |
builder()
Creates a builder for
SMFSchemaValidationError. |
static SMFSchemaValidationError |
copyOf(SMFSchemaValidationErrorType instance)
Creates an immutable copy of a
SMFSchemaValidationErrorType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFSchemaValidationError that have equal attribute values. |
Optional<Exception> |
exception() |
String |
fullMessage() |
int |
hashCode()
Computes a hash code from attributes:
message, exception. |
String |
message() |
static SMFSchemaValidationError |
of(String message,
Optional<Exception> exception)
Construct a new immutable
SMFSchemaValidationError instance. |
String |
toString()
Prints the immutable value
SMFSchemaValidationError with attribute values. |
SMFSchemaValidationError |
withException(Exception value)
Copy the current immutable object by setting a present value for the optional
exception attribute. |
SMFSchemaValidationError |
withException(Optional<? extends Exception> optional)
Copy the current immutable object by setting an optional value for the
exception attribute. |
SMFSchemaValidationError |
withMessage(String value)
Copy the current immutable object by setting a value for the
message attribute. |
public String message()
message in interface SMFErrorTypemessage in interface SMFSchemaValidationErrorTypemessage attributepublic Optional<Exception> exception()
exception in interface SMFErrorTypeexception in interface SMFSchemaValidationErrorTypeexception attributepublic final SMFSchemaValidationError withMessage(String value)
message attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for messagethis objectpublic final SMFSchemaValidationError withException(Exception value)
exception attribute.value - The value for exceptionthis objectpublic final SMFSchemaValidationError withException(Optional<? extends Exception> optional)
exception attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for exceptionthis objectpublic boolean equals(Object another)
SMFSchemaValidationError that have equal attribute values.public int hashCode()
message, exception.public String toString()
SMFSchemaValidationError with attribute values.public String fullMessage()
Returns a lazily initialized value of the fullMessage attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
fullMessage in interface SMFErrorTypel.name attributepublic static SMFSchemaValidationError of(String message, Optional<Exception> exception)
SMFSchemaValidationError instance.message - The value for the message attributeexception - The value for the exception attributepublic static SMFSchemaValidationError copyOf(SMFSchemaValidationErrorType instance)
SMFSchemaValidationErrorType 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 SMFSchemaValidationError.Builder builder()
SMFSchemaValidationError.Copyright © 2017 <code@io7m.com> http://io7m.com