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>
FQDN Outbound Rule for the managed network of a machine learning workspace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destination property: The destination property.static FqdnOutboundRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FqdnOutboundRule from the JsonReader.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.withDestination(String destination) Set the destination property: The destination property.withStatus(RuleStatus status) Set the status property: Type of a managed network Outbound Rule of a machine learning workspace.Methods inherited from class com.azure.resourcemanager.machinelearning.models.OutboundRule
category, statusMethods 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
-
FqdnOutboundRule
public FqdnOutboundRule()Creates an instance of FqdnOutboundRule class.
-
-
Method Details
-
type
Get the type property: Type of a managed network Outbound Rule of a machine learning workspace.- Overrides:
typein classOutboundRule- Returns:
- the type value.
-
destination
Get the destination property: The destination property.- Returns:
- the destination value.
-
withDestination
Set the destination property: The destination property.- Parameters:
destination- the destination value to set.- Returns:
- the FqdnOutboundRule object itself.
-
withCategory
Set the category property: Category of a managed network Outbound Rule of a machine learning workspace.- Overrides:
withCategoryin classOutboundRule- Parameters:
category- the category value to set.- Returns:
- the OutboundRule object itself.
-
withStatus
Set the status property: Type of a managed network Outbound Rule of a machine learning workspace.- Overrides:
withStatusin classOutboundRule- Parameters:
status- the status value to set.- Returns:
- the OutboundRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classOutboundRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OutboundRule>- Overrides:
toJsonin classOutboundRule- Throws:
IOException
-
fromJson
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.
-