Class RoutingRulePropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.RoutingRulePropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoutingRulePropertiesFormat>
public final class RoutingRulePropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<RoutingRulePropertiesFormat>
Routing rule resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoutingRulePropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A description for this rule.Get the destination property: Indicates the destination for this particular rule.static RoutingRulePropertiesFormatfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoutingRulePropertiesFormat from the JsonReader.nextHop()Get the nextHop property: Indicates the next hop for this particular rule.Get the provisioningState property: The provisioning state of the resource.Get the resourceGuid property: Unique identifier for this resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: A description for this rule.withDestination(RoutingRuleRouteDestination destination) Set the destination property: Indicates the destination for this particular rule.withNextHop(RoutingRuleNextHop nextHop) Set the nextHop property: Indicates the next hop for this particular rule.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
-
RoutingRulePropertiesFormat
public RoutingRulePropertiesFormat()Creates an instance of RoutingRulePropertiesFormat class.
-
-
Method Details
-
description
Get the description property: A description for this rule.- Returns:
- the description value.
-
withDescription
Set the description property: A description for this rule.- Parameters:
description- the description value to set.- Returns:
- the RoutingRulePropertiesFormat object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the resource.- Returns:
- the provisioningState value.
-
resourceGuid
Get the resourceGuid property: Unique identifier for this resource.- Returns:
- the resourceGuid value.
-
destination
Get the destination property: Indicates the destination for this particular rule.- Returns:
- the destination value.
-
withDestination
Set the destination property: Indicates the destination for this particular rule.- Parameters:
destination- the destination value to set.- Returns:
- the RoutingRulePropertiesFormat object itself.
-
nextHop
Get the nextHop property: Indicates the next hop for this particular rule.- Returns:
- the nextHop value.
-
withNextHop
Set the nextHop property: Indicates the next hop for this particular rule.- Parameters:
nextHop- the nextHop value to set.- Returns:
- the RoutingRulePropertiesFormat 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<RoutingRulePropertiesFormat>- Throws:
IOException
-
fromJson
public static RoutingRulePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RoutingRulePropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoutingRulePropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RoutingRulePropertiesFormat.
-