Class VirtualHubInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.VirtualHubInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class VirtualHubInner
extends com.azure.core.management.Resource
VirtualHub Resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefix property: Address-prefix for this VirtualHub.Get the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.com.azure.core.management.SubResourceGet the azureFirewall property: The azureFirewall associated with this VirtualHub.List<com.azure.core.management.SubResource> Get the bgpConnections property: List of references to Bgp Connections.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.com.azure.core.management.SubResourceGet the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.static VirtualHubInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualHubInner from the JsonReader.Get the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.id()Get the id property: Resource ID.List<com.azure.core.management.SubResource> Get the ipConfigurations property: List of references to IpConfigurations.kind()Get the kind property: Kind of service virtual hub.name()Get the name property: The name of the resource.com.azure.core.management.SubResourceGet the p2SVpnGateway property: The P2SVpnGateway associated with this VirtualHub.Get the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.Get the provisioningState property: The provisioning state of the virtual hub resource.List<com.azure.core.management.SubResource> Get the routeMaps property: List of references to RouteMaps.Get the routeTable property: The routeTable associated with this virtual hub.Get the routingState property: The routing state.com.azure.core.management.SubResourceGet the securityPartnerProvider property: The securityPartnerProvider associated with this VirtualHub.Get the securityProviderName property: The Security Provider name.sku()Get the sku property: The sku of this VirtualHub.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Get the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this VirtualHub.Get the virtualRouterAsn property: VirtualRouter ASN.Get the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.Get the virtualRouterIps property: VirtualRouter IPs.com.azure.core.management.SubResourceGet the virtualWan property: The VirtualWAN to which the VirtualHub belongs.com.azure.core.management.SubResourceGet the vpnGateway property: The VpnGateway associated with this VirtualHub.withAddressPrefix(String addressPrefix) Set the addressPrefix property: Address-prefix for this VirtualHub.withAllowBranchToBranchTraffic(Boolean allowBranchToBranchTraffic) Set the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.withAzureFirewall(com.azure.core.management.SubResource azureFirewall) Set the azureFirewall property: The azureFirewall associated with this VirtualHub.withExpressRouteGateway(com.azure.core.management.SubResource expressRouteGateway) Set the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.withHubRoutingPreference(HubRoutingPreference hubRoutingPreference) Set the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.Set the id property: Resource ID.withLocation(String location) withP2SVpnGateway(com.azure.core.management.SubResource p2SVpnGateway) Set the p2SVpnGateway property: The P2SVpnGateway associated with this VirtualHub.withPreferredRoutingGateway(PreferredRoutingGateway preferredRoutingGateway) Set the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.withRouteTable(VirtualHubRouteTable routeTable) Set the routeTable property: The routeTable associated with this virtual hub.withSecurityPartnerProvider(com.azure.core.management.SubResource securityPartnerProvider) Set the securityPartnerProvider property: The securityPartnerProvider associated with this VirtualHub.withSecurityProviderName(String securityProviderName) Set the securityProviderName property: The Security Provider name.Set the sku property: The sku of this VirtualHub.withVirtualHubRouteTableV2S(List<VirtualHubRouteTableV2Inner> virtualHubRouteTableV2S) Set the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this VirtualHub.withVirtualRouterAsn(Long virtualRouterAsn) Set the virtualRouterAsn property: VirtualRouter ASN.withVirtualRouterAutoScaleConfiguration(VirtualRouterAutoScaleConfiguration virtualRouterAutoScaleConfiguration) Set the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.withVirtualRouterIps(List<String> virtualRouterIps) Set the virtualRouterIps property: VirtualRouter IPs.withVirtualWan(com.azure.core.management.SubResource virtualWan) Set the virtualWan property: The VirtualWAN to which the VirtualHub belongs.withVpnGateway(com.azure.core.management.SubResource vpnGateway) Set the vpnGateway property: The VpnGateway associated with this VirtualHub.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods 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
-
VirtualHubInner
public VirtualHubInner()Creates an instance of VirtualHubInner class.
-
-
Method Details
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
kind
Get the kind property: Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.- Returns:
- the kind value.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the VirtualHubInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
virtualWan
public com.azure.core.management.SubResource virtualWan()Get the virtualWan property: The VirtualWAN to which the VirtualHub belongs.- Returns:
- the virtualWan value.
-
withVirtualWan
Set the virtualWan property: The VirtualWAN to which the VirtualHub belongs.- Parameters:
virtualWan- the virtualWan value to set.- Returns:
- the VirtualHubInner object itself.
-
vpnGateway
public com.azure.core.management.SubResource vpnGateway()Get the vpnGateway property: The VpnGateway associated with this VirtualHub.- Returns:
- the vpnGateway value.
-
withVpnGateway
Set the vpnGateway property: The VpnGateway associated with this VirtualHub.- Parameters:
vpnGateway- the vpnGateway value to set.- Returns:
- the VirtualHubInner object itself.
-
p2SVpnGateway
public com.azure.core.management.SubResource p2SVpnGateway()Get the p2SVpnGateway property: The P2SVpnGateway associated with this VirtualHub.- Returns:
- the p2SVpnGateway value.
-
withP2SVpnGateway
Set the p2SVpnGateway property: The P2SVpnGateway associated with this VirtualHub.- Parameters:
p2SVpnGateway- the p2SVpnGateway value to set.- Returns:
- the VirtualHubInner object itself.
-
expressRouteGateway
public com.azure.core.management.SubResource expressRouteGateway()Get the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.- Returns:
- the expressRouteGateway value.
-
withExpressRouteGateway
public VirtualHubInner withExpressRouteGateway(com.azure.core.management.SubResource expressRouteGateway) Set the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.- Parameters:
expressRouteGateway- the expressRouteGateway value to set.- Returns:
- the VirtualHubInner object itself.
-
azureFirewall
public com.azure.core.management.SubResource azureFirewall()Get the azureFirewall property: The azureFirewall associated with this VirtualHub.- Returns:
- the azureFirewall value.
-
withAzureFirewall
Set the azureFirewall property: The azureFirewall associated with this VirtualHub.- Parameters:
azureFirewall- the azureFirewall value to set.- Returns:
- the VirtualHubInner object itself.
-
securityPartnerProvider
public com.azure.core.management.SubResource securityPartnerProvider()Get the securityPartnerProvider property: The securityPartnerProvider associated with this VirtualHub.- Returns:
- the securityPartnerProvider value.
-
withSecurityPartnerProvider
public VirtualHubInner withSecurityPartnerProvider(com.azure.core.management.SubResource securityPartnerProvider) Set the securityPartnerProvider property: The securityPartnerProvider associated with this VirtualHub.- Parameters:
securityPartnerProvider- the securityPartnerProvider value to set.- Returns:
- the VirtualHubInner object itself.
-
addressPrefix
Get the addressPrefix property: Address-prefix for this VirtualHub.- Returns:
- the addressPrefix value.
-
withAddressPrefix
Set the addressPrefix property: Address-prefix for this VirtualHub.- Parameters:
addressPrefix- the addressPrefix value to set.- Returns:
- the VirtualHubInner object itself.
-
routeTable
Get the routeTable property: The routeTable associated with this virtual hub.- Returns:
- the routeTable value.
-
withRouteTable
Set the routeTable property: The routeTable associated with this virtual hub.- Parameters:
routeTable- the routeTable value to set.- Returns:
- the VirtualHubInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the virtual hub resource.- Returns:
- the provisioningState value.
-
securityProviderName
Get the securityProviderName property: The Security Provider name.- Returns:
- the securityProviderName value.
-
withSecurityProviderName
Set the securityProviderName property: The Security Provider name.- Parameters:
securityProviderName- the securityProviderName value to set.- Returns:
- the VirtualHubInner object itself.
-
virtualHubRouteTableV2S
Get the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this VirtualHub.- Returns:
- the virtualHubRouteTableV2S value.
-
withVirtualHubRouteTableV2S
public VirtualHubInner withVirtualHubRouteTableV2S(List<VirtualHubRouteTableV2Inner> virtualHubRouteTableV2S) Set the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this VirtualHub.- Parameters:
virtualHubRouteTableV2S- the virtualHubRouteTableV2S value to set.- Returns:
- the VirtualHubInner object itself.
-
sku
Get the sku property: The sku of this VirtualHub.- Returns:
- the sku value.
-
withSku
Set the sku property: The sku of this VirtualHub.- Parameters:
sku- the sku value to set.- Returns:
- the VirtualHubInner object itself.
-
routingState
Get the routingState property: The routing state.- Returns:
- the routingState value.
-
bgpConnections
Get the bgpConnections property: List of references to Bgp Connections.- Returns:
- the bgpConnections value.
-
ipConfigurations
Get the ipConfigurations property: List of references to IpConfigurations.- Returns:
- the ipConfigurations value.
-
routeMaps
Get the routeMaps property: List of references to RouteMaps.- Returns:
- the routeMaps value.
-
virtualRouterAsn
Get the virtualRouterAsn property: VirtualRouter ASN.- Returns:
- the virtualRouterAsn value.
-
withVirtualRouterAsn
Set the virtualRouterAsn property: VirtualRouter ASN.- Parameters:
virtualRouterAsn- the virtualRouterAsn value to set.- Returns:
- the VirtualHubInner object itself.
-
virtualRouterIps
Get the virtualRouterIps property: VirtualRouter IPs.- Returns:
- the virtualRouterIps value.
-
withVirtualRouterIps
Set the virtualRouterIps property: VirtualRouter IPs.- Parameters:
virtualRouterIps- the virtualRouterIps value to set.- Returns:
- the VirtualHubInner object itself.
-
allowBranchToBranchTraffic
Get the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.- Returns:
- the allowBranchToBranchTraffic value.
-
withAllowBranchToBranchTraffic
Set the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.- Parameters:
allowBranchToBranchTraffic- the allowBranchToBranchTraffic value to set.- Returns:
- the VirtualHubInner object itself.
-
preferredRoutingGateway
Get the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.- Returns:
- the preferredRoutingGateway value.
-
withPreferredRoutingGateway
Set the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.- Parameters:
preferredRoutingGateway- the preferredRoutingGateway value to set.- Returns:
- the VirtualHubInner object itself.
-
hubRoutingPreference
Get the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.- Returns:
- the hubRoutingPreference value.
-
withHubRoutingPreference
Set the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.- Parameters:
hubRoutingPreference- the hubRoutingPreference value to set.- Returns:
- the VirtualHubInner object itself.
-
virtualRouterAutoScaleConfiguration
Get the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.- Returns:
- the virtualRouterAutoScaleConfiguration value.
-
withVirtualRouterAutoScaleConfiguration
public VirtualHubInner withVirtualRouterAutoScaleConfiguration(VirtualRouterAutoScaleConfiguration virtualRouterAutoScaleConfiguration) Set the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.- Parameters:
virtualRouterAutoScaleConfiguration- the virtualRouterAutoScaleConfiguration value to set.- Returns:
- the VirtualHubInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of VirtualHubInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualHubInner 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 VirtualHubInner.
-