VirtualHubProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.VirtualHubProperties

Implements

public final class VirtualHubProperties
implements JsonSerializable<VirtualHubProperties>

Parameters for VirtualHub.

Constructor Summary

Constructor Description
VirtualHubProperties()

Creates an instance of VirtualHubProperties 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.

SubResource expressRouteGateway()

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

static VirtualHubProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubProperties from the JsonReader.

HubRoutingPreference hubRoutingPreference()

Get the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.

List<SubResource> ipConfigurations()

Get the ipConfigurations property: List of references to IpConfigurations.

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)
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.

VirtualHubProperties withAddressPrefix(String addressPrefix)

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

VirtualHubProperties withAllowBranchToBranchTraffic(Boolean allowBranchToBranchTraffic)

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

VirtualHubProperties withAzureFirewall(SubResource azureFirewall)

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

VirtualHubProperties withExpressRouteGateway(SubResource expressRouteGateway)

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

VirtualHubProperties withHubRoutingPreference(HubRoutingPreference hubRoutingPreference)

Set the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.

VirtualHubProperties withP2SVpnGateway(SubResource p2SVpnGateway)

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

VirtualHubProperties withPreferredRoutingGateway(PreferredRoutingGateway preferredRoutingGateway)

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

VirtualHubProperties withRouteTable(VirtualHubRouteTable routeTable)

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

VirtualHubProperties withSecurityPartnerProvider(SubResource securityPartnerProvider)

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

VirtualHubProperties withSecurityProviderName(String securityProviderName)

Set the securityProviderName property: The Security Provider name.

VirtualHubProperties withSku(String sku)

Set the sku property: The sku of this VirtualHub.

VirtualHubProperties withVirtualHubRouteTableV2s(List<VirtualHubRouteTableV2Inner> virtualHubRouteTableV2s)

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

VirtualHubProperties withVirtualRouterAsn(Long virtualRouterAsn)

Set the virtualRouterAsn property: VirtualRouter ASN.

VirtualHubProperties withVirtualRouterAutoScaleConfiguration(VirtualRouterAutoScaleConfiguration virtualRouterAutoScaleConfiguration)

Set the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.

VirtualHubProperties withVirtualRouterIps(List<String> virtualRouterIps)

Set the virtualRouterIps property: VirtualRouter IPs.

VirtualHubProperties withVirtualWan(SubResource virtualWan)

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

VirtualHubProperties withVpnGateway(SubResource vpnGateway)

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

Methods inherited from java.lang.Object

Constructor Details

VirtualHubProperties

public VirtualHubProperties()

Creates an instance of VirtualHubProperties 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<SubResource> bgpConnections()

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

Returns:

the bgpConnections value.

expressRouteGateway

public SubResource expressRouteGateway()

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

Returns:

the expressRouteGateway value.

fromJson

public static VirtualHubProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualHubProperties 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 VirtualHubProperties.

hubRoutingPreference

public HubRoutingPreference hubRoutingPreference()

Get the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.

Returns:

the hubRoutingPreference value.

ipConfigurations

public List<SubResource> ipConfigurations()

Get the ipConfigurations property: List of references to IpConfigurations.

Returns:

the ipConfigurations 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<SubResource> 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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualHubRouteTableV2s

public List<VirtualHubRouteTableV2Inner> 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<String> 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 VirtualHubProperties withAddressPrefix(String addressPrefix)

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

Parameters:

addressPrefix - the addressPrefix value to set.

Returns:

the VirtualHubProperties object itself.

withAllowBranchToBranchTraffic

public VirtualHubProperties withAllowBranchToBranchTraffic(Boolean allowBranchToBranchTraffic)

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

Parameters:

allowBranchToBranchTraffic - the allowBranchToBranchTraffic value to set.

Returns:

the VirtualHubProperties object itself.

withAzureFirewall

public VirtualHubProperties withAzureFirewall(SubResource azureFirewall)

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

Parameters:

azureFirewall - the azureFirewall value to set.

Returns:

the VirtualHubProperties object itself.

withExpressRouteGateway

public VirtualHubProperties withExpressRouteGateway(SubResource expressRouteGateway)

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

Parameters:

expressRouteGateway - the expressRouteGateway value to set.

Returns:

the VirtualHubProperties object itself.

withHubRoutingPreference

public VirtualHubProperties withHubRoutingPreference(HubRoutingPreference hubRoutingPreference)

Set the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.

Parameters:

hubRoutingPreference - the hubRoutingPreference value to set.

Returns:

the VirtualHubProperties object itself.

withP2SVpnGateway

public VirtualHubProperties withP2SVpnGateway(SubResource p2SVpnGateway)

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

Parameters:

p2SVpnGateway - the p2SVpnGateway value to set.

Returns:

the VirtualHubProperties object itself.

withPreferredRoutingGateway

public VirtualHubProperties withPreferredRoutingGateway(PreferredRoutingGateway preferredRoutingGateway)

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

Parameters:

preferredRoutingGateway - the preferredRoutingGateway value to set.

Returns:

the VirtualHubProperties object itself.

withRouteTable

public VirtualHubProperties withRouteTable(VirtualHubRouteTable routeTable)

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

Parameters:

routeTable - the routeTable value to set.

Returns:

the VirtualHubProperties object itself.

withSecurityPartnerProvider

public VirtualHubProperties withSecurityPartnerProvider(SubResource securityPartnerProvider)

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

Parameters:

securityPartnerProvider - the securityPartnerProvider value to set.

Returns:

the VirtualHubProperties object itself.

withSecurityProviderName

public VirtualHubProperties withSecurityProviderName(String securityProviderName)

Set the securityProviderName property: The Security Provider name.

Parameters:

securityProviderName - the securityProviderName value to set.

Returns:

the VirtualHubProperties object itself.

withSku

public VirtualHubProperties withSku(String sku)

Set the sku property: The sku of this VirtualHub.

Parameters:

sku - the sku value to set.

Returns:

the VirtualHubProperties object itself.

withVirtualHubRouteTableV2s

public VirtualHubProperties 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 VirtualHubProperties object itself.

withVirtualRouterAsn

public VirtualHubProperties withVirtualRouterAsn(Long virtualRouterAsn)

Set the virtualRouterAsn property: VirtualRouter ASN.

Parameters:

virtualRouterAsn - the virtualRouterAsn value to set.

Returns:

the VirtualHubProperties object itself.

withVirtualRouterAutoScaleConfiguration

public VirtualHubProperties withVirtualRouterAutoScaleConfiguration(VirtualRouterAutoScaleConfiguration virtualRouterAutoScaleConfiguration)

Set the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.

Parameters:

virtualRouterAutoScaleConfiguration - the virtualRouterAutoScaleConfiguration value to set.

Returns:

the VirtualHubProperties object itself.

withVirtualRouterIps

public VirtualHubProperties withVirtualRouterIps(List<String> virtualRouterIps)

Set the virtualRouterIps property: VirtualRouter IPs.

Parameters:

virtualRouterIps - the virtualRouterIps value to set.

Returns:

the VirtualHubProperties object itself.

withVirtualWan

public VirtualHubProperties withVirtualWan(SubResource virtualWan)

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

Parameters:

virtualWan - the virtualWan value to set.

Returns:

the VirtualHubProperties object itself.

withVpnGateway

public VirtualHubProperties withVpnGateway(SubResource vpnGateway)

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

Parameters:

vpnGateway - the vpnGateway value to set.

Returns:

the VirtualHubProperties object itself.

Applies to