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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/** This class represents the inline workflow task details. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "instanceType")
@JsonTypeName("InlineWorkflowTaskDetails")
@Fluent
public final class InlineWorkflowTaskDetails extends GroupTaskDetails {
    /*
     * The list of child workflow ids.
     */
    @JsonProperty(value = "workflowIds")
    private List<String> workflowIds;

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

    /**
     * Get the workflowIds property: The list of child workflow ids.
     *
     * @return the workflowIds value.
     */
    public List<String> workflowIds() {
        return this.workflowIds;
    }

    /**
     * Set the workflowIds property: The list of child workflow ids.
     *
     * @param workflowIds the workflowIds value to set.
     * @return the InlineWorkflowTaskDetails object itself.
     */
    public InlineWorkflowTaskDetails withWorkflowIds(List<String> workflowIds) {
        this.workflowIds = workflowIds;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public InlineWorkflowTaskDetails withChildTasks(List<AsrTask> childTasks) {
        super.withChildTasks(childTasks);
        return this;
    }

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