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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
 * The ImageAction model.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = ImageAction.class)
@JsonTypeName("ImageAction")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "ImageEntityAction", value = ImageEntityAction.class),
    @JsonSubTypes.Type(name = "ImageModuleAction", value = ImageModuleAction.class),
    @JsonSubTypes.Type(name = "ImageRecipesAction", value = ImageRecipesAction.class),
    @JsonSubTypes.Type(name = "ImageRelatedSearchesAction", value = ImageRelatedSearchesAction.class),
    @JsonSubTypes.Type(name = "ImageShoppingSourcesAction", value = ImageShoppingSourcesAction.class)
})
public class ImageAction extends Action {
    /**
     * A string representing the type of action.
     */
    @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
    private String actionType;

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

}
