com.microsoft.azure.management.cosmosdb.implementation.UsageInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-cosmosdb Show documentation
Show all versions of azure-mgmt-cosmosdb Show documentation
This package contains Microsoft Azure CosmosDB SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.cosmosdb.implementation;
import com.microsoft.azure.management.cosmosdb.UnitType;
import com.microsoft.azure.management.cosmosdb.MetricName;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The usage data for a usage request.
*/
public class UsageInner {
/**
* The unit of the metric. Possible values include: 'Count', 'Bytes',
* 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond',
* 'Milliseconds'.
*/
@JsonProperty(value = "unit")
private UnitType unit;
/**
* The name information for the metric.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private MetricName name;
/**
* The quota period used to summarize the usage values.
*/
@JsonProperty(value = "quotaPeriod", access = JsonProperty.Access.WRITE_ONLY)
private String quotaPeriod;
/**
* Maximum value for this metric.
*/
@JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY)
private Long limit;
/**
* Current value for this metric.
*/
@JsonProperty(value = "currentValue", access = JsonProperty.Access.WRITE_ONLY)
private Long currentValue;
/**
* Get the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'.
*
* @return the unit value
*/
public UnitType unit() {
return this.unit;
}
/**
* Set the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'.
*
* @param unit the unit value to set
* @return the UsageInner object itself.
*/
public UsageInner withUnit(UnitType unit) {
this.unit = unit;
return this;
}
/**
* Get the name information for the metric.
*
* @return the name value
*/
public MetricName name() {
return this.name;
}
/**
* Get the quota period used to summarize the usage values.
*
* @return the quotaPeriod value
*/
public String quotaPeriod() {
return this.quotaPeriod;
}
/**
* Get maximum value for this metric.
*
* @return the limit value
*/
public Long limit() {
return this.limit;
}
/**
* Get current value for this metric.
*
* @return the currentValue value
*/
public Long currentValue() {
return this.currentValue;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy