Class MarketplaceResource

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

public final class MarketplaceResource extends Object implements com.azure.json.JsonSerializable<MarketplaceResource>
Purchasing 3rd Party product for one Azure Spring Apps instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of MarketplaceResource class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of MarketplaceResource from the JsonReader.
    Get the plan property: The plan id of the 3rd Party Artifact that is being procured.
    Get the product property: The 3rd Party artifact that is being procured.
    Get the publisher property: The publisher id of the 3rd Party Artifact that is being bought.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the plan property: The plan id of the 3rd Party Artifact that is being procured.
    Set the product property: The 3rd Party artifact that is being procured.
    withPublisher(String publisher)
    Set the publisher property: The publisher id of the 3rd Party Artifact that is being bought.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • MarketplaceResource

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

    • plan

      public String plan()
      Get the plan property: The plan id of the 3rd Party Artifact that is being procured.
      Returns:
      the plan value.
    • withPlan

      public MarketplaceResource withPlan(String plan)
      Set the plan property: The plan id of the 3rd Party Artifact that is being procured.
      Parameters:
      plan - the plan value to set.
      Returns:
      the MarketplaceResource object itself.
    • publisher

      public String publisher()
      Get the publisher property: The publisher id of the 3rd Party Artifact that is being bought.
      Returns:
      the publisher value.
    • withPublisher

      public MarketplaceResource withPublisher(String publisher)
      Set the publisher property: The publisher id of the 3rd Party Artifact that is being bought.
      Parameters:
      publisher - the publisher value to set.
      Returns:
      the MarketplaceResource object itself.
    • product

      public String product()
      Get the product property: The 3rd Party artifact that is being procured.
      Returns:
      the product value.
    • withProduct

      public MarketplaceResource withProduct(String product)
      Set the product property: The 3rd Party artifact that is being procured.
      Parameters:
      product - the product value to set.
      Returns:
      the MarketplaceResource 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<MarketplaceResource>
      Throws:
      IOException
    • fromJson

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