Class PrivateEndpointDestination

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

public final class PrivateEndpointDestination extends Object implements com.azure.json.JsonSerializable<PrivateEndpointDestination>
Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
  • Constructor Details

    • PrivateEndpointDestination

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

    • serviceResourceId

      public String serviceResourceId()
      Get the serviceResourceId property: The serviceResourceId property.
      Returns:
      the serviceResourceId value.
    • withServiceResourceId

      public PrivateEndpointDestination withServiceResourceId(String serviceResourceId)
      Set the serviceResourceId property: The serviceResourceId property.
      Parameters:
      serviceResourceId - the serviceResourceId value to set.
      Returns:
      the PrivateEndpointDestination object itself.
    • sparkEnabled

      public Boolean sparkEnabled()
      Get the sparkEnabled property: The sparkEnabled property.
      Returns:
      the sparkEnabled value.
    • withSparkEnabled

      public PrivateEndpointDestination withSparkEnabled(Boolean sparkEnabled)
      Set the sparkEnabled property: The sparkEnabled property.
      Parameters:
      sparkEnabled - the sparkEnabled value to set.
      Returns:
      the PrivateEndpointDestination object itself.
    • sparkStatus

      public RuleStatus sparkStatus()
      Get the sparkStatus property: Type of a managed network Outbound Rule of a machine learning workspace.
      Returns:
      the sparkStatus value.
    • withSparkStatus

      public PrivateEndpointDestination withSparkStatus(RuleStatus sparkStatus)
      Set the sparkStatus property: Type of a managed network Outbound Rule of a machine learning workspace.
      Parameters:
      sparkStatus - the sparkStatus value to set.
      Returns:
      the PrivateEndpointDestination object itself.
    • subresourceTarget

      public String subresourceTarget()
      Get the subresourceTarget property: The subresourceTarget property.
      Returns:
      the subresourceTarget value.
    • withSubresourceTarget

      public PrivateEndpointDestination withSubresourceTarget(String subresourceTarget)
      Set the subresourceTarget property: The subresourceTarget property.
      Parameters:
      subresourceTarget - the subresourceTarget value to set.
      Returns:
      the PrivateEndpointDestination 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<PrivateEndpointDestination>
      Throws:
      IOException
    • fromJson

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