Class MarketplaceOfferDetails

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

public final class MarketplaceOfferDetails extends Object implements com.azure.json.JsonSerializable<MarketplaceOfferDetails>
The MarketplaceOfferDetails model.
  • Constructor Details

    • MarketplaceOfferDetails

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

    • saasOfferId

      public String saasOfferId()
      Get the saasOfferId property: The saasOfferId property.
      Returns:
      the saasOfferId value.
    • withSaasOfferId

      public MarketplaceOfferDetails withSaasOfferId(String saasOfferId)
      Set the saasOfferId property: The saasOfferId property.
      Parameters:
      saasOfferId - the saasOfferId value to set.
      Returns:
      the MarketplaceOfferDetails object itself.
    • publisherId

      public String publisherId()
      Get the publisherId property: The publisherId property.
      Returns:
      the publisherId value.
    • withPublisherId

      public MarketplaceOfferDetails withPublisherId(String publisherId)
      Set the publisherId property: The publisherId property.
      Parameters:
      publisherId - the publisherId value to set.
      Returns:
      the MarketplaceOfferDetails 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<MarketplaceOfferDetails>
      Throws:
      IOException
    • fromJson

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