Class DatastoreProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ResourceBase
com.azure.resourcemanager.machinelearning.models.DatastoreProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>
- Direct Known Subclasses:
AzureBlobDatastore,AzureDataLakeGen1Datastore,AzureDataLakeGen2Datastore,AzureFileDatastore,OneLakeDatastore
Base definition for datastore contents configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the credentials property: [Required] Account credentials.Get the datastoreType property: [Required] Storage type backing the datastore.static DatastorePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DatastoreProperties from the JsonReader.Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCredentials(DatastoreCredentials credentials) Set the credentials property: [Required] Account credentials.withDescription(String description) Set the description property: The asset description text.withProperties(Map<String, String> properties) Set the properties property: The asset property dictionary.Set the tags property: Tag dictionary.Methods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceBase
description, properties, tagsMethods 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
-
DatastoreProperties
public DatastoreProperties()Creates an instance of DatastoreProperties class.
-
-
Method Details
-
datastoreType
Get the datastoreType property: [Required] Storage type backing the datastore.- Returns:
- the datastoreType value.
-
isDefault
Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.- Returns:
- the isDefault value.
-
credentials
Get the credentials property: [Required] Account credentials.- Returns:
- the credentials value.
-
withCredentials
Set the credentials property: [Required] Account credentials.- Parameters:
credentials- the credentials value to set.- Returns:
- the DatastoreProperties object itself.
-
withDescription
Set the description property: The asset description text.- Overrides:
withDescriptionin classResourceBase- Parameters:
description- the description value to set.- Returns:
- the ResourceBase object itself.
-
withTags
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.- Overrides:
withTagsin classResourceBase- Parameters:
tags- the tags value to set.- Returns:
- the ResourceBase object itself.
-
withProperties
Set the properties property: The asset property dictionary.- Overrides:
withPropertiesin classResourceBase- Parameters:
properties- the properties value to set.- Returns:
- the ResourceBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceBase>- Overrides:
toJsonin classResourceBase- Throws:
IOException
-
fromJson
Reads an instance of DatastoreProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DatastoreProperties 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 DatastoreProperties.
-