Class ServerlessComputeSettings
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ServerlessComputeSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerlessComputeSettings>
public final class ServerlessComputeSettings
extends Object
implements com.azure.json.JsonSerializable<ServerlessComputeSettings>
The ServerlessComputeSettings model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServerlessComputeSettings class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerlessComputeSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerlessComputeSettings from the JsonReader.Get the serverlessComputeCustomSubnet property: The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed.Get the serverlessComputeNoPublicIp property: The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withServerlessComputeCustomSubnet(String serverlessComputeCustomSubnet) Set the serverlessComputeCustomSubnet property: The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed.withServerlessComputeNoPublicIp(Boolean serverlessComputeNoPublicIp) Set the serverlessComputeNoPublicIp property: The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint.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
-
ServerlessComputeSettings
public ServerlessComputeSettings()Creates an instance of ServerlessComputeSettings class.
-
-
Method Details
-
serverlessComputeCustomSubnet
Get the serverlessComputeCustomSubnet property: The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed.- Returns:
- the serverlessComputeCustomSubnet value.
-
withServerlessComputeCustomSubnet
public ServerlessComputeSettings withServerlessComputeCustomSubnet(String serverlessComputeCustomSubnet) Set the serverlessComputeCustomSubnet property: The resource ID of an existing virtual network subnet in which serverless compute nodes should be deployed.- Parameters:
serverlessComputeCustomSubnet- the serverlessComputeCustomSubnet value to set.- Returns:
- the ServerlessComputeSettings object itself.
-
serverlessComputeNoPublicIp
Get the serverlessComputeNoPublicIp property: The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint.- Returns:
- the serverlessComputeNoPublicIp value.
-
withServerlessComputeNoPublicIp
public ServerlessComputeSettings withServerlessComputeNoPublicIp(Boolean serverlessComputeNoPublicIp) Set the serverlessComputeNoPublicIp property: The flag to signal if serverless compute nodes deployed in custom vNet would have no public IP addresses for a workspace with private endpoint.- Parameters:
serverlessComputeNoPublicIp- the serverlessComputeNoPublicIp value to set.- Returns:
- the ServerlessComputeSettings 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<ServerlessComputeSettings>- Throws:
IOException
-
fromJson
public static ServerlessComputeSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServerlessComputeSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServerlessComputeSettings 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 ServerlessComputeSettings.
-