Class QuotaCounterContractInner
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.QuotaCounterContractInner
-
public final class QuotaCounterContractInner extends Object
Quota counter details.
-
-
Constructor Summary
Constructors Constructor Description QuotaCounterContractInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
counterKey()
Get the counterKey property: The Key value of the Counter.OffsetDateTime
periodEndTime()
Get the periodEndTime property: The date of the end of Counter Period.String
periodKey()
Get the periodKey property: Identifier of the Period for which the counter was collected.OffsetDateTime
periodStartTime()
Get the periodStartTime property: The date of the start of Counter Period.void
validate()
Validates the instance.QuotaCounterValueContractProperties
value()
Get the value property: Quota Value Properties.QuotaCounterContractInner
withCounterKey(String counterKey)
Set the counterKey property: The Key value of the Counter.QuotaCounterContractInner
withPeriodEndTime(OffsetDateTime periodEndTime)
Set the periodEndTime property: The date of the end of Counter Period.QuotaCounterContractInner
withPeriodKey(String periodKey)
Set the periodKey property: Identifier of the Period for which the counter was collected.QuotaCounterContractInner
withPeriodStartTime(OffsetDateTime periodStartTime)
Set the periodStartTime property: The date of the start of Counter Period.QuotaCounterContractInner
withValue(QuotaCounterValueContractProperties value)
Set the value property: Quota Value Properties.
-
-
-
Method Detail
-
counterKey
public String counterKey()
Get the counterKey property: The Key value of the Counter. Must not be empty.- Returns:
- the counterKey value.
-
withCounterKey
public QuotaCounterContractInner withCounterKey(String counterKey)
Set the counterKey property: The Key value of the Counter. Must not be empty.- Parameters:
counterKey
- the counterKey value to set.- Returns:
- the QuotaCounterContractInner object itself.
-
periodKey
public String periodKey()
Get the periodKey property: Identifier of the Period for which the counter was collected. Must not be empty.- Returns:
- the periodKey value.
-
withPeriodKey
public QuotaCounterContractInner withPeriodKey(String periodKey)
Set the periodKey property: Identifier of the Period for which the counter was collected. Must not be empty.- Parameters:
periodKey
- the periodKey value to set.- Returns:
- the QuotaCounterContractInner object itself.
-
periodStartTime
public OffsetDateTime periodStartTime()
Get the periodStartTime property: The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the periodStartTime value.
-
withPeriodStartTime
public QuotaCounterContractInner withPeriodStartTime(OffsetDateTime periodStartTime)
Set the periodStartTime property: The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
periodStartTime
- the periodStartTime value to set.- Returns:
- the QuotaCounterContractInner object itself.
-
periodEndTime
public OffsetDateTime periodEndTime()
Get the periodEndTime property: The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the periodEndTime value.
-
withPeriodEndTime
public QuotaCounterContractInner withPeriodEndTime(OffsetDateTime periodEndTime)
Set the periodEndTime property: The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
periodEndTime
- the periodEndTime value to set.- Returns:
- the QuotaCounterContractInner object itself.
-
value
public QuotaCounterValueContractProperties value()
Get the value property: Quota Value Properties.- Returns:
- the value value.
-
withValue
public QuotaCounterContractInner withValue(QuotaCounterValueContractProperties value)
Set the value property: Quota Value Properties.- Parameters:
value
- the value value to set.- Returns:
- the QuotaCounterContractInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-