@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableWriteRecordResult extends Object implements WriteRecordResult
WriteRecordResult.
Use the builder to create immutable instances:
ImmutableWriteRecordResult.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableWriteRecordResult.Builder
Builds instances of type
ImmutableWriteRecordResult. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableWriteRecordResult.Builder |
builder()
Creates a builder for
ImmutableWriteRecordResult. |
static ImmutableWriteRecordResult |
copyOf(WriteRecordResult instance)
Creates an immutable copy of a
WriteRecordResult value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableWriteRecordResult that have equal attribute values. |
String |
errorMessage()
Error message if the record is not written to the destination successfully.
|
int |
hashCode()
Computes a hash code from attributes:
isSuccess, recordId, errorMessage. |
boolean |
isSuccess()
Specifies if the record is written successfully or not.
|
String |
recordId()
Unique identifier for the record.
|
String |
toString()
Prints the immutable value
WriteRecordResult with attribute values. |
ImmutableWriteRecordResult |
withErrorMessage(String value)
Copy the current immutable object by setting a value for the
errorMessage attribute. |
ImmutableWriteRecordResult |
withIsSuccess(boolean value)
Copy the current immutable object by setting a value for the
isSuccess attribute. |
ImmutableWriteRecordResult |
withRecordId(String value)
Copy the current immutable object by setting a value for the
recordId attribute. |
public boolean isSuccess()
isSuccess in interface WriteRecordResultpublic String recordId()
recordId in interface WriteRecordResult@Nullable public String errorMessage()
errorMessage in interface WriteRecordResultpublic final ImmutableWriteRecordResult withIsSuccess(boolean value)
isSuccess attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isSuccessthis objectpublic final ImmutableWriteRecordResult withRecordId(String value)
recordId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for recordIdthis objectpublic final ImmutableWriteRecordResult withErrorMessage(@Nullable String value)
errorMessage attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for errorMessage (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableWriteRecordResult that have equal attribute values.public int hashCode()
isSuccess, recordId, errorMessage.public String toString()
WriteRecordResult with attribute values.public static ImmutableWriteRecordResult copyOf(WriteRecordResult instance)
WriteRecordResult 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 ImmutableWriteRecordResult.Builder builder()
ImmutableWriteRecordResult.
ImmutableWriteRecordResult.builder()
.isSuccess(boolean) // required isSuccess
.recordId(String) // required recordId
.errorMessage(String | null) // nullable errorMessage
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.