Amount Class
- java.
lang. Object - com.
azure. resourcemanager. education. fluent. models. Amount
- com.
Implements
public final class Amount
implements JsonSerializable<Amount>
The amount.
Constructor Summary
| Constructor | Description |
|---|---|
| Amount() |
Creates an instance of Amount class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
currency()
Get the currency property: The type of currency being used for the value. |
| static Amount |
fromJson(JsonReader jsonReader)
Reads an instance of Amount from the Json |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Float |
value()
Get the value property: Amount value. |
| Amount |
withCurrency(String currency)
Set the currency property: The type of currency being used for the value. |
| Amount |
withValue(Float value)
Set the value property: Amount value. |
Methods inherited from java.lang.Object
Constructor Details
Amount
public Amount()
Creates an instance of Amount class.
Method Details
currency
public String currency()
Get the currency property: The type of currency being used for the value.
Returns:
fromJson
public static Amount fromJson(JsonReader jsonReader)
Reads an instance of Amount from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
value
public Float value()
Get the value property: Amount value.
Returns:
withCurrency
public Amount withCurrency(String currency)
Set the currency property: The type of currency being used for the value.
Parameters:
Returns:
withValue
public Amount withValue(Float value)
Set the value property: Amount value.
Parameters:
Returns: