@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. |
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, label, description. |
boolean |
hasNestedEntities()
Specifies whether the connector entity is a parent or a category and has more entities nested underneath it.
|
String |
label()
Label of the entity.
|
String |
toString()
Prints the immutable value
Entity with attribute values. |
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 |
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 Entity@Nullable public String description()
description 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 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 boolean equals(@Nullable Object another)
ImmutableEntity that have equal attribute values.public int hashCode()
entityIdentifier, hasNestedEntities, label, description.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
.label(String | null) // nullable label
.description(String | null) // nullable description
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.