@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableWriteDataResponse extends Object implements WriteDataResponse
WriteDataResponse.
Use the builder to create immutable instances:
ImmutableWriteDataResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableWriteDataResponse.Builder
Builds instances of type
ImmutableWriteDataResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableWriteDataResponse.Builder |
builder()
Creates a builder for
ImmutableWriteDataResponse. |
static ImmutableWriteDataResponse |
copyOf(WriteDataResponse instance)
Creates an immutable copy of a
WriteDataResponse value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableWriteDataResponse that have equal attribute values. |
ErrorDetails |
errorDetails()
Error details if the Operation is unsuccessful.
|
int |
hashCode()
Computes a hash code from attributes:
isSuccess, errorDetails, writeRecordResults. |
boolean |
isSuccess()
Specifies if the operation is successful or not.
|
String |
toString()
Prints the immutable value
WriteDataResponse with attribute values. |
ImmutableWriteDataResponse |
withErrorDetails(ErrorDetails value)
Copy the current immutable object by setting a value for the
errorDetails attribute. |
ImmutableWriteDataResponse |
withIsSuccess(boolean value)
Copy the current immutable object by setting a value for the
isSuccess attribute. |
ImmutableWriteDataResponse |
withWriteRecordResults(Iterable<? extends WriteRecordResult> elements)
Copy the current immutable object with elements that replace the content of
writeRecordResults. |
ImmutableWriteDataResponse |
withWriteRecordResults(WriteRecordResult... elements)
Copy the current immutable object with elements that replace the content of
writeRecordResults. |
com.google.common.collect.ImmutableList<WriteRecordResult> |
writeRecordResults()
List of input records write call response with success and failure details.
|
public boolean isSuccess()
isSuccess in interface WriteDataResponse@Nullable public ErrorDetails errorDetails()
errorDetails in interface WriteDataResponse@Nullable public com.google.common.collect.ImmutableList<WriteRecordResult> writeRecordResults()
writeRecordResults in interface WriteDataResponsepublic final ImmutableWriteDataResponse 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 ImmutableWriteDataResponse withErrorDetails(@Nullable ErrorDetails value)
errorDetails attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for errorDetails (can be null)this objectpublic final ImmutableWriteDataResponse withWriteRecordResults(@Nullable WriteRecordResult... elements)
writeRecordResults.elements - The elements to setthis objectpublic final ImmutableWriteDataResponse withWriteRecordResults(@Nullable Iterable<? extends WriteRecordResult> elements)
writeRecordResults.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of writeRecordResults elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableWriteDataResponse that have equal attribute values.public int hashCode()
isSuccess, errorDetails, writeRecordResults.public String toString()
WriteDataResponse with attribute values.public static ImmutableWriteDataResponse copyOf(WriteDataResponse instance)
WriteDataResponse 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 ImmutableWriteDataResponse.Builder builder()
ImmutableWriteDataResponse.
ImmutableWriteDataResponse.builder()
.isSuccess(boolean) // required isSuccess
.errorDetails(com.amazonaws.appflow.custom.connector.model.ErrorDetails | null) // nullable errorDetails
.writeRecordResults(List<com.amazonaws.appflow.custom.connector.model.write.WriteRecordResult> | null) // nullable writeRecordResults
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.