Class LiftrBaseOfferDetailsUpdate

java.lang.Object
com.azure.resourcemanager.astro.models.LiftrBaseOfferDetailsUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<LiftrBaseOfferDetailsUpdate>

public final class LiftrBaseOfferDetailsUpdate extends Object implements com.azure.json.JsonSerializable<LiftrBaseOfferDetailsUpdate>
Offer details for the marketplace that is selected by the user.
  • Constructor Details

    • LiftrBaseOfferDetailsUpdate

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

    • publisherId

      public String publisherId()
      Get the publisherId property: Publisher Id for the marketplace offer.
      Returns:
      the publisherId value.
    • withPublisherId

      public LiftrBaseOfferDetailsUpdate withPublisherId(String publisherId)
      Set the publisherId property: Publisher Id for the marketplace offer.
      Parameters:
      publisherId - the publisherId value to set.
      Returns:
      the LiftrBaseOfferDetailsUpdate object itself.
    • offerId

      public String offerId()
      Get the offerId property: Offer Id for the marketplace offer.
      Returns:
      the offerId value.
    • withOfferId

      public LiftrBaseOfferDetailsUpdate withOfferId(String offerId)
      Set the offerId property: Offer Id for the marketplace offer.
      Parameters:
      offerId - the offerId value to set.
      Returns:
      the LiftrBaseOfferDetailsUpdate object itself.
    • planId

      public String planId()
      Get the planId property: Plan Id for the marketplace offer.
      Returns:
      the planId value.
    • withPlanId

      public LiftrBaseOfferDetailsUpdate withPlanId(String planId)
      Set the planId property: Plan Id for the marketplace offer.
      Parameters:
      planId - the planId value to set.
      Returns:
      the LiftrBaseOfferDetailsUpdate object itself.
    • planName

      public String planName()
      Get the planName property: Plan Name for the marketplace offer.
      Returns:
      the planName value.
    • withPlanName

      public LiftrBaseOfferDetailsUpdate withPlanName(String planName)
      Set the planName property: Plan Name for the marketplace offer.
      Parameters:
      planName - the planName value to set.
      Returns:
      the LiftrBaseOfferDetailsUpdate object itself.
    • termUnit

      public String termUnit()
      Get the termUnit property: Plan Display Name for the marketplace offer.
      Returns:
      the termUnit value.
    • withTermUnit

      public LiftrBaseOfferDetailsUpdate withTermUnit(String termUnit)
      Set the termUnit property: Plan Display Name for the marketplace offer.
      Parameters:
      termUnit - the termUnit value to set.
      Returns:
      the LiftrBaseOfferDetailsUpdate object itself.
    • termId

      public String termId()
      Get the termId property: Plan Display Name for the marketplace offer.
      Returns:
      the termId value.
    • withTermId

      public LiftrBaseOfferDetailsUpdate withTermId(String termId)
      Set the termId property: Plan Display Name for the marketplace offer.
      Parameters:
      termId - the termId value to set.
      Returns:
      the LiftrBaseOfferDetailsUpdate 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<LiftrBaseOfferDetailsUpdate>
      Throws:
      IOException
    • fromJson

      public static LiftrBaseOfferDetailsUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LiftrBaseOfferDetailsUpdate from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LiftrBaseOfferDetailsUpdate 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 LiftrBaseOfferDetailsUpdate.