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

package com.azure.resourcemanager.resourcehealth.models;

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

/** Lists actions the user can take based on the current availabilityState of the resource. */
@Fluent
public final class RecommendedAction {
    /*
     * Recommended action.
     */
    @JsonProperty(value = "action")
    private String action;

    /*
     * Link to the action
     */
    @JsonProperty(value = "actionUrl")
    private String actionUrl;

    /*
     * the comment for the Action
     */
    @JsonProperty(value = "_ActionUrl.Comment")
    private String actionUrlComment;

    /*
     * Substring of action, it describes which text should host the action URL.
     */
    @JsonProperty(value = "actionUrlText")
    private String actionUrlText;

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

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

    /**
     * Set the action property: Recommended action.
     *
     * @param action the action value to set.
     * @return the RecommendedAction object itself.
     */
    public RecommendedAction withAction(String action) {
        this.action = action;
        return this;
    }

    /**
     * Get the actionUrl property: Link to the action.
     *
     * @return the actionUrl value.
     */
    public String actionUrl() {
        return this.actionUrl;
    }

    /**
     * Set the actionUrl property: Link to the action.
     *
     * @param actionUrl the actionUrl value to set.
     * @return the RecommendedAction object itself.
     */
    public RecommendedAction withActionUrl(String actionUrl) {
        this.actionUrl = actionUrl;
        return this;
    }

    /**
     * Get the actionUrlComment property: the comment for the Action.
     *
     * @return the actionUrlComment value.
     */
    public String actionUrlComment() {
        return this.actionUrlComment;
    }

    /**
     * Set the actionUrlComment property: the comment for the Action.
     *
     * @param actionUrlComment the actionUrlComment value to set.
     * @return the RecommendedAction object itself.
     */
    public RecommendedAction withActionUrlComment(String actionUrlComment) {
        this.actionUrlComment = actionUrlComment;
        return this;
    }

    /**
     * Get the actionUrlText property: Substring of action, it describes which text should host the action URL.
     *
     * @return the actionUrlText value.
     */
    public String actionUrlText() {
        return this.actionUrlText;
    }

    /**
     * Set the actionUrlText property: Substring of action, it describes which text should host the action URL.
     *
     * @param actionUrlText the actionUrlText value to set.
     * @return the RecommendedAction object itself.
     */
    public RecommendedAction withActionUrlText(String actionUrlText) {
        this.actionUrlText = actionUrlText;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
