@Generated(value="software.amazon.awssdk:codegen") public final class TopicNamedEntity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TopicNamedEntity.Builder,TopicNamedEntity>
A structure that represents a named entity.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TopicNamedEntity.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TopicNamedEntity.Builder |
builder() |
List<NamedEntityDefinition> |
definition()
The definition of a named entity.
|
String |
entityDescription()
The description of the named entity.
|
String |
entityName()
The name of the named entity.
|
List<String> |
entitySynonyms()
The other names or aliases for the named entity.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDefinition()
For responses, this returns true if the service returned a value for the Definition property.
|
boolean |
hasEntitySynonyms()
For responses, this returns true if the service returned a value for the EntitySynonyms property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
SemanticEntityType |
semanticEntityType()
The type of named entity that a topic represents.
|
static Class<? extends TopicNamedEntity.Builder> |
serializableBuilderClass() |
TopicNamedEntity.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String entityName()
The name of the named entity.
public final String entityDescription()
The description of the named entity.
public final boolean hasEntitySynonyms()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> entitySynonyms()
The other names or aliases for the named entity.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasEntitySynonyms() method.
public final SemanticEntityType semanticEntityType()
The type of named entity that a topic represents.
public final boolean hasDefinition()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<NamedEntityDefinition> definition()
The definition of a named entity.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDefinition() method.
public TopicNamedEntity.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TopicNamedEntity.Builder,TopicNamedEntity>public static TopicNamedEntity.Builder builder()
public static Class<? extends TopicNamedEntity.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.