Class SignalRUsageInner
- java.lang.Object
-
- com.azure.resourcemanager.signalr.fluent.models.SignalRUsageInner
-
public final class SignalRUsageInner extends Object
Object that describes a specific usage of the resources.
-
-
Constructor Summary
Constructors Constructor Description SignalRUsageInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
currentValue()
Get the currentValue property: Current value for the usage quota.String
id()
Get the id property: Fully qualified ARM resource id.Long
limit()
Get the limit property: The maximum permitted value for the usage quota.SignalRUsageName
name()
Get the name property: Localizable String object containing the name and a localized value.String
unit()
Get the unit property: Representing the units of the usage quota.void
validate()
Validates the instance.SignalRUsageInner
withCurrentValue(Long currentValue)
Set the currentValue property: Current value for the usage quota.SignalRUsageInner
withId(String id)
Set the id property: Fully qualified ARM resource id.SignalRUsageInner
withLimit(Long limit)
Set the limit property: The maximum permitted value for the usage quota.SignalRUsageInner
withName(SignalRUsageName name)
Set the name property: Localizable String object containing the name and a localized value.SignalRUsageInner
withUnit(String unit)
Set the unit property: Representing the units of the usage quota.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Fully qualified ARM resource id.- Returns:
- the id value.
-
withId
public SignalRUsageInner withId(String id)
Set the id property: Fully qualified ARM resource id.- Parameters:
id
- the id value to set.- Returns:
- the SignalRUsageInner object itself.
-
currentValue
public Long currentValue()
Get the currentValue property: Current value for the usage quota.- Returns:
- the currentValue value.
-
withCurrentValue
public SignalRUsageInner withCurrentValue(Long currentValue)
Set the currentValue property: Current value for the usage quota.- Parameters:
currentValue
- the currentValue value to set.- Returns:
- the SignalRUsageInner object itself.
-
limit
public Long limit()
Get the limit property: The maximum permitted value for the usage quota. If there is no limit, this value will be -1.- Returns:
- the limit value.
-
withLimit
public SignalRUsageInner withLimit(Long limit)
Set the limit property: The maximum permitted value for the usage quota. If there is no limit, this value will be -1.- Parameters:
limit
- the limit value to set.- Returns:
- the SignalRUsageInner object itself.
-
name
public SignalRUsageName name()
Get the name property: Localizable String object containing the name and a localized value.- Returns:
- the name value.
-
withName
public SignalRUsageInner withName(SignalRUsageName name)
Set the name property: Localizable String object containing the name and a localized value.- Parameters:
name
- the name value to set.- Returns:
- the SignalRUsageInner object itself.
-
unit
public String unit()
Get the unit property: Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.- Returns:
- the unit value.
-
withUnit
public SignalRUsageInner withUnit(String unit)
Set the unit property: Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.- Parameters:
unit
- the unit value to set.- Returns:
- the SignalRUsageInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-