Class AzureDatastore
java.lang.Object
com.azure.resourcemanager.machinelearning.models.AzureDatastore
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureDatastore>
public class AzureDatastore
extends Object
implements com.azure.json.JsonSerializable<AzureDatastore>
Base definition for Azure datastore contents configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureDatastorefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureDatastore from the JsonReader.Get the resourceGroup property: Azure Resource Group name.Get the subscriptionId property: Azure Subscription Id.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withResourceGroup(String resourceGroup) Set the resourceGroup property: Azure Resource Group name.withSubscriptionId(String subscriptionId) Set the subscriptionId property: Azure Subscription Id.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
-
AzureDatastore
public AzureDatastore()Creates an instance of AzureDatastore class.
-
-
Method Details
-
subscriptionId
Get the subscriptionId property: Azure Subscription Id.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: Azure Subscription Id.- Parameters:
subscriptionId- the subscriptionId value to set.- Returns:
- the AzureDatastore object itself.
-
resourceGroup
Get the resourceGroup property: Azure Resource Group name.- Returns:
- the resourceGroup value.
-
withResourceGroup
Set the resourceGroup property: Azure Resource Group name.- Parameters:
resourceGroup- the resourceGroup value to set.- Returns:
- the AzureDatastore object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureDatastore>- Throws:
IOException
-
fromJson
Reads an instance of AzureDatastore from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureDatastore 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 AzureDatastore.
-