/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.language.luis.runtime.models;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * LUIS Composite Entity.
 */
public class CompositeEntityModel {
    /**
     * Type/name of parent entity.
     */
    @JsonProperty(value = "parentType", required = true)
    private String parentType;

    /**
     * Value for composite entity extracted by LUIS.
     */
    @JsonProperty(value = "value", required = true)
    private String value;

    /**
     * Child entities.
     */
    @JsonProperty(value = "children", required = true)
    private List<CompositeChildModel> children;

    /**
     * Get the parentType value.
     *
     * @return the parentType value
     */
    public String parentType() {
        return this.parentType;
    }

    /**
     * Set the parentType value.
     *
     * @param parentType the parentType value to set
     * @return the CompositeEntityModel object itself.
     */
    public CompositeEntityModel withParentType(String parentType) {
        this.parentType = parentType;
        return this;
    }

    /**
     * Get the value value.
     *
     * @return the value value
     */
    public String value() {
        return this.value;
    }

    /**
     * Set the value value.
     *
     * @param value the value value to set
     * @return the CompositeEntityModel object itself.
     */
    public CompositeEntityModel withValue(String value) {
        this.value = value;
        return this;
    }

    /**
     * Get the children value.
     *
     * @return the children value
     */
    public List<CompositeChildModel> children() {
        return this.children;
    }

    /**
     * Set the children value.
     *
     * @param children the children value to set
     * @return the CompositeEntityModel object itself.
     */
    public CompositeEntityModel withChildren(List<CompositeChildModel> children) {
        this.children = children;
        return this;
    }

}
