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 Details

    • AzureDatastore

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

    • subscriptionId

      public String subscriptionId()
      Get the subscriptionId property: Azure Subscription Id.
      Returns:
      the subscriptionId value.
    • withSubscriptionId

      public AzureDatastore withSubscriptionId(String subscriptionId)
      Set the subscriptionId property: Azure Subscription Id.
      Parameters:
      subscriptionId - the subscriptionId value to set.
      Returns:
      the AzureDatastore object itself.
    • resourceGroup

      public String resourceGroup()
      Get the resourceGroup property: Azure Resource Group name.
      Returns:
      the resourceGroup value.
    • withResourceGroup

      public AzureDatastore withResourceGroup(String resourceGroup)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AzureDatastore>
      Throws:
      IOException
    • fromJson

      public static AzureDatastore fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.