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