Class VirtualHubInner


  • public final class VirtualHubInner
    extends com.azure.core.management.Resource
    VirtualHub Resource.
    • Constructor Detail

      • VirtualHubInner

        public VirtualHubInner()
    • Method Detail

      • etag

        public String etag()
        Get the etag property: A unique read-only string that changes whenever the resource is updated.
        Returns:
        the etag 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.
      • id

        public String id()
        Get the id property: Resource ID.
        Overrides:
        id in class com.azure.core.management.ProxyResource
        Returns:
        the id value.
      • 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:
        withLocation in class com.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

        public VirtualHubInner 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 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

        public VirtualHubInner 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 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

        public VirtualHubInner 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 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

        public VirtualHubInner 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 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

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

        public VirtualHubRouteTable routeTable()
        Get the routeTable property: The routeTable associated with this virtual hub.
        Returns:
        the routeTable value.
      • 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.
      • 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 VirtualHubInner withSecurityProviderName​(String securityProviderName)
        Set the securityProviderName property: The Security Provider name.
        Parameters:
        securityProviderName - the securityProviderName value to set.
        Returns:
        the VirtualHubInner 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 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

        public String sku()
        Get the sku property: The sku of this VirtualHub.
        Returns:
        the sku value.
      • 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.
      • 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 VirtualHubInner withVirtualRouterAsn​(Long virtualRouterAsn)
        Set the virtualRouterAsn property: VirtualRouter ASN.
        Parameters:
        virtualRouterAsn - the virtualRouterAsn value to set.
        Returns:
        the VirtualHubInner object itself.
      • virtualRouterIps

        public List<String> virtualRouterIps()
        Get the virtualRouterIps property: VirtualRouter IPs.
        Returns:
        the virtualRouterIps value.
      • withVirtualRouterIps

        public VirtualHubInner withVirtualRouterIps​(List<String> virtualRouterIps)
        Set the virtualRouterIps property: VirtualRouter IPs.
        Parameters:
        virtualRouterIps - the virtualRouterIps value to set.
        Returns:
        the VirtualHubInner object itself.
      • allowBranchToBranchTraffic

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

        public PreferredRoutingGateway preferredRoutingGateway()
        Get the preferredRoutingGateway property: The preferred gateway to route on-prem traffic.
        Returns:
        the preferredRoutingGateway value.
      • 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.
      • validate

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