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

package com.azure.resourcemanager.machinelearning.models;

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

/** The DeploymentLogsRequest model. */
@Fluent
public final class DeploymentLogsRequest {
    /*
     * The type of container to retrieve logs from.
     */
    @JsonProperty(value = "containerType")
    private ContainerType containerType;

    /*
     * The maximum number of lines to tail.
     */
    @JsonProperty(value = "tail")
    private Integer tail;

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

    /**
     * Get the containerType property: The type of container to retrieve logs from.
     *
     * @return the containerType value.
     */
    public ContainerType containerType() {
        return this.containerType;
    }

    /**
     * Set the containerType property: The type of container to retrieve logs from.
     *
     * @param containerType the containerType value to set.
     * @return the DeploymentLogsRequest object itself.
     */
    public DeploymentLogsRequest withContainerType(ContainerType containerType) {
        this.containerType = containerType;
        return this;
    }

    /**
     * Get the tail property: The maximum number of lines to tail.
     *
     * @return the tail value.
     */
    public Integer tail() {
        return this.tail;
    }

    /**
     * Set the tail property: The maximum number of lines to tail.
     *
     * @param tail the tail value to set.
     * @return the DeploymentLogsRequest object itself.
     */
    public DeploymentLogsRequest withTail(Integer tail) {
        this.tail = tail;
        return this;
    }

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