Class PrivateEndpointOutboundRule

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

public final class PrivateEndpointOutboundRule extends OutboundRule
Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
  • Constructor Details

    • PrivateEndpointOutboundRule

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

    • type

      public RuleType type()
      Get the type property: Type of a managed network Outbound Rule of a machine learning workspace.
      Overrides:
      type in class OutboundRule
      Returns:
      the type value.
    • destination

      public PrivateEndpointDestination destination()
      Get the destination property: Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
      Returns:
      the destination value.
    • withDestination

      public PrivateEndpointOutboundRule withDestination(PrivateEndpointDestination destination)
      Set the destination property: Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace.
      Parameters:
      destination - the destination value to set.
      Returns:
      the PrivateEndpointOutboundRule object itself.
    • withCategory

      public PrivateEndpointOutboundRule withCategory(RuleCategory category)
      Set the category property: Category of a managed network Outbound Rule of a machine learning workspace.
      Overrides:
      withCategory in class OutboundRule
      Parameters:
      category - the category value to set.
      Returns:
      the OutboundRule object itself.
    • withStatus

      public PrivateEndpointOutboundRule withStatus(RuleStatus status)
      Set the status property: Type of a managed network Outbound Rule of a machine learning workspace.
      Overrides:
      withStatus in class OutboundRule
      Parameters:
      status - the status value to set.
      Returns:
      the OutboundRule object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class OutboundRule
      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<OutboundRule>
      Overrides:
      toJson in class OutboundRule
      Throws:
      IOException
    • fromJson

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