Class OfferTermInfoAutoGenerated
java.lang.Object
com.azure.resourcemanager.commerce.models.OfferTermInfoAutoGenerated
- Direct Known Subclasses:
MonetaryCommitment
,MonetaryCredit
,RecurringCharge
Describes the offer term.
-
Constructor Summary
ConstructorDescriptionCreates an instance of OfferTermInfoAutoGenerated class. -
Method Summary
Modifier and TypeMethodDescriptionGet the effectiveDate property: Indicates the date from which the offer term is effective.void
validate()
Validates the instance.withEffectiveDate
(OffsetDateTime effectiveDate) Set the effectiveDate property: Indicates the date from which the offer term is effective.
-
Constructor Details
-
OfferTermInfoAutoGenerated
public OfferTermInfoAutoGenerated()Creates an instance of OfferTermInfoAutoGenerated class.
-
-
Method Details
-
effectiveDate
Get the effectiveDate property: Indicates the date from which the offer term is effective.- Returns:
- the effectiveDate value.
-
withEffectiveDate
Set the effectiveDate property: Indicates the date from which the offer term is effective.- Parameters:
effectiveDate
- the effectiveDate value to set.- Returns:
- the OfferTermInfoAutoGenerated object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-