@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableEntityDefinition extends Object implements EntityDefinition
EntityDefinition.
Use the builder to create immutable instances:
ImmutableEntityDefinition.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableEntityDefinition.Builder
Builds instances of type
ImmutableEntityDefinition. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableEntityDefinition.Builder |
builder()
Creates a builder for
ImmutableEntityDefinition. |
static ImmutableEntityDefinition |
copyOf(EntityDefinition instance)
Creates an immutable copy of a
EntityDefinition value. |
com.google.common.collect.ImmutableMap<String,String> |
customProperties()
Custom properties defined for an Entity.
|
Entity |
entity()
Contains its name, description, label or if it has child properties or not.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableEntityDefinition that have equal attribute values. |
com.google.common.collect.ImmutableList<FieldDefinition> |
fields()
List of data models of the fields an Entity has.
|
int |
hashCode()
Computes a hash code from attributes:
entity, fields, customProperties. |
String |
toString()
Prints the immutable value
EntityDefinition with attribute values. |
ImmutableEntityDefinition |
withCustomProperties(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
customProperties map with the specified map. |
ImmutableEntityDefinition |
withEntity(Entity value)
Copy the current immutable object by setting a value for the
entity attribute. |
ImmutableEntityDefinition |
withFields(FieldDefinition... elements)
Copy the current immutable object with elements that replace the content of
fields. |
ImmutableEntityDefinition |
withFields(Iterable<? extends FieldDefinition> elements)
Copy the current immutable object with elements that replace the content of
fields. |
public Entity entity()
entity in interface EntityDefinitionpublic com.google.common.collect.ImmutableList<FieldDefinition> fields()
fields in interface EntityDefinition@Nullable public com.google.common.collect.ImmutableMap<String,String> customProperties()
customProperties in interface EntityDefinitionpublic final ImmutableEntityDefinition withEntity(Entity value)
entity attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for entitythis objectpublic final ImmutableEntityDefinition withFields(FieldDefinition... elements)
fields.elements - The elements to setthis objectpublic final ImmutableEntityDefinition withFields(Iterable<? extends FieldDefinition> elements)
fields.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of fields elements to setthis objectpublic final ImmutableEntityDefinition 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)
ImmutableEntityDefinition that have equal attribute values.public int hashCode()
entity, fields, customProperties.public String toString()
EntityDefinition with attribute values.public static ImmutableEntityDefinition copyOf(EntityDefinition instance)
EntityDefinition 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 ImmutableEntityDefinition.Builder builder()
ImmutableEntityDefinition.
ImmutableEntityDefinition.builder()
.entity(com.amazonaws.appflow.custom.connector.model.metadata.Entity) // required entity
.addFields|addAllFields(com.amazonaws.appflow.custom.connector.model.metadata.FieldDefinition) // fields elements
.customProperties(Map<String, String> | null) // nullable customProperties
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.