/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.quicksight.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A structure that represents a named entity. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TopicNamedEntity implements Serializable, Cloneable, StructuredPojo { /** ** The name of the named entity. *
*/ private String entityName; /** ** The description of the named entity. *
*/ private String entityDescription; /** ** The other names or aliases for the named entity. *
*/ private java.util.List* The type of named entity that a topic represents. *
*/ private SemanticEntityType semanticEntityType; /** ** The definition of a named entity. *
*/ private java.util.List* The name of the named entity. *
* * @param entityName * The name of the named entity. */ public void setEntityName(String entityName) { this.entityName = entityName; } /** ** The name of the named entity. *
* * @return The name of the named entity. */ public String getEntityName() { return this.entityName; } /** ** The name of the named entity. *
* * @param entityName * The name of the named entity. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicNamedEntity withEntityName(String entityName) { setEntityName(entityName); return this; } /** ** The description of the named entity. *
* * @param entityDescription * The description of the named entity. */ public void setEntityDescription(String entityDescription) { this.entityDescription = entityDescription; } /** ** The description of the named entity. *
* * @return The description of the named entity. */ public String getEntityDescription() { return this.entityDescription; } /** ** The description of the named entity. *
* * @param entityDescription * The description of the named entity. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicNamedEntity withEntityDescription(String entityDescription) { setEntityDescription(entityDescription); return this; } /** ** The other names or aliases for the named entity. *
* * @return The other names or aliases for the named entity. */ public java.util.List* The other names or aliases for the named entity. *
* * @param entitySynonyms * The other names or aliases for the named entity. */ public void setEntitySynonyms(java.util.Collection* The other names or aliases for the named entity. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntitySynonyms(java.util.Collection)} or {@link #withEntitySynonyms(java.util.Collection)} if you want * to override the existing values. *
* * @param entitySynonyms * The other names or aliases for the named entity. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicNamedEntity withEntitySynonyms(String... entitySynonyms) { if (this.entitySynonyms == null) { setEntitySynonyms(new java.util.ArrayList* The other names or aliases for the named entity. *
* * @param entitySynonyms * The other names or aliases for the named entity. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicNamedEntity withEntitySynonyms(java.util.Collection* The type of named entity that a topic represents. *
* * @param semanticEntityType * The type of named entity that a topic represents. */ public void setSemanticEntityType(SemanticEntityType semanticEntityType) { this.semanticEntityType = semanticEntityType; } /** ** The type of named entity that a topic represents. *
* * @return The type of named entity that a topic represents. */ public SemanticEntityType getSemanticEntityType() { return this.semanticEntityType; } /** ** The type of named entity that a topic represents. *
* * @param semanticEntityType * The type of named entity that a topic represents. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicNamedEntity withSemanticEntityType(SemanticEntityType semanticEntityType) { setSemanticEntityType(semanticEntityType); return this; } /** ** The definition of a named entity. *
* * @return The definition of a named entity. */ public java.util.List* The definition of a named entity. *
* * @param definition * The definition of a named entity. */ public void setDefinition(java.util.Collection* The definition of a named entity. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDefinition(java.util.Collection)} or {@link #withDefinition(java.util.Collection)} if you want to * override the existing values. *
* * @param definition * The definition of a named entity. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicNamedEntity withDefinition(NamedEntityDefinition... definition) { if (this.definition == null) { setDefinition(new java.util.ArrayList* The definition of a named entity. *
* * @param definition * The definition of a named entity. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicNamedEntity withDefinition(java.util.Collection