/**
 * 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.search.autosuggest.models;

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

/**
 * The SuggestionsSuggestionGroup model.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = SuggestionsSuggestionGroup.class)
@JsonTypeName("Suggestions/SuggestionGroup")
public class SuggestionsSuggestionGroup {
    /**
     * Possible values include: 'Unknown', 'Web', 'StoreApps', 'SearchHistory',
     * 'PersonalSearchDocuments', 'PersonalSearchTags', 'Custom'.
     */
    @JsonProperty(value = "name", required = true)
    private ScenarioType name;

    /**
     * The searchSuggestions property.
     */
    @JsonProperty(value = "searchSuggestions", required = true)
    private List<SearchAction> searchSuggestions;

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

    /**
     * Set the name value.
     *
     * @param name the name value to set
     * @return the SuggestionsSuggestionGroup object itself.
     */
    public SuggestionsSuggestionGroup withName(ScenarioType name) {
        this.name = name;
        return this;
    }

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

    /**
     * Set the searchSuggestions value.
     *
     * @param searchSuggestions the searchSuggestions value to set
     * @return the SuggestionsSuggestionGroup object itself.
     */
    public SuggestionsSuggestionGroup withSearchSuggestions(List<SearchAction> searchSuggestions) {
        this.searchSuggestions = searchSuggestions;
        return this;
    }

}
