Class MarketplaceSubscriptionProperties

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

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

    • MarketplaceSubscriptionProperties

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

    • modelId

      public String modelId()
      Get the modelId property: [Required] Target Marketplace Model ID to create a Marketplace Subscription for.
      Returns:
      the modelId value.
    • withModelId

      public MarketplaceSubscriptionProperties withModelId(String modelId)
      Set the modelId property: [Required] Target Marketplace Model ID to create a Marketplace Subscription for.
      Parameters:
      modelId - the modelId value to set.
      Returns:
      the MarketplaceSubscriptionProperties object itself.
    • marketplacePlan

      public MarketplacePlan marketplacePlan()
      Get the marketplacePlan property: Marketplace Plan associated with the Marketplace Subscription.
      Returns:
      the marketplacePlan value.
    • marketplaceSubscriptionStatus

      public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus()
      Get the marketplaceSubscriptionStatus property: Current status of the Marketplace Subscription.
      Returns:
      the marketplaceSubscriptionStatus value.
    • provisioningState

      public MarketplaceSubscriptionProvisioningState provisioningState()
      Get the provisioningState property: Provisioning State of the Marketplace Subscription.
      Returns:
      the provisioningState value.
    • 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<MarketplaceSubscriptionProperties>
      Throws:
      IOException
    • fromJson

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