Class VirtualHubProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.VirtualHubProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualHubProperties>
public final class VirtualHubProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualHubProperties>
Parameters for VirtualHub.
-
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.com.azure.core.management.SubResourceGet the expressRouteGateway property: The expressRouteGateway associated with this VirtualHub.static VirtualHubPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualHubProperties from the JsonReader.Get the hubRoutingPreference property: The hubRoutingPreference of this VirtualHub.List<com.azure.core.management.SubResource> Get the ipConfigurations property: List of references to IpConfigurations.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) 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.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 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
-
VirtualHubProperties
public VirtualHubProperties()Creates an instance of VirtualHubProperties class.
-
-
Method Details
-
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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 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.
-
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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties 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 VirtualHubProperties object itself.
-
preferredRoutingGateway
Get the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.- Returns:
- the preferredRoutingGateway value.
-
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.
-
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 VirtualHubProperties object itself.
-
virtualRouterAutoScaleConfiguration
Get the virtualRouterAutoScaleConfiguration property: The VirtualHub Router autoscale configuration.- Returns:
- the virtualRouterAutoScaleConfiguration value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualHubProperties>- Throws:
IOException
-
fromJson
public static VirtualHubProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-