Class SynapseSparkProperties

java.lang.Object
com.azure.resourcemanager.machinelearning.models.SynapseSparkProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<SynapseSparkProperties>

public final class SynapseSparkProperties extends Object implements com.azure.json.JsonSerializable<SynapseSparkProperties>
The SynapseSparkProperties model.
  • Constructor Details

    • SynapseSparkProperties

      public SynapseSparkProperties()
      Creates an instance of SynapseSparkProperties class.
  • Method Details

    • autoScaleProperties

      public AutoScaleProperties autoScaleProperties()
      Get the autoScaleProperties property: Auto scale properties.
      Returns:
      the autoScaleProperties value.
    • withAutoScaleProperties

      public SynapseSparkProperties withAutoScaleProperties(AutoScaleProperties autoScaleProperties)
      Set the autoScaleProperties property: Auto scale properties.
      Parameters:
      autoScaleProperties - the autoScaleProperties value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • autoPauseProperties

      public AutoPauseProperties autoPauseProperties()
      Get the autoPauseProperties property: Auto pause properties.
      Returns:
      the autoPauseProperties value.
    • withAutoPauseProperties

      public SynapseSparkProperties withAutoPauseProperties(AutoPauseProperties autoPauseProperties)
      Set the autoPauseProperties property: Auto pause properties.
      Parameters:
      autoPauseProperties - the autoPauseProperties value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • sparkVersion

      public String sparkVersion()
      Get the sparkVersion property: Spark version.
      Returns:
      the sparkVersion value.
    • withSparkVersion

      public SynapseSparkProperties withSparkVersion(String sparkVersion)
      Set the sparkVersion property: Spark version.
      Parameters:
      sparkVersion - the sparkVersion value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • nodeCount

      public Integer nodeCount()
      Get the nodeCount property: The number of compute nodes currently assigned to the compute.
      Returns:
      the nodeCount value.
    • withNodeCount

      public SynapseSparkProperties withNodeCount(Integer nodeCount)
      Set the nodeCount property: The number of compute nodes currently assigned to the compute.
      Parameters:
      nodeCount - the nodeCount value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • nodeSize

      public String nodeSize()
      Get the nodeSize property: Node size.
      Returns:
      the nodeSize value.
    • withNodeSize

      public SynapseSparkProperties withNodeSize(String nodeSize)
      Set the nodeSize property: Node size.
      Parameters:
      nodeSize - the nodeSize value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • nodeSizeFamily

      public String nodeSizeFamily()
      Get the nodeSizeFamily property: Node size family.
      Returns:
      the nodeSizeFamily value.
    • withNodeSizeFamily

      public SynapseSparkProperties withNodeSizeFamily(String nodeSizeFamily)
      Set the nodeSizeFamily property: Node size family.
      Parameters:
      nodeSizeFamily - the nodeSizeFamily value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • subscriptionId

      public String subscriptionId()
      Get the subscriptionId property: Azure subscription identifier.
      Returns:
      the subscriptionId value.
    • withSubscriptionId

      public SynapseSparkProperties withSubscriptionId(String subscriptionId)
      Set the subscriptionId property: Azure subscription identifier.
      Parameters:
      subscriptionId - the subscriptionId value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • resourceGroup

      public String resourceGroup()
      Get the resourceGroup property: Name of the resource group in which workspace is located.
      Returns:
      the resourceGroup value.
    • withResourceGroup

      public SynapseSparkProperties withResourceGroup(String resourceGroup)
      Set the resourceGroup property: Name of the resource group in which workspace is located.
      Parameters:
      resourceGroup - the resourceGroup value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • workspaceName

      public String workspaceName()
      Get the workspaceName property: Name of Azure Machine Learning workspace.
      Returns:
      the workspaceName value.
    • withWorkspaceName

      public SynapseSparkProperties withWorkspaceName(String workspaceName)
      Set the workspaceName property: Name of Azure Machine Learning workspace.
      Parameters:
      workspaceName - the workspaceName value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • poolName

      public String poolName()
      Get the poolName property: Pool name.
      Returns:
      the poolName value.
    • withPoolName

      public SynapseSparkProperties withPoolName(String poolName)
      Set the poolName property: Pool name.
      Parameters:
      poolName - the poolName value to set.
      Returns:
      the SynapseSparkProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      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<SynapseSparkProperties>
      Throws:
      IOException
    • fromJson

      public static SynapseSparkProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SynapseSparkProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SynapseSparkProperties 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 SynapseSparkProperties.