Class MonetaryCredit
java.lang.Object
com.azure.resourcemanager.commerce.models.OfferTermInfoAutoGenerated
com.azure.resourcemanager.commerce.models.MonetaryCredit
Indicates that this is a monetary credit offer.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncredit()
Get the credit property: The amount of credit provided under the terms of the given offer level.Get the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.void
validate()
Validates the instance.withCredit
(BigDecimal credit) Set the credit property: The amount of credit provided under the terms of the given offer level.withEffectiveDate
(OffsetDateTime effectiveDate) Set the effectiveDate property: Indicates the date from which the offer term is effective.withExcludedMeterIds
(List<UUID> excludedMeterIds) Set the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.Methods inherited from class com.azure.resourcemanager.commerce.models.OfferTermInfoAutoGenerated
effectiveDate
-
Constructor Details
-
MonetaryCredit
public MonetaryCredit()Creates an instance of MonetaryCredit class.
-
-
Method Details
-
credit
Get the credit property: The amount of credit provided under the terms of the given offer level.- Returns:
- the credit value.
-
withCredit
Set the credit property: The amount of credit provided under the terms of the given offer level.- Parameters:
credit
- the credit value to set.- Returns:
- the MonetaryCredit object itself.
-
excludedMeterIds
Get the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.- Returns:
- the excludedMeterIds value.
-
withExcludedMeterIds
Set the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.- Parameters:
excludedMeterIds
- the excludedMeterIds value to set.- Returns:
- the MonetaryCredit object itself.
-
withEffectiveDate
Set the effectiveDate property: Indicates the date from which the offer term is effective.- Overrides:
withEffectiveDate
in classOfferTermInfoAutoGenerated
- Parameters:
effectiveDate
- the effectiveDate value to set.- Returns:
- the OfferTermInfoAutoGenerated object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classOfferTermInfoAutoGenerated
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-