All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.netapp.models.HourlySchedule Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.

There is a newer version: 1.6.0-beta.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.netapp.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Hourly Schedule properties. */
@Fluent
public final class HourlySchedule {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(HourlySchedule.class);

    /*
     * Hourly snapshot count to keep
     */
    @JsonProperty(value = "snapshotsToKeep")
    private Integer snapshotsToKeep;

    /*
     * Indicates which minute snapshot should be taken
     */
    @JsonProperty(value = "minute")
    private Integer minute;

    /*
     * Resource size in bytes, current storage usage for the volume in bytes
     */
    @JsonProperty(value = "usedBytes")
    private Long usedBytes;

    /**
     * Get the snapshotsToKeep property: Hourly snapshot count to keep.
     *
     * @return the snapshotsToKeep value.
     */
    public Integer snapshotsToKeep() {
        return this.snapshotsToKeep;
    }

    /**
     * Set the snapshotsToKeep property: Hourly snapshot count to keep.
     *
     * @param snapshotsToKeep the snapshotsToKeep value to set.
     * @return the HourlySchedule object itself.
     */
    public HourlySchedule withSnapshotsToKeep(Integer snapshotsToKeep) {
        this.snapshotsToKeep = snapshotsToKeep;
        return this;
    }

    /**
     * Get the minute property: Indicates which minute snapshot should be taken.
     *
     * @return the minute value.
     */
    public Integer minute() {
        return this.minute;
    }

    /**
     * Set the minute property: Indicates which minute snapshot should be taken.
     *
     * @param minute the minute value to set.
     * @return the HourlySchedule object itself.
     */
    public HourlySchedule withMinute(Integer minute) {
        this.minute = minute;
        return this;
    }

    /**
     * Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.
     *
     * @return the usedBytes value.
     */
    public Long usedBytes() {
        return this.usedBytes;
    }

    /**
     * Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.
     *
     * @param usedBytes the usedBytes value to set.
     * @return the HourlySchedule object itself.
     */
    public HourlySchedule withUsedBytes(Long usedBytes) {
        this.usedBytes = usedBytes;
        return this;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy