Class LiftrBaseMarketplaceDetails

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

public final class LiftrBaseMarketplaceDetails extends Object implements com.azure.json.JsonSerializable<LiftrBaseMarketplaceDetails>
Marketplace details for an organization.
  • Constructor Details

    • LiftrBaseMarketplaceDetails

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

    • subscriptionId

      public String subscriptionId()
      Get the subscriptionId property: Azure subscription id for the the marketplace offer is purchased from.
      Returns:
      the subscriptionId value.
    • withSubscriptionId

      public LiftrBaseMarketplaceDetails withSubscriptionId(String subscriptionId)
      Set the subscriptionId property: Azure subscription id for the the marketplace offer is purchased from.
      Parameters:
      subscriptionId - the subscriptionId value to set.
      Returns:
      the LiftrBaseMarketplaceDetails object itself.
    • subscriptionStatus

      public MarketplaceSubscriptionStatus subscriptionStatus()
      Get the subscriptionStatus property: Marketplace subscription status.
      Returns:
      the subscriptionStatus value.
    • withSubscriptionStatus

      public LiftrBaseMarketplaceDetails withSubscriptionStatus(MarketplaceSubscriptionStatus subscriptionStatus)
      Set the subscriptionStatus property: Marketplace subscription status.
      Parameters:
      subscriptionStatus - the subscriptionStatus value to set.
      Returns:
      the LiftrBaseMarketplaceDetails object itself.
    • offerDetails

      public LiftrBaseOfferDetails offerDetails()
      Get the offerDetails property: Offer details for the marketplace that is selected by the user.
      Returns:
      the offerDetails value.
    • withOfferDetails

      public LiftrBaseMarketplaceDetails withOfferDetails(LiftrBaseOfferDetails offerDetails)
      Set the offerDetails property: Offer details for the marketplace that is selected by the user.
      Parameters:
      offerDetails - the offerDetails value to set.
      Returns:
      the LiftrBaseMarketplaceDetails 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<LiftrBaseMarketplaceDetails>
      Throws:
      IOException
    • fromJson

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