Class FqdnOutboundRule

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

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

    • FqdnOutboundRule

      public FqdnOutboundRule()
      Creates an instance of FqdnOutboundRule 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 String destination()
      Get the destination property: The destination property.
      Returns:
      the destination value.
    • withDestination

      public FqdnOutboundRule withDestination(String destination)
      Set the destination property: The destination property.
      Parameters:
      destination - the destination value to set.
      Returns:
      the FqdnOutboundRule object itself.
    • withCategory

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