VirtualHubInner Class

public final class VirtualHubInner
extends Resource

VirtualHub Resource.

Constructor Summary

Constructor Description
VirtualHubInner()

Creates an instance of VirtualHubInner class.

Method Summary

Modifier and Type Method and Description
String addressPrefix()

Get the addressPrefix property: Address-prefix for this VirtualHub.

Boolean allowBranchToBranchTraffic()

Get the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.

SubResource azureFirewall()

Get the azureFirewall property: The azureFirewall associated with this VirtualHub.

List<SubResource> bgpConnections()

Get the bgpConnections property: List of references to Bgp Connections.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

SubResource expressRouteGateway()

Get the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.

static VirtualHubInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubInner from the JsonReader.

HubRoutingPreference hubRoutingPreference()

Get the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.

String id()

Get the id property: Resource ID.

List<SubResource> ipConfigurations()

Get the ipConfigurations property: List of references to IpConfigurations.

String kind()

Get the kind property: Kind of service virtual hub.

String name()

Get the name property: The name of the resource.

SubResource p2SVpnGateway()

Get the p2SVpnGateway property: The P2SVpnGateway associated with this VirtualHub.

PreferredRoutingGateway preferredRoutingGateway()

Get the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the virtual hub resource.

List<SubResource> routeMaps()

Get the routeMaps property: List of references to RouteMaps.

VirtualHubRouteTable routeTable()

Get the routeTable property: The routeTable associated with this virtual hub.

RoutingState routingState()

Get the routingState property: The routing state.

SubResource securityPartnerProvider()

Get the securityPartnerProvider property: The securityPartnerProvider associated with this VirtualHub.

String securityProviderName()

Get the securityProviderName property: The Security Provider name.

String sku()

Get the sku property: The sku of this VirtualHub.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

List<VirtualHubRouteTableV2Inner> virtualHubRouteTableV2S()

Get the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this VirtualHub.

Long virtualRouterAsn()

Get the virtualRouterAsn property: VirtualRouter ASN.

VirtualRouterAutoScaleConfiguration virtualRouterAutoScaleConfiguration()

Get the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.

List<String> virtualRouterIps()

Get the virtualRouterIps property: VirtualRouter IPs.

SubResource virtualWan()

Get the virtualWan property: The VirtualWAN to which the VirtualHub belongs.

SubResource vpnGateway()

Get the vpnGateway property: The VpnGateway associated with this VirtualHub.

VirtualHubInner withAddressPrefix(String addressPrefix)

Set the addressPrefix property: Address-prefix for this VirtualHub.

VirtualHubInner withAllowBranchToBranchTraffic(Boolean allowBranchToBranchTraffic)

Set the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.

VirtualHubInner withAzureFirewall(SubResource azureFirewall)

Set the azureFirewall property: The azureFirewall associated with this VirtualHub.

VirtualHubInner withExpressRouteGateway(SubResource expressRouteGateway)

Set the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.

VirtualHubInner withHubRoutingPreference(HubRoutingPreference hubRoutingPreference)

Set the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.

VirtualHubInner withId(String id)

Set the id property: Resource ID.

VirtualHubInner withLocation(String location)
VirtualHubInner withP2SVpnGateway(SubResource p2SVpnGateway)

Set the p2SVpnGateway property: The P2SVpnGateway associated with this VirtualHub.

VirtualHubInner withPreferredRoutingGateway(PreferredRoutingGateway preferredRoutingGateway)

Set the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.

VirtualHubInner withRouteTable(VirtualHubRouteTable routeTable)

Set the routeTable property: The routeTable associated with this virtual hub.

VirtualHubInner withSecurityPartnerProvider(SubResource securityPartnerProvider)

Set the securityPartnerProvider property: The securityPartnerProvider associated with this VirtualHub.

VirtualHubInner withSecurityProviderName(String securityProviderName)

Set the securityProviderName property: The Security Provider name.

VirtualHubInner withSku(String sku)

Set the sku property: The sku of this VirtualHub.

VirtualHubInner withTags(Map<String,String> tags)
VirtualHubInner withVirtualHubRouteTableV2S(List<VirtualHubRouteTableV2Inner> virtualHubRouteTableV2S)

Set the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this VirtualHub.

VirtualHubInner withVirtualRouterAsn(Long virtualRouterAsn)

Set the virtualRouterAsn property: VirtualRouter ASN.

VirtualHubInner withVirtualRouterAutoScaleConfiguration(VirtualRouterAutoScaleConfiguration virtualRouterAutoScaleConfiguration)

Set the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.

VirtualHubInner withVirtualRouterIps(List<String> virtualRouterIps)

Set the virtualRouterIps property: VirtualRouter IPs.

VirtualHubInner withVirtualWan(SubResource virtualWan)

Set the virtualWan property: The VirtualWAN to which the VirtualHub belongs.

VirtualHubInner withVpnGateway(SubResource vpnGateway)

Set the vpnGateway property: The VpnGateway associated with this VirtualHub.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

VirtualHubInner

public VirtualHubInner()

Creates an instance of VirtualHubInner class.

Method Details

addressPrefix

public String addressPrefix()

Get the addressPrefix property: Address-prefix for this VirtualHub.

Returns:

the addressPrefix value.

allowBranchToBranchTraffic

public Boolean allowBranchToBranchTraffic()

Get the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.

Returns:

the allowBranchToBranchTraffic value.

azureFirewall

public SubResource azureFirewall()

Get the azureFirewall property: The azureFirewall associated with this VirtualHub.

Returns:

the azureFirewall value.

bgpConnections

public List bgpConnections()

Get the bgpConnections property: List of references to Bgp Connections.

Returns:

the bgpConnections value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

expressRouteGateway

public SubResource expressRouteGateway()

Get the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.

Returns:

the expressRouteGateway value.

fromJson

public static VirtualHubInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

hubRoutingPreference

public HubRoutingPreference hubRoutingPreference()

Get the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.

Returns:

the hubRoutingPreference value.

id

public String id()

Get the id property: Resource ID.

Overrides:

VirtualHubInner.id()

Returns:

the id value.

ipConfigurations

public List ipConfigurations()

Get the ipConfigurations property: List of references to IpConfigurations.

Returns:

the ipConfigurations value.

kind

public String 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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualHubInner.name()

Returns:

the name value.

p2SVpnGateway

public SubResource p2SVpnGateway()

Get the p2SVpnGateway property: The P2SVpnGateway associated with this VirtualHub.

Returns:

the p2SVpnGateway value.

preferredRoutingGateway

public PreferredRoutingGateway preferredRoutingGateway()

Get the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.

Returns:

the preferredRoutingGateway value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the virtual hub resource.

Returns:

the provisioningState value.

routeMaps

public List routeMaps()

Get the routeMaps property: List of references to RouteMaps.

Returns:

the routeMaps value.

routeTable

public VirtualHubRouteTable routeTable()

Get the routeTable property: The routeTable associated with this virtual hub.

Returns:

the routeTable value.

routingState

public RoutingState routingState()

Get the routingState property: The routing state.

Returns:

the routingState value.

securityPartnerProvider

public SubResource securityPartnerProvider()

Get the securityPartnerProvider property: The securityPartnerProvider associated with this VirtualHub.

Returns:

the securityPartnerProvider value.

securityProviderName

public String securityProviderName()

Get the securityProviderName property: The Security Provider name.

Returns:

the securityProviderName value.

sku

public String sku()

Get the sku property: The sku of this VirtualHub.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualHubInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualHubInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualHubRouteTableV2S

public List virtualHubRouteTableV2S()

Get the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this VirtualHub.

Returns:

the virtualHubRouteTableV2S value.

virtualRouterAsn

public Long virtualRouterAsn()

Get the virtualRouterAsn property: VirtualRouter ASN.

Returns:

the virtualRouterAsn value.

virtualRouterAutoScaleConfiguration

public VirtualRouterAutoScaleConfiguration virtualRouterAutoScaleConfiguration()

Get the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.

Returns:

the virtualRouterAutoScaleConfiguration value.

virtualRouterIps

public List virtualRouterIps()

Get the virtualRouterIps property: VirtualRouter IPs.

Returns:

the virtualRouterIps value.

virtualWan

public SubResource virtualWan()

Get the virtualWan property: The VirtualWAN to which the VirtualHub belongs.

Returns:

the virtualWan value.

vpnGateway

public SubResource vpnGateway()

Get the vpnGateway property: The VpnGateway associated with this VirtualHub.

Returns:

the vpnGateway value.

withAddressPrefix

public VirtualHubInner withAddressPrefix(String addressPrefix)

Set the addressPrefix property: Address-prefix for this VirtualHub.

Parameters:

addressPrefix - the addressPrefix value to set.

Returns:

the VirtualHubInner object itself.

withAllowBranchToBranchTraffic

public VirtualHubInner withAllowBranchToBranchTraffic(Boolean allowBranchToBranchTraffic)

Set the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.

Parameters:

allowBranchToBranchTraffic - the allowBranchToBranchTraffic value to set.

Returns:

the VirtualHubInner object itself.

withAzureFirewall

public VirtualHubInner withAzureFirewall(SubResource azureFirewall)

Set the azureFirewall property: The azureFirewall associated with this VirtualHub.

Parameters:

azureFirewall - the azureFirewall value to set.

Returns:

the VirtualHubInner object itself.

withExpressRouteGateway

public VirtualHubInner withExpressRouteGateway(SubResource expressRouteGateway)

Set the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.

Parameters:

expressRouteGateway - the expressRouteGateway value to set.

Returns:

the VirtualHubInner object itself.

withHubRoutingPreference

public VirtualHubInner withHubRoutingPreference(HubRoutingPreference hubRoutingPreference)

Set the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.

Parameters:

hubRoutingPreference - the hubRoutingPreference value to set.

Returns:

the VirtualHubInner object itself.

withId

public VirtualHubInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the VirtualHubInner object itself.

withLocation

public VirtualHubInner withLocation(String location)

Overrides:

VirtualHubInner.withLocation(String location)

Parameters:

location

withP2SVpnGateway

public VirtualHubInner withP2SVpnGateway(SubResource p2SVpnGateway)

Set the p2SVpnGateway property: The P2SVpnGateway associated with this VirtualHub.

Parameters:

p2SVpnGateway - the p2SVpnGateway value to set.

Returns:

the VirtualHubInner object itself.

withPreferredRoutingGateway

public VirtualHubInner withPreferredRoutingGateway(PreferredRoutingGateway preferredRoutingGateway)

Set the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.

Parameters:

preferredRoutingGateway - the preferredRoutingGateway value to set.

Returns:

the VirtualHubInner object itself.

withRouteTable

public VirtualHubInner withRouteTable(VirtualHubRouteTable routeTable)

Set the routeTable property: The routeTable associated with this virtual hub.

Parameters:

routeTable - the routeTable value to set.

Returns:

the VirtualHubInner object itself.

withSecurityPartnerProvider

public VirtualHubInner withSecurityPartnerProvider(SubResource securityPartnerProvider)

Set the securityPartnerProvider property: The securityPartnerProvider associated with this VirtualHub.

Parameters:

securityPartnerProvider - the securityPartnerProvider value to set.

Returns:

the VirtualHubInner object itself.

withSecurityProviderName

public VirtualHubInner withSecurityProviderName(String securityProviderName)

Set the securityProviderName property: The Security Provider name.

Parameters:

securityProviderName - the securityProviderName value to set.

Returns:

the VirtualHubInner object itself.

withSku

public VirtualHubInner withSku(String sku)

Set the sku property: The sku of this VirtualHub.

Parameters:

sku - the sku value to set.

Returns:

the VirtualHubInner object itself.

withTags

public VirtualHubInner withTags(Map tags)

Overrides:

VirtualHubInner.withTags(Map<String,String> tags)

Parameters:

tags

withVirtualHubRouteTableV2S

public VirtualHubInner withVirtualHubRouteTableV2S(List 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.

withVirtualRouterAsn

public VirtualHubInner withVirtualRouterAsn(Long virtualRouterAsn)

Set the virtualRouterAsn property: VirtualRouter ASN.

Parameters:

virtualRouterAsn - the virtualRouterAsn value to set.

Returns:

the VirtualHubInner object itself.

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.

withVirtualRouterIps

public VirtualHubInner withVirtualRouterIps(List virtualRouterIps)

Set the virtualRouterIps property: VirtualRouter IPs.

Parameters:

virtualRouterIps - the virtualRouterIps value to set.

Returns:

the VirtualHubInner object itself.

withVirtualWan

public VirtualHubInner withVirtualWan(SubResource virtualWan)

Set the virtualWan property: The VirtualWAN to which the VirtualHub belongs.

Parameters:

virtualWan - the virtualWan value to set.

Returns:

the VirtualHubInner object itself.

withVpnGateway

public VirtualHubInner withVpnGateway(SubResource vpnGateway)

Set the vpnGateway property: The VpnGateway associated with this VirtualHub.

Parameters:

vpnGateway - the vpnGateway value to set.

Returns:

the VirtualHubInner object itself.

Applies to