Class VirtualHubProperties


  • public final class VirtualHubProperties
    extends Object
    Parameters for VirtualHub.
    • Constructor Detail

      • VirtualHubProperties

        public VirtualHubProperties()
    • Method Detail

      • virtualWan

        public com.azure.core.management.SubResource virtualWan()
        Get the virtualWan property: The VirtualWAN to which the VirtualHub belongs.
        Returns:
        the virtualWan value.
      • withVirtualWan

        public VirtualHubProperties withVirtualWan​(com.azure.core.management.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.
      • vpnGateway

        public com.azure.core.management.SubResource vpnGateway()
        Get the vpnGateway property: The VpnGateway associated with this VirtualHub.
        Returns:
        the vpnGateway value.
      • withVpnGateway

        public VirtualHubProperties withVpnGateway​(com.azure.core.management.SubResource vpnGateway)
        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

        public VirtualHubProperties withP2SVpnGateway​(com.azure.core.management.SubResource p2SVpnGateway)
        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

        public VirtualHubProperties withAzureFirewall​(com.azure.core.management.SubResource azureFirewall)
        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

        public String addressPrefix()
        Get the addressPrefix property: Address-prefix for this VirtualHub.
        Returns:
        the addressPrefix 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.
      • routeTable

        public VirtualHubRouteTable routeTable()
        Get the routeTable property: The routeTable associated with this virtual hub.
        Returns:
        the routeTable value.
      • 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.
      • provisioningState

        public ProvisioningState provisioningState()
        Get the provisioningState property: The provisioning state of the virtual hub resource.
        Returns:
        the provisioningState value.
      • securityProviderName

        public String securityProviderName()
        Get the securityProviderName property: The Security Provider name.
        Returns:
        the securityProviderName value.
      • 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.
      • 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.
      • 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

        public String sku()
        Get the sku property: The sku of this VirtualHub.
        Returns:
        the sku value.
      • 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.
      • routingState

        public RoutingState routingState()
        Get the routingState property: The routing state.
        Returns:
        the routingState value.
      • bgpConnections

        public List<com.azure.core.management.SubResource> bgpConnections()
        Get the bgpConnections property: List of references to Bgp Connections.
        Returns:
        the bgpConnections value.
      • ipConfigurations

        public List<com.azure.core.management.SubResource> ipConfigurations()
        Get the ipConfigurations property: List of references to IpConfigurations.
        Returns:
        the ipConfigurations value.
      • virtualRouterAsn

        public Long virtualRouterAsn()
        Get the virtualRouterAsn property: VirtualRouter ASN.
        Returns:
        the virtualRouterAsn value.
      • withVirtualRouterAsn

        public VirtualHubProperties withVirtualRouterAsn​(Long virtualRouterAsn)
        Set the virtualRouterAsn property: VirtualRouter ASN.
        Parameters:
        virtualRouterAsn - the virtualRouterAsn value to set.
        Returns:
        the VirtualHubProperties object itself.
      • virtualRouterIps

        public List<String> virtualRouterIps()
        Get the virtualRouterIps property: VirtualRouter IPs.
        Returns:
        the virtualRouterIps value.
      • 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.
      • allowBranchToBranchTraffic

        public Boolean allowBranchToBranchTraffic()
        Get the allowBranchToBranchTraffic property: Flag to control transit for VirtualRouter hub.
        Returns:
        the allowBranchToBranchTraffic value.
      • 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.
      • preferredRoutingGateway

        public PreferredRoutingGateway 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.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.