SignalRUsageInner Class
- java.
lang. Object - com.
azure. resourcemanager. signalr. fluent. models. SignalRUsageInner
- com.
Implements
public final class SignalRUsageInner
implements JsonSerializable<SignalRUsageInner>
Object that describes a specific usage of the resources.
Constructor Summary
| Constructor | Description |
|---|---|
| SignalRUsageInner() |
Creates an instance of Signal |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Long |
currentValue()
Get the current |
|
static
Signal |
fromJson(JsonReader jsonReader)
Reads an instance of Signal |
| 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. |
|
Signal |
name()
Get the name property: Localizable String object containing the name and a localized value. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
unit()
Get the unit property: Representing the units of the usage quota. |
| void |
validate()
Validates the instance. |
|
Signal |
withCurrentValue(Long currentValue)
Set the current |
|
Signal |
withId(String id)
Set the id property: Fully qualified ARM resource id. |
|
Signal |
withLimit(Long limit)
Set the limit property: The maximum permitted value for the usage quota. |
|
Signal |
withName(SignalRUsageName name)
Set the name property: Localizable String object containing the name and a localized value. |
|
Signal |
withUnit(String unit)
Set the unit property: Representing the units of the usage quota. |
Methods inherited from java.lang.Object
Constructor Details
SignalRUsageInner
public SignalRUsageInner()
Creates an instance of SignalRUsageInner class.
Method Details
currentValue
public Long currentValue()
Get the currentValue property: Current value for the usage quota.
Returns:
fromJson
public static SignalRUsageInner fromJson(JsonReader jsonReader)
Reads an instance of SignalRUsageInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified ARM resource id.
Returns:
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:
name
public SignalRUsageName name()
Get the name property: Localizable String object containing the name and a localized value.
Returns:
toJson
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:
validate
public void validate()
Validates the instance.
withCurrentValue
public SignalRUsageInner withCurrentValue(Long currentValue)
Set the currentValue property: Current value for the usage quota.
Parameters:
Returns:
withId
public SignalRUsageInner withId(String id)
Set the id property: Fully qualified ARM resource id.
Parameters:
Returns:
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:
Returns:
withName
public SignalRUsageInner withName(SignalRUsageName name)
Set the name property: Localizable String object containing the name and a localized value.
Parameters:
Returns:
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:
Returns: