Class OutboundRule
java.lang.Object
com.azure.resourcemanager.machinelearning.models.OutboundRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OutboundRule>
- Direct Known Subclasses:
FqdnOutboundRule,PrivateEndpointOutboundRule,ServiceTagOutboundRule
Outbound Rule for the managed network of a machine learning workspace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Get the category property: Category of a managed network Outbound Rule of a machine learning workspace.static OutboundRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OutboundRule from the JsonReader.status()Get the status property: Type of a managed network Outbound Rule of a machine learning workspace.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of a managed network Outbound Rule of a machine learning workspace.voidvalidate()Validates the instance.withCategory(RuleCategory category) Set the category property: Category of a managed network Outbound Rule of a machine learning workspace.withStatus(RuleStatus status) 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, waitMethods 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
Get the type property: Type of a managed network Outbound Rule of a machine learning workspace.- Returns:
- the type value.
-
category
Get the category property: Category of a managed network Outbound Rule of a machine learning workspace.- Returns:
- the category value.
-
withCategory
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
Get the status property: Type of a managed network Outbound Rule of a machine learning workspace.- Returns:
- the status value.
-
withStatus
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OutboundRule>- Throws:
IOException
-
fromJson
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.
-