Class AzureDataLakeGen1Datastore

All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>

public final class AzureDataLakeGen1Datastore extends DatastoreProperties
Azure Data Lake Gen1 datastore configuration.
  • Constructor Details

    • AzureDataLakeGen1Datastore

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

    • datastoreType

      public DatastoreType datastoreType()
      Get the datastoreType property: [Required] Storage type backing the datastore.
      Overrides:
      datastoreType in class DatastoreProperties
      Returns:
      the datastoreType value.
    • storeName

      public String storeName()
      Get the storeName property: [Required] Azure Data Lake store name.
      Returns:
      the storeName value.
    • withStoreName

      public AzureDataLakeGen1Datastore withStoreName(String storeName)
      Set the storeName property: [Required] Azure Data Lake store name.
      Parameters:
      storeName - the storeName value to set.
      Returns:
      the AzureDataLakeGen1Datastore object itself.
    • serviceDataAccessAuthIdentity

      public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity()
      Get the serviceDataAccessAuthIdentity property: Indicates which identity to use to authenticate service data access to customer's storage.
      Returns:
      the serviceDataAccessAuthIdentity value.
    • withServiceDataAccessAuthIdentity

      public AzureDataLakeGen1Datastore withServiceDataAccessAuthIdentity(ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity)
      Set the serviceDataAccessAuthIdentity property: Indicates which identity to use to authenticate service data access to customer's storage.
      Parameters:
      serviceDataAccessAuthIdentity - the serviceDataAccessAuthIdentity value to set.
      Returns:
      the AzureDataLakeGen1Datastore object itself.
    • subscriptionId

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

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

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

      public AzureDataLakeGen1Datastore withResourceGroup(String resourceGroup)
      Set the resourceGroup property: Azure Resource Group name.
      Parameters:
      resourceGroup - the resourceGroup value to set.
      Returns:
      the AzureDataLakeGen1Datastore object itself.
    • isDefault

      public Boolean isDefault()
      Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.
      Overrides:
      isDefault in class DatastoreProperties
      Returns:
      the isDefault value.
    • withCredentials

      public AzureDataLakeGen1Datastore withCredentials(DatastoreCredentials credentials)
      Set the credentials property: [Required] Account credentials.
      Overrides:
      withCredentials in class DatastoreProperties
      Parameters:
      credentials - the credentials value to set.
      Returns:
      the DatastoreProperties object itself.
    • withDescription

      public AzureDataLakeGen1Datastore withDescription(String description)
      Set the description property: The asset description text.
      Overrides:
      withDescription in class DatastoreProperties
      Parameters:
      description - the description value to set.
      Returns:
      the ResourceBase object itself.
    • withTags

      public AzureDataLakeGen1Datastore withTags(Map<String,String> tags)
      Set the tags property: Tag dictionary. Tags can be added, removed, and updated.
      Overrides:
      withTags in class DatastoreProperties
      Parameters:
      tags - the tags value to set.
      Returns:
      the ResourceBase object itself.
    • withProperties

      public AzureDataLakeGen1Datastore withProperties(Map<String,String> properties)
      Set the properties property: The asset property dictionary.
      Overrides:
      withProperties in class DatastoreProperties
      Parameters:
      properties - the properties value to set.
      Returns:
      the ResourceBase object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class DatastoreProperties
      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<ResourceBase>
      Overrides:
      toJson in class DatastoreProperties
      Throws:
      IOException
    • fromJson

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