Amount Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. Amount
- com.
public final class 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 currency for the amount value. |
void |
validate()
Validates the instance. |
Float |
value()
Get the value property: Amount 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 currency for the amount value.
Returns:
validate
public void validate()
Validates the instance.
value
public Float value()
Get the value property: Amount value.
Returns:
withValue
public Amount withValue(Float value)
Set the value property: Amount value.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for