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