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

package com.azure.resourcemanager.postgresqlflexibleserver.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** The properties of a logFile. */
@Fluent
public final class LogFileProperties {
    /*
     * Creation timestamp of the log file.
     */
    @JsonProperty(value = "createdTime")
    private OffsetDateTime createdTime;

    /*
     * Last modified timestamp of the log file.
     */
    @JsonProperty(value = "lastModifiedTime")
    private OffsetDateTime lastModifiedTime;

    /*
     * The size in kb of the logFile.
     */
    @JsonProperty(value = "sizeInKb")
    private Long sizeInKb;

    /*
     * Type of the log file.
     */
    @JsonProperty(value = "type")
    private String type;

    /*
     * The url to download the log file from.
     */
    @JsonProperty(value = "url")
    private String url;

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

    /**
     * Get the createdTime property: Creation timestamp of the log file.
     *
     * @return the createdTime value.
     */
    public OffsetDateTime createdTime() {
        return this.createdTime;
    }

    /**
     * Set the createdTime property: Creation timestamp of the log file.
     *
     * @param createdTime the createdTime value to set.
     * @return the LogFileProperties object itself.
     */
    public LogFileProperties withCreatedTime(OffsetDateTime createdTime) {
        this.createdTime = createdTime;
        return this;
    }

    /**
     * Get the lastModifiedTime property: Last modified timestamp of the log file.
     *
     * @return the lastModifiedTime value.
     */
    public OffsetDateTime lastModifiedTime() {
        return this.lastModifiedTime;
    }

    /**
     * Set the lastModifiedTime property: Last modified timestamp of the log file.
     *
     * @param lastModifiedTime the lastModifiedTime value to set.
     * @return the LogFileProperties object itself.
     */
    public LogFileProperties withLastModifiedTime(OffsetDateTime lastModifiedTime) {
        this.lastModifiedTime = lastModifiedTime;
        return this;
    }

    /**
     * Get the sizeInKb property: The size in kb of the logFile.
     *
     * @return the sizeInKb value.
     */
    public Long sizeInKb() {
        return this.sizeInKb;
    }

    /**
     * Set the sizeInKb property: The size in kb of the logFile.
     *
     * @param sizeInKb the sizeInKb value to set.
     * @return the LogFileProperties object itself.
     */
    public LogFileProperties withSizeInKb(Long sizeInKb) {
        this.sizeInKb = sizeInKb;
        return this;
    }

    /**
     * Get the type property: Type of the log file.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type property: Type of the log file.
     *
     * @param type the type value to set.
     * @return the LogFileProperties object itself.
     */
    public LogFileProperties withType(String type) {
        this.type = type;
        return this;
    }

    /**
     * Get the url property: The url to download the log file from.
     *
     * @return the url value.
     */
    public String url() {
        return this.url;
    }

    /**
     * Set the url property: The url to download the log file from.
     *
     * @param url the url value to set.
     * @return the LogFileProperties object itself.
     */
    public LogFileProperties withUrl(String url) {
        this.url = url;
        return this;
    }

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