@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableEntity extends Object implements Entity
Entity.
Use the builder to create immutable instances:
ImmutableEntity.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableEntity.Builder
Builds instances of type
ImmutableEntity. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableEntity.Builder |
builder()
Creates a builder for
ImmutableEntity. |
static ImmutableEntity |
copyOf(Entity instance)
Creates an immutable copy of a
Entity value. |
com.google.common.collect.ImmutableMap<String,String> |
customProperties()
Entity Specific custom properties.
|
String |
description()
Description of the entity.
|
String |
entityIdentifier()
Unique identifier for the entity.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableEntity that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
entityIdentifier, hasNestedEntities, isWritable, label, description, customProperties. |
boolean |
hasNestedEntities()
Specifies whether the connector entity is a parent or a category and has more entities nested underneath it.
|
boolean |
isWritable()
Specifies if the connector entity is writable
|
String |
label()
Label of the entity.
|
String |
toString()
Prints the immutable value
Entity with attribute values. |
ImmutableEntity |
withCustomProperties(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
customProperties map with the specified map. |
ImmutableEntity |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableEntity |
withEntityIdentifier(String value)
Copy the current immutable object by setting a value for the
entityIdentifier attribute. |
ImmutableEntity |
withHasNestedEntities(boolean value)
Copy the current immutable object by setting a value for the
hasNestedEntities attribute. |
ImmutableEntity |
withIsWritable(boolean value)
Copy the current immutable object by setting a value for the
isWritable attribute. |
ImmutableEntity |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
public String entityIdentifier()
entityIdentifier in interface Entitypublic boolean hasNestedEntities()
hasNestedEntities in interface Entitypublic boolean isWritable()
isWritable in interface Entity@Nullable public String description()
description in interface Entity@Nullable public com.google.common.collect.ImmutableMap<String,String> customProperties()
customProperties in interface Entitypublic final ImmutableEntity 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 ImmutableEntity withHasNestedEntities(boolean value)
hasNestedEntities attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for hasNestedEntitiesthis objectpublic final ImmutableEntity withIsWritable(boolean value)
isWritable attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isWritablethis objectpublic final ImmutableEntity 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 ImmutableEntity 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 ImmutableEntity 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)
ImmutableEntity that have equal attribute values.public int hashCode()
entityIdentifier, hasNestedEntities, isWritable, label, description, customProperties.public String toString()
Entity with attribute values.public static ImmutableEntity copyOf(Entity instance)
Entity 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 ImmutableEntity.Builder builder()
ImmutableEntity.
ImmutableEntity.builder()
.entityIdentifier(String) // required entityIdentifier
.hasNestedEntities(boolean) // required hasNestedEntities
.isWritable(boolean) // optional isWritable
.label(String | null) // nullable label
.description(String | null) // nullable description
.customProperties(Map<String, String> | null) // nullable customProperties
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.