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 Details

    • OfferDetailsUpdate

      public OfferDetailsUpdate()
      Creates an instance of OfferDetailsUpdate class.
  • Method Details

    • publisherId

      public String publisherId()
      Get the publisherId property: Id of the product publisher.
      Returns:
      the publisherId value.
    • withPublisherId

      public OfferDetailsUpdate withPublisherId(String publisherId)
      Set the publisherId property: Id of the product publisher.
      Parameters:
      publisherId - the publisherId value to set.
      Returns:
      the OfferDetailsUpdate object itself.
    • offerId

      public String offerId()
      Get the offerId property: Id of the product offering.
      Returns:
      the offerId value.
    • withOfferId

      public OfferDetailsUpdate withOfferId(String offerId)
      Set the offerId property: Id of the product offering.
      Parameters:
      offerId - the offerId value to set.
      Returns:
      the OfferDetailsUpdate object itself.
    • planId

      public String planId()
      Get the planId property: Id of the product offer plan.
      Returns:
      the planId value.
    • withPlanId

      public OfferDetailsUpdate withPlanId(String planId)
      Set the planId property: Id of the product offer plan.
      Parameters:
      planId - the planId value to set.
      Returns:
      the OfferDetailsUpdate object itself.
    • planName

      public String planName()
      Get the planName property: Name of the product offer plan.
      Returns:
      the planName value.
    • withPlanName

      public OfferDetailsUpdate withPlanName(String planName)
      Set the planName property: Name of the product offer plan.
      Parameters:
      planName - the planName value to set.
      Returns:
      the OfferDetailsUpdate object itself.
    • termUnit

      public String termUnit()
      Get the termUnit property: Offer plan term unit.
      Returns:
      the termUnit value.
    • withTermUnit

      public OfferDetailsUpdate withTermUnit(String termUnit)
      Set the termUnit property: Offer plan term unit.
      Parameters:
      termUnit - the termUnit value to set.
      Returns:
      the OfferDetailsUpdate object itself.
    • termId

      public String termId()
      Get the termId property: Offer plan term id.
      Returns:
      the termId value.
    • withTermId

      public OfferDetailsUpdate withTermId(String termId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OfferDetailsUpdate>
      Throws:
      IOException
    • fromJson

      public static OfferDetailsUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.