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

com.azure.resourcemanager.appplatform.models.PersistentDisk Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure App Platform Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.42.0
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.appplatform.models;

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

/**
 * Persistent disk payload.
 */
@Fluent
public final class PersistentDisk {
    /*
     * Size of the persistent disk in GB
     */
    @JsonProperty(value = "sizeInGB")
    private Integer sizeInGB;

    /*
     * Size of the used persistent disk in GB
     */
    @JsonProperty(value = "usedInGB", access = JsonProperty.Access.WRITE_ONLY)
    private Integer usedInGB;

    /*
     * Mount path of the persistent disk
     */
    @JsonProperty(value = "mountPath")
    private String mountPath;

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

    /**
     * Get the sizeInGB property: Size of the persistent disk in GB.
     * 
     * @return the sizeInGB value.
     */
    public Integer sizeInGB() {
        return this.sizeInGB;
    }

    /**
     * Set the sizeInGB property: Size of the persistent disk in GB.
     * 
     * @param sizeInGB the sizeInGB value to set.
     * @return the PersistentDisk object itself.
     */
    public PersistentDisk withSizeInGB(Integer sizeInGB) {
        this.sizeInGB = sizeInGB;
        return this;
    }

    /**
     * Get the usedInGB property: Size of the used persistent disk in GB.
     * 
     * @return the usedInGB value.
     */
    public Integer usedInGB() {
        return this.usedInGB;
    }

    /**
     * Get the mountPath property: Mount path of the persistent disk.
     * 
     * @return the mountPath value.
     */
    public String mountPath() {
        return this.mountPath;
    }

    /**
     * Set the mountPath property: Mount path of the persistent disk.
     * 
     * @param mountPath the mountPath value to set.
     * @return the PersistentDisk object itself.
     */
    public PersistentDisk withMountPath(String mountPath) {
        this.mountPath = mountPath;
        return this;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy