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

package com.azure.resourcemanager.appcontainers.models;

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

/** Rendering details of a diagnostics table. */
@Fluent
public final class DiagnosticRendering {
    /*
     * Rendering type
     */
    @JsonProperty(value = "type")
    private Integer type;

    /*
     * Title of the table
     */
    @JsonProperty(value = "title")
    private String title;

    /*
     * Description of the table
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * Flag if the table should be rendered
     */
    @JsonProperty(value = "isVisible")
    private Boolean isVisible;

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

    /**
     * Get the type property: Rendering type.
     *
     * @return the type value.
     */
    public Integer type() {
        return this.type;
    }

    /**
     * Set the type property: Rendering type.
     *
     * @param type the type value to set.
     * @return the DiagnosticRendering object itself.
     */
    public DiagnosticRendering withType(Integer type) {
        this.type = type;
        return this;
    }

    /**
     * Get the title property: Title of the table.
     *
     * @return the title value.
     */
    public String title() {
        return this.title;
    }

    /**
     * Set the title property: Title of the table.
     *
     * @param title the title value to set.
     * @return the DiagnosticRendering object itself.
     */
    public DiagnosticRendering withTitle(String title) {
        this.title = title;
        return this;
    }

    /**
     * Get the description property: Description of the table.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Description of the table.
     *
     * @param description the description value to set.
     * @return the DiagnosticRendering object itself.
     */
    public DiagnosticRendering withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the isVisible property: Flag if the table should be rendered.
     *
     * @return the isVisible value.
     */
    public Boolean isVisible() {
        return this.isVisible;
    }

    /**
     * Set the isVisible property: Flag if the table should be rendered.
     *
     * @param isVisible the isVisible value to set.
     * @return the DiagnosticRendering object itself.
     */
    public DiagnosticRendering withIsVisible(Boolean isVisible) {
        this.isVisible = isVisible;
        return this;
    }

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