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 Summary
ConstructorsConstructorDescriptionCreates an instance of MarketplaceSubscriptionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MarketplaceSubscriptionProperties from the JsonReader.Get the marketplacePlan property: Marketplace Plan associated with the Marketplace Subscription.Get the marketplaceSubscriptionStatus property: Current status of the Marketplace Subscription.modelId()Get the modelId property: [Required] Target Marketplace Model ID to create a Marketplace Subscription for.Get the provisioningState property: Provisioning State of the Marketplace Subscription.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withModelId(String modelId) Set the modelId property: [Required] Target Marketplace Model ID to create a Marketplace Subscription for.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MarketplaceSubscriptionProperties
public MarketplaceSubscriptionProperties()Creates an instance of MarketplaceSubscriptionProperties class.
-
-
Method Details
-
modelId
Get the modelId property: [Required] Target Marketplace Model ID to create a Marketplace Subscription for.- Returns:
- the modelId value.
-
withModelId
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
Get the marketplacePlan property: Marketplace Plan associated with the Marketplace Subscription.- Returns:
- the marketplacePlan value.
-
marketplaceSubscriptionStatus
Get the marketplaceSubscriptionStatus property: Current status of the Marketplace Subscription.- Returns:
- the marketplaceSubscriptionStatus value.
-
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
- Specified by:
toJsonin interfacecom.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.
-