Class RouteMapInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.RouteMapInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class RouteMapInner
extends com.azure.core.management.SubResource
The RouteMap child resource of a Virtual hub.
-
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.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static RouteMapInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteMapInner from the JsonReader.name()Get the name property: The name of the resource that is unique within a resource group.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) type()Get the type property: Resource type.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 com.azure.core.management.SubResource
idMethods 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
-
RouteMapInner
public RouteMapInner()Creates an instance of RouteMapInner class.
-
-
Method Details
-
name
Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Returns:
- the name value.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
associatedInboundConnections
Get the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound traffic.- Returns:
- the associatedInboundConnections value.
-
withAssociatedInboundConnections
Set the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound traffic.- Parameters:
associatedInboundConnections- the associatedInboundConnections value to set.- Returns:
- the RouteMapInner object itself.
-
associatedOutboundConnections
Get the associatedOutboundConnections property: List of connections which have this RoutMap associated for outbound traffic.- Returns:
- the associatedOutboundConnections value.
-
withAssociatedOutboundConnections
Set the associatedOutboundConnections property: List of connections which have this RoutMap associated for outbound traffic.- Parameters:
associatedOutboundConnections- the associatedOutboundConnections value to set.- Returns:
- the RouteMapInner 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 RouteMapInner 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<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
Reads an instance of RouteMapInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteMapInner 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 RouteMapInner.
-