@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableWriteDataRequest extends Object implements WriteDataRequest
WriteDataRequest.
Use the builder to create immutable instances:
ImmutableWriteDataRequest.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableWriteDataRequest.Builder
Builds instances of type
ImmutableWriteDataRequest. |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allOrNone()
Specifies that the WRITE operation must fail immediately after encountering the first instance of failure
when writing a batch of records to the Application.
|
static ImmutableWriteDataRequest.Builder |
builder()
Creates a builder for
ImmutableWriteDataRequest. |
ConnectorContext |
connectorContext()
Context contains the connector settings, credentials and API version etc.
|
static ImmutableWriteDataRequest |
copyOf(WriteDataRequest instance)
Creates an immutable copy of a
WriteDataRequest value. |
String |
entityIdentifier()
Unique identifier for the entity.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableWriteDataRequest that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
entityIdentifier, operation, idFieldNames, records, allOrNone, connectorContext. |
List<String> |
idFieldNames()
Primary keys of the entity.
|
WriteOperationType |
operation()
Write operation type needs to be called.
|
List<String> |
records()
List of JSON serialized string of the entity record as per the entity metadata.
|
String |
toString()
Prints the immutable value
WriteDataRequest with attribute values. |
ImmutableWriteDataRequest |
withAllOrNone(Boolean value)
Copy the current immutable object by setting a value for the
allOrNone attribute. |
ImmutableWriteDataRequest |
withConnectorContext(ConnectorContext value)
Copy the current immutable object by setting a value for the
connectorContext attribute. |
ImmutableWriteDataRequest |
withEntityIdentifier(String value)
Copy the current immutable object by setting a value for the
entityIdentifier attribute. |
ImmutableWriteDataRequest |
withIdFieldNames(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
idFieldNames. |
ImmutableWriteDataRequest |
withIdFieldNames(String... elements)
Copy the current immutable object with elements that replace the content of
idFieldNames. |
ImmutableWriteDataRequest |
withOperation(WriteOperationType value)
Copy the current immutable object by setting a value for the
operation attribute. |
ImmutableWriteDataRequest |
withRecords(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
records. |
ImmutableWriteDataRequest |
withRecords(String... elements)
Copy the current immutable object with elements that replace the content of
records. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitclosepublic String entityIdentifier()
entityIdentifier in interface WriteDataRequestpublic WriteOperationType operation()
operation in interface WriteDataRequest@Nullable public List<String> idFieldNames()
idFieldNames in interface WriteDataRequest@Nullable public List<String> records()
records in interface WriteDataRequest@Nullable public Boolean allOrNone()
allOrNone in interface WriteDataRequestpublic ConnectorContext connectorContext()
connectorContext in interface WriteDataRequestpublic final ImmutableWriteDataRequest withEntityIdentifier(String value)
entityIdentifier attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for entityIdentifierthis objectpublic final ImmutableWriteDataRequest withOperation(WriteOperationType value)
operation attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for operationthis objectpublic final ImmutableWriteDataRequest withIdFieldNames(@Nullable String... elements)
idFieldNames.elements - The elements to setthis objectpublic final ImmutableWriteDataRequest withIdFieldNames(@Nullable Iterable<String> elements)
idFieldNames.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of idFieldNames elements to setthis objectpublic final ImmutableWriteDataRequest withRecords(@Nullable String... elements)
records.elements - The elements to setthis objectpublic final ImmutableWriteDataRequest 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 final ImmutableWriteDataRequest withAllOrNone(@Nullable Boolean value)
allOrNone attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for allOrNone (can be null)this objectpublic final ImmutableWriteDataRequest withConnectorContext(ConnectorContext value)
connectorContext attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for connectorContextthis objectpublic boolean equals(@Nullable Object another)
ImmutableWriteDataRequest that have equal attribute values.public int hashCode()
entityIdentifier, operation, idFieldNames, records, allOrNone, connectorContext.public String toString()
WriteDataRequest with attribute values.public static ImmutableWriteDataRequest copyOf(WriteDataRequest instance)
WriteDataRequest 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 ImmutableWriteDataRequest.Builder builder()
ImmutableWriteDataRequest.
ImmutableWriteDataRequest.builder()
.entityIdentifier(String) // required entityIdentifier
.operation(com.amazonaws.appflow.custom.connector.model.write.WriteOperationType) // required operation
.idFieldNames(List<String> | null) // nullable idFieldNames
.records(List<String> | null) // nullable records
.allOrNone(Boolean | null) // nullable allOrNone
.connectorContext(com.amazonaws.appflow.custom.connector.model.ConnectorContext) // required connectorContext
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.