// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.messaging.eventgrid.systemevents;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Detail of action on the app. */
@Fluent
public final class AppEventTypeDetail {
    /*
     * Type of action of the operation.
     */
    @JsonProperty(value = "action")
    private AppAction action;

    /** Creates an instance of AppEventTypeDetail class. */
    public AppEventTypeDetail() {}

    /**
     * Get the action property: Type of action of the operation.
     *
     * @return the action value.
     */
    public AppAction getAction() {
        return this.action;
    }

    /**
     * Set the action property: Type of action of the operation.
     *
     * @param action the action value to set.
     * @return the AppEventTypeDetail object itself.
     */
    public AppEventTypeDetail setAction(AppAction action) {
        this.action = action;
        return this;
    }
}
