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