SpendingLimitDetails Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. SpendingLimitDetails
- com.
Implements
public final class SpendingLimitDetails
implements JsonSerializable<SpendingLimitDetails>
The billing profile spending limit.
Constructor Summary
| Constructor | Description |
|---|---|
| SpendingLimitDetails() |
Creates an instance of Spending |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Float |
amount()
Get the amount property: The initial amount for the billing profile. |
| String |
currency()
Get the currency property: The currency in which the charges for the billing profile are billed. |
|
Offset |
endDate()
Get the end |
|
static
Spending |
fromJson(JsonReader jsonReader)
Reads an instance of Spending |
|
Offset |
startDate()
Get the start |
|
Spending |
status()
Get the status property: The status of current spending limit. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Spending |
type()
Get the type property: The type of spending limit. |
| void |
validate()
Validates the instance. |
|
Spending |
withAmount(Float amount)
Set the amount property: The initial amount for the billing profile. |
|
Spending |
withCurrency(String currency)
Set the currency property: The currency in which the charges for the billing profile are billed. |
|
Spending |
withEndDate(OffsetDateTime endDate)
Set the end |
|
Spending |
withStartDate(OffsetDateTime startDate)
Set the start |
|
Spending |
withStatus(SpendingLimitStatus status)
Set the status property: The status of current spending limit. |
|
Spending |
withType(SpendingLimitType type)
Set the type property: The type of spending limit. |
Methods inherited from java.lang.Object
Constructor Details
SpendingLimitDetails
public SpendingLimitDetails()
Creates an instance of SpendingLimitDetails class.
Method Details
amount
public Float amount()
Get the amount property: The initial amount for the billing profile.
Returns:
currency
public String currency()
Get the currency property: The currency in which the charges for the billing profile are billed.
Returns:
endDate
public OffsetDateTime endDate()
Get the endDate property: The date when this spending limit is no longer in effect.
Returns:
fromJson
public static SpendingLimitDetails fromJson(JsonReader jsonReader)
Reads an instance of SpendingLimitDetails from the JsonReader.
Parameters:
Returns:
Throws:
startDate
public OffsetDateTime startDate()
Get the startDate property: The date when this spending limit goes into effect.
Returns:
status
public SpendingLimitStatus status()
Get the status property: The status of current spending limit.
Returns:
toJson
type
public SpendingLimitType type()
Get the type property: The type of spending limit.
Returns:
validate
public void validate()
Validates the instance.
withAmount
public SpendingLimitDetails withAmount(Float amount)
Set the amount property: The initial amount for the billing profile.
Parameters:
Returns:
withCurrency
public SpendingLimitDetails withCurrency(String currency)
Set the currency property: The currency in which the charges for the billing profile are billed.
Parameters:
Returns:
withEndDate
public SpendingLimitDetails withEndDate(OffsetDateTime endDate)
Set the endDate property: The date when this spending limit is no longer in effect.
Parameters:
Returns:
withStartDate
public SpendingLimitDetails withStartDate(OffsetDateTime startDate)
Set the startDate property: The date when this spending limit goes into effect.
Parameters:
Returns:
withStatus
public SpendingLimitDetails withStatus(SpendingLimitStatus status)
Set the status property: The status of current spending limit.
Parameters:
Returns:
withType
public SpendingLimitDetails withType(SpendingLimitType type)
Set the type property: The type of spending limit.
Parameters:
Returns: