Class OneLakeDatastore

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

public final class OneLakeDatastore extends DatastoreProperties
OneLake (Trident) datastore configuration.
  • Constructor Details

    • OneLakeDatastore

      public OneLakeDatastore()
      Creates an instance of OneLakeDatastore 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.
    • artifact

      public OneLakeArtifact artifact()
      Get the artifact property: [Required] OneLake artifact backing the datastore.
      Returns:
      the artifact value.
    • withArtifact

      public OneLakeDatastore withArtifact(OneLakeArtifact artifact)
      Set the artifact property: [Required] OneLake artifact backing the datastore.
      Parameters:
      artifact - the artifact value to set.
      Returns:
      the OneLakeDatastore object itself.
    • oneLakeWorkspaceName

      public String oneLakeWorkspaceName()
      Get the oneLakeWorkspaceName property: [Required] OneLake workspace name.
      Returns:
      the oneLakeWorkspaceName value.
    • withOneLakeWorkspaceName

      public OneLakeDatastore withOneLakeWorkspaceName(String oneLakeWorkspaceName)
      Set the oneLakeWorkspaceName property: [Required] OneLake workspace name.
      Parameters:
      oneLakeWorkspaceName - the oneLakeWorkspaceName value to set.
      Returns:
      the OneLakeDatastore object itself.
    • endpoint

      public String endpoint()
      Get the endpoint property: OneLake endpoint to use for the datastore.
      Returns:
      the endpoint value.
    • withEndpoint

      public OneLakeDatastore withEndpoint(String endpoint)
      Set the endpoint property: OneLake endpoint to use for the datastore.
      Parameters:
      endpoint - the endpoint value to set.
      Returns:
      the OneLakeDatastore 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 OneLakeDatastore 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 OneLakeDatastore 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 OneLakeDatastore 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 OneLakeDatastore 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 OneLakeDatastore 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 OneLakeDatastore 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 OneLakeDatastore fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OneLakeDatastore from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OneLakeDatastore 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 OneLakeDatastore.