java.lang.Object
com.azure.resourcemanager.machinelearning.models.OutboundRule
All Implemented Interfaces:
com.azure.json.JsonSerializable<OutboundRule>
Direct Known Subclasses:
FqdnOutboundRule, PrivateEndpointOutboundRule, ServiceTagOutboundRule

public class OutboundRule extends Object implements com.azure.json.JsonSerializable<OutboundRule>
Outbound Rule for the managed network of a machine learning workspace.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of OutboundRule class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the category property: Category of a managed network Outbound Rule of a machine learning workspace.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of OutboundRule from the JsonReader.
    Get the status property: Type of a managed network Outbound Rule of a machine learning workspace.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: Type of a managed network Outbound Rule of a machine learning workspace.
    void
    Validates the instance.
    Set the category property: Category of a managed network Outbound Rule of a machine learning workspace.
    Set the status property: Type of a managed network Outbound Rule of a machine learning workspace.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • OutboundRule

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

    • type

      public RuleType type()
      Get the type property: Type of a managed network Outbound Rule of a machine learning workspace.
      Returns:
      the type value.
    • category

      public RuleCategory category()
      Get the category property: Category of a managed network Outbound Rule of a machine learning workspace.
      Returns:
      the category value.
    • withCategory

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

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

      public OutboundRule withStatus(RuleStatus status)
      Set the status property: Type of a managed network Outbound Rule of a machine learning workspace.
      Parameters:
      status - the status value to set.
      Returns:
      the OutboundRule 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<OutboundRule>
      Throws:
      IOException
    • fromJson

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