Interface Resource.DefinitionWithRegion<T>

Type Parameters:
T - the type of the next stage resource definition
All Known Subinterfaces:
GenericResource.Definition, GenericResource.DefinitionStages.Blank, ResourceGroup.Definition, ResourceGroup.DefinitionStages.Blank
Enclosing interface:
Resource

public static interface Resource.DefinitionWithRegion<T>
A resource definition allowing a location be selected for the resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    withRegion(com.azure.core.management.Region region)
    Specifies the region for the resource.
    withRegion(String regionName)
    Specifies the region for the resource by name.
  • Method Details

    • withRegion

      T withRegion(String regionName)
      Specifies the region for the resource by name.
      Parameters:
      regionName - The name of the region for the resource
      Returns:
      the next stage of the definition
    • withRegion

      T withRegion(com.azure.core.management.Region region)
      Specifies the region for the resource.
      Parameters:
      region - The location for the resource
      Returns:
      the next stage of the definition