Class RouteMapProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.RouteMapProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteMapProperties>
public final class RouteMapProperties
extends Object
implements com.azure.json.JsonSerializable<RouteMapProperties>
Properties of RouteMap resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound traffic.Get the associatedOutboundConnections property: List of connections which have this RoutMap associated for outbound traffic.static RouteMapPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteMapProperties from the JsonReader.Get the provisioningState property: The provisioning state of the RouteMap resource.rules()Get the rules property: List of RouteMap rules to be applied.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAssociatedInboundConnections(List<String> associatedInboundConnections) Set the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound traffic.withAssociatedOutboundConnections(List<String> associatedOutboundConnections) Set the associatedOutboundConnections property: List of connections which have this RoutMap associated for outbound traffic.withRules(List<RouteMapRule> rules) Set the rules property: List of RouteMap rules to be applied.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
-
RouteMapProperties
public RouteMapProperties()Creates an instance of RouteMapProperties class.
-
-
Method Details
-
associatedInboundConnections
Get the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound traffic.- Returns:
- the associatedInboundConnections value.
-
withAssociatedInboundConnections
public RouteMapProperties withAssociatedInboundConnections(List<String> associatedInboundConnections) Set the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound traffic.- Parameters:
associatedInboundConnections- the associatedInboundConnections value to set.- Returns:
- the RouteMapProperties object itself.
-
associatedOutboundConnections
Get the associatedOutboundConnections property: List of connections which have this RoutMap associated for outbound traffic.- Returns:
- the associatedOutboundConnections value.
-
withAssociatedOutboundConnections
public RouteMapProperties withAssociatedOutboundConnections(List<String> associatedOutboundConnections) Set the associatedOutboundConnections property: List of connections which have this RoutMap associated for outbound traffic.- Parameters:
associatedOutboundConnections- the associatedOutboundConnections value to set.- Returns:
- the RouteMapProperties object itself.
-
rules
Get the rules property: List of RouteMap rules to be applied.- Returns:
- the rules value.
-
withRules
Set the rules property: List of RouteMap rules to be applied.- Parameters:
rules- the rules value to set.- Returns:
- the RouteMapProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the RouteMap resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteMapProperties>- Throws:
IOException
-
fromJson
Reads an instance of RouteMapProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteMapProperties 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 RouteMapProperties.
-