@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableFieldDefinition extends Object implements FieldDefinition
FieldDefinition.
Use the builder to create immutable instances:
ImmutableFieldDefinition.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFieldDefinition.Builder
Builds instances of type
ImmutableFieldDefinition. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableFieldDefinition.Builder |
builder()
Creates a builder for
ImmutableFieldDefinition. |
FieldConstraints |
constraints()
Constraints applicable to this field like length, value etc.
|
static ImmutableFieldDefinition |
copyOf(FieldDefinition instance)
Creates an immutable copy of a
FieldDefinition value. |
com.google.common.collect.ImmutableMap<String,String> |
customProperties()
Custom properties defined for this field.
|
FieldDataType |
dataType()
DataType of this field.
|
String |
dataTypeLabel()
Application specific description of the dataType, so that AppFlow user can be presented with the same information
in the public API for exposing connector specific metadata
|
String |
defaultValue()
Default value of the field.
|
String |
description()
Description of this field.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFieldDefinition that have equal attribute values. |
String |
fieldName()
The unique identifier of the connector field.
|
com.google.common.collect.ImmutableList<ConnectorOperator> |
filterOperators()
Filter Operators applicable for this field.
|
int |
hashCode()
Computes a hash code from attributes:
fieldName, dataType, dataTypeLabel, label, description, isPrimaryKey, defaultValue, isDeprecated, constraints, readProperties, writeProperties, filterOperators, customProperties. |
Boolean |
isDeprecated()
Specifies if this field is deprecated.
|
Boolean |
isPrimaryKey()
Specifies if it can be used as a primary key.
|
String |
label()
Label for this field.
|
ReadOperationProperty |
readProperties()
The properties that can be applied to a field when the connector is being used as a SOURCE.
|
String |
toString()
Prints the immutable value
FieldDefinition with attribute values. |
ImmutableFieldDefinition |
withConstraints(FieldConstraints value)
Copy the current immutable object by setting a value for the
constraints attribute. |
ImmutableFieldDefinition |
withCustomProperties(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
customProperties map with the specified map. |
ImmutableFieldDefinition |
withDataType(FieldDataType value)
Copy the current immutable object by setting a value for the
dataType attribute. |
ImmutableFieldDefinition |
withDataTypeLabel(String value)
Copy the current immutable object by setting a value for the
dataTypeLabel attribute. |
ImmutableFieldDefinition |
withDefaultValue(String value)
Copy the current immutable object by setting a value for the
defaultValue attribute. |
ImmutableFieldDefinition |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableFieldDefinition |
withFieldName(String value)
Copy the current immutable object by setting a value for the
fieldName attribute. |
ImmutableFieldDefinition |
withFilterOperators(ConnectorOperator... elements)
Copy the current immutable object with elements that replace the content of
filterOperators. |
ImmutableFieldDefinition |
withFilterOperators(Iterable<? extends ConnectorOperator> elements)
Copy the current immutable object with elements that replace the content of
filterOperators. |
ImmutableFieldDefinition |
withIsDeprecated(Boolean value)
Copy the current immutable object by setting a value for the
isDeprecated attribute. |
ImmutableFieldDefinition |
withIsPrimaryKey(Boolean value)
Copy the current immutable object by setting a value for the
isPrimaryKey attribute. |
ImmutableFieldDefinition |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableFieldDefinition |
withReadProperties(ReadOperationProperty value)
Copy the current immutable object by setting a value for the
readProperties attribute. |
ImmutableFieldDefinition |
withWriteProperties(WriteOperationProperty value)
Copy the current immutable object by setting a value for the
writeProperties attribute. |
WriteOperationProperty |
writeProperties()
The properties applied to a field when the connector is being used as a destination.
|
public String fieldName()
fieldName in interface FieldDefinitionpublic FieldDataType dataType()
dataType in interface FieldDefinitionpublic String dataTypeLabel()
dataTypeLabel in interface FieldDefinition@Nullable public String label()
label in interface FieldDefinition@Nullable public String description()
description in interface FieldDefinition@Nullable public Boolean isPrimaryKey()
isPrimaryKey in interface FieldDefinition@Nullable public String defaultValue()
defaultValue in interface FieldDefinition@Nullable public Boolean isDeprecated()
isDeprecated in interface FieldDefinition@Nullable public FieldConstraints constraints()
constraints in interface FieldDefinition@Nullable public ReadOperationProperty readProperties()
readProperties in interface FieldDefinition@Nullable public WriteOperationProperty writeProperties()
writeProperties in interface FieldDefinitionpublic com.google.common.collect.ImmutableList<ConnectorOperator> filterOperators()
filterOperators in interface FieldDefinition@Nullable public com.google.common.collect.ImmutableMap<String,String> customProperties()
customProperties in interface FieldDefinitionpublic final ImmutableFieldDefinition withFieldName(String value)
fieldName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for fieldNamethis objectpublic final ImmutableFieldDefinition withDataType(FieldDataType value)
dataType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for dataTypethis objectpublic final ImmutableFieldDefinition withDataTypeLabel(String value)
dataTypeLabel attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for dataTypeLabelthis objectpublic final ImmutableFieldDefinition withLabel(@Nullable String value)
label attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for label (can be null)this objectpublic final ImmutableFieldDefinition withDescription(@Nullable String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for description (can be null)this objectpublic final ImmutableFieldDefinition withIsPrimaryKey(@Nullable Boolean value)
isPrimaryKey attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for isPrimaryKey (can be null)this objectpublic final ImmutableFieldDefinition withDefaultValue(@Nullable String value)
defaultValue attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for defaultValue (can be null)this objectpublic final ImmutableFieldDefinition withIsDeprecated(@Nullable Boolean value)
isDeprecated attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for isDeprecated (can be null)this objectpublic final ImmutableFieldDefinition withConstraints(@Nullable FieldConstraints value)
constraints attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for constraints (can be null)this objectpublic final ImmutableFieldDefinition withReadProperties(@Nullable ReadOperationProperty value)
readProperties attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for readProperties (can be null)this objectpublic final ImmutableFieldDefinition withWriteProperties(@Nullable WriteOperationProperty value)
writeProperties attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for writeProperties (can be null)this objectpublic final ImmutableFieldDefinition withFilterOperators(ConnectorOperator... elements)
filterOperators.elements - The elements to setthis objectpublic final ImmutableFieldDefinition withFilterOperators(Iterable<? extends ConnectorOperator> elements)
filterOperators.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of filterOperators elements to setthis objectpublic final ImmutableFieldDefinition withCustomProperties(@Nullable Map<String,? extends String> entries)
customProperties map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the customProperties mapthis objectpublic boolean equals(@Nullable Object another)
ImmutableFieldDefinition that have equal attribute values.public int hashCode()
fieldName, dataType, dataTypeLabel, label, description, isPrimaryKey, defaultValue, isDeprecated, constraints, readProperties, writeProperties, filterOperators, customProperties.public String toString()
FieldDefinition with attribute values.public static ImmutableFieldDefinition copyOf(FieldDefinition instance)
FieldDefinition 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 ImmutableFieldDefinition.Builder builder()
ImmutableFieldDefinition.
ImmutableFieldDefinition.builder()
.fieldName(String) // required fieldName
.dataType(com.amazonaws.appflow.custom.connector.model.metadata.FieldDataType) // required dataType
.dataTypeLabel(String) // optional dataTypeLabel
.label(String | null) // nullable label
.description(String | null) // nullable description
.isPrimaryKey(Boolean | null) // nullable isPrimaryKey
.defaultValue(String | null) // nullable defaultValue
.isDeprecated(Boolean | null) // nullable isDeprecated
.constraints(com.amazonaws.appflow.custom.connector.model.metadata.FieldConstraints | null) // nullable constraints
.readProperties(com.amazonaws.appflow.custom.connector.model.metadata.ReadOperationProperty | null) // nullable readProperties
.writeProperties(com.amazonaws.appflow.custom.connector.model.metadata.WriteOperationProperty | null) // nullable writeProperties
.addFilterOperators|addAllFilterOperators(com.amazonaws.appflow.custom.connector.model.connectorconfiguration.ConnectorOperator) // filterOperators elements
.customProperties(Map<String, String> | null) // nullable customProperties
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.