Class OfferDetailsUpdate
java.lang.Object
com.azure.resourcemanager.informaticadatamanagement.models.OfferDetailsUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OfferDetailsUpdate>
public final class OfferDetailsUpdate
extends Object
implements com.azure.json.JsonSerializable<OfferDetailsUpdate>
Details of the product offering.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OfferDetailsUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OfferDetailsUpdate from the JsonReader.offerId()Get the offerId property: Id of the product offering.planId()Get the planId property: Id of the product offer plan.planName()Get the planName property: Name of the product offer plan.Get the publisherId property: Id of the product publisher.termId()Get the termId property: Offer plan term id.termUnit()Get the termUnit property: Offer plan term unit.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOfferId(String offerId) Set the offerId property: Id of the product offering.withPlanId(String planId) Set the planId property: Id of the product offer plan.withPlanName(String planName) Set the planName property: Name of the product offer plan.withPublisherId(String publisherId) Set the publisherId property: Id of the product publisher.withTermId(String termId) Set the termId property: Offer plan term id.withTermUnit(String termUnit) Set the termUnit property: Offer plan term unit.
-
Constructor Details
-
OfferDetailsUpdate
public OfferDetailsUpdate()Creates an instance of OfferDetailsUpdate class.
-
-
Method Details
-
publisherId
Get the publisherId property: Id of the product publisher.- Returns:
- the publisherId value.
-
withPublisherId
Set the publisherId property: Id of the product publisher.- Parameters:
publisherId- the publisherId value to set.- Returns:
- the OfferDetailsUpdate object itself.
-
offerId
Get the offerId property: Id of the product offering.- Returns:
- the offerId value.
-
withOfferId
Set the offerId property: Id of the product offering.- Parameters:
offerId- the offerId value to set.- Returns:
- the OfferDetailsUpdate object itself.
-
planId
Get the planId property: Id of the product offer plan.- Returns:
- the planId value.
-
withPlanId
Set the planId property: Id of the product offer plan.- Parameters:
planId- the planId value to set.- Returns:
- the OfferDetailsUpdate object itself.
-
planName
Get the planName property: Name of the product offer plan.- Returns:
- the planName value.
-
withPlanName
Set the planName property: Name of the product offer plan.- Parameters:
planName- the planName value to set.- Returns:
- the OfferDetailsUpdate object itself.
-
termUnit
Get the termUnit property: Offer plan term unit.- Returns:
- the termUnit value.
-
withTermUnit
Set the termUnit property: Offer plan term unit.- Parameters:
termUnit- the termUnit value to set.- Returns:
- the OfferDetailsUpdate object itself.
-
termId
Get the termId property: Offer plan term id.- Returns:
- the termId value.
-
withTermId
Set the termId property: Offer plan term id.- Parameters:
termId- the termId value to set.- Returns:
- the OfferDetailsUpdate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OfferDetailsUpdate>- Throws:
IOException
-
fromJson
Reads an instance of OfferDetailsUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OfferDetailsUpdate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the OfferDetailsUpdate.
-