com.azure.resourcemanager.storage.fluent.models.UsageInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storage Show documentation
Show all versions of azure-resourcemanager-storage Show documentation
This package contains Microsoft Azure Storage Management SDK.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storage.fluent.models;
import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.storage.models.UsageName;
import com.azure.resourcemanager.storage.models.UsageUnit;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Describes Storage Resource Usage.
*/
@Immutable
public final class UsageInner {
/*
* Gets the unit of measurement.
*/
@JsonProperty(value = "unit", access = JsonProperty.Access.WRITE_ONLY)
private UsageUnit unit;
/*
* Gets the current count of the allocated resources in the subscription.
*/
@JsonProperty(value = "currentValue", access = JsonProperty.Access.WRITE_ONLY)
private Integer currentValue;
/*
* Gets the maximum count of the resources that can be allocated in the subscription.
*/
@JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY)
private Integer limit;
/*
* Gets the name of the type of usage.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private UsageName name;
/**
* Creates an instance of UsageInner class.
*/
public UsageInner() {
}
/**
* Get the unit property: Gets the unit of measurement.
*
* @return the unit value.
*/
public UsageUnit unit() {
return this.unit;
}
/**
* Get the currentValue property: Gets the current count of the allocated resources in the subscription.
*
* @return the currentValue value.
*/
public Integer currentValue() {
return this.currentValue;
}
/**
* Get the limit property: Gets the maximum count of the resources that can be allocated in the subscription.
*
* @return the limit value.
*/
public Integer limit() {
return this.limit;
}
/**
* Get the name property: Gets the name of the type of usage.
*
* @return the name value.
*/
public UsageName name() {
return this.name;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (name() != null) {
name().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy