Class LiftrBaseOfferDetails

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

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

    • LiftrBaseOfferDetails

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

    • publisherId

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

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

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

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

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

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

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

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

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

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

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

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

      public static LiftrBaseOfferDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LiftrBaseOfferDetails from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LiftrBaseOfferDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the LiftrBaseOfferDetails.