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

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Instruction steps to enable the connector. */
@Fluent
public class InstructionSteps {
    /*
     * Instruction step title
     */
    @JsonProperty(value = "title")
    private String title;

    /*
     * Instruction step description
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * Instruction step details
     */
    @JsonProperty(value = "instructions")
    private List<InstructionStepsInstructionsItem> instructions;

    /**
     * Get the title property: Instruction step title.
     *
     * @return the title value.
     */
    public String title() {
        return this.title;
    }

    /**
     * Set the title property: Instruction step title.
     *
     * @param title the title value to set.
     * @return the InstructionSteps object itself.
     */
    public InstructionSteps withTitle(String title) {
        this.title = title;
        return this;
    }

    /**
     * Get the description property: Instruction step description.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Instruction step description.
     *
     * @param description the description value to set.
     * @return the InstructionSteps object itself.
     */
    public InstructionSteps withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the instructions property: Instruction step details.
     *
     * @return the instructions value.
     */
    public List<InstructionStepsInstructionsItem> instructions() {
        return this.instructions;
    }

    /**
     * Set the instructions property: Instruction step details.
     *
     * @param instructions the instructions value to set.
     * @return the InstructionSteps object itself.
     */
    public InstructionSteps withInstructions(List<InstructionStepsInstructionsItem> instructions) {
        this.instructions = instructions;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (instructions() != null) {
            instructions().forEach(e -> e.validate());
        }
    }
}
