Class WorkspaceHubConfig
java.lang.Object
com.azure.resourcemanager.machinelearning.models.WorkspaceHubConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceHubConfig>
public final class WorkspaceHubConfig
extends Object
implements com.azure.json.JsonSerializable<WorkspaceHubConfig>
WorkspaceHub's configuration object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalWorkspaceStorageAccounts property: The additionalWorkspaceStorageAccounts property.Get the defaultWorkspaceResourceGroup property: The defaultWorkspaceResourceGroup property.static WorkspaceHubConfigfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceHubConfig from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdditionalWorkspaceStorageAccounts(List<String> additionalWorkspaceStorageAccounts) Set the additionalWorkspaceStorageAccounts property: The additionalWorkspaceStorageAccounts property.withDefaultWorkspaceResourceGroup(String defaultWorkspaceResourceGroup) Set the defaultWorkspaceResourceGroup property: The defaultWorkspaceResourceGroup property.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
-
WorkspaceHubConfig
public WorkspaceHubConfig()Creates an instance of WorkspaceHubConfig class.
-
-
Method Details
-
additionalWorkspaceStorageAccounts
Get the additionalWorkspaceStorageAccounts property: The additionalWorkspaceStorageAccounts property.- Returns:
- the additionalWorkspaceStorageAccounts value.
-
withAdditionalWorkspaceStorageAccounts
public WorkspaceHubConfig withAdditionalWorkspaceStorageAccounts(List<String> additionalWorkspaceStorageAccounts) Set the additionalWorkspaceStorageAccounts property: The additionalWorkspaceStorageAccounts property.- Parameters:
additionalWorkspaceStorageAccounts- the additionalWorkspaceStorageAccounts value to set.- Returns:
- the WorkspaceHubConfig object itself.
-
defaultWorkspaceResourceGroup
Get the defaultWorkspaceResourceGroup property: The defaultWorkspaceResourceGroup property.- Returns:
- the defaultWorkspaceResourceGroup value.
-
withDefaultWorkspaceResourceGroup
Set the defaultWorkspaceResourceGroup property: The defaultWorkspaceResourceGroup property.- Parameters:
defaultWorkspaceResourceGroup- the defaultWorkspaceResourceGroup value to set.- Returns:
- the WorkspaceHubConfig 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<WorkspaceHubConfig>- Throws:
IOException
-
fromJson
Reads an instance of WorkspaceHubConfig from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspaceHubConfig 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 WorkspaceHubConfig.
-