Class DatabricksProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.DatabricksProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DatabricksProperties>
public final class DatabricksProperties
extends Object
implements com.azure.json.JsonSerializable<DatabricksProperties>
Properties of Databricks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the databricksAccessToken property: Databricks access token.static DatabricksPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DatabricksProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDatabricksAccessToken(String databricksAccessToken) Set the databricksAccessToken property: Databricks access token.withWorkspaceUrl(String workspaceUrl) Set the workspaceUrl property: Workspace Url.Get the workspaceUrl property: Workspace Url.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
-
DatabricksProperties
public DatabricksProperties()Creates an instance of DatabricksProperties class.
-
-
Method Details
-
databricksAccessToken
Get the databricksAccessToken property: Databricks access token.- Returns:
- the databricksAccessToken value.
-
withDatabricksAccessToken
Set the databricksAccessToken property: Databricks access token.- Parameters:
databricksAccessToken- the databricksAccessToken value to set.- Returns:
- the DatabricksProperties object itself.
-
workspaceUrl
Get the workspaceUrl property: Workspace Url.- Returns:
- the workspaceUrl value.
-
withWorkspaceUrl
Set the workspaceUrl property: Workspace Url.- Parameters:
workspaceUrl- the workspaceUrl value to set.- Returns:
- the DatabricksProperties 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<DatabricksProperties>- Throws:
IOException
-
fromJson
public static DatabricksProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DatabricksProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DatabricksProperties 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 DatabricksProperties.
-