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.
/** * 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.
/** * 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'.
/** * 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.
/** * 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.
/** * 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.
/** * Maximum value for this metric. */
@JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY) private Long limit;
Current value for this metric.
/** * 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'.
Returns:the unit value
/** * 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'.
Params:
  • unit – the unit value to set
Returns:the UsageInner object itself.
/** * 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.
Returns:the name value
/** * 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.
Returns:the quotaPeriod value
/** * 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.
Returns:the limit value
/** * Get maximum value for this metric. * * @return the limit value */
public Long limit() { return this.limit; }
Get current value for this metric.
Returns:the currentValue value
/** * Get current value for this metric. * * @return the currentValue value */
public Long currentValue() { return this.currentValue; } }