java.lang.Object
com.azure.resourcemanager.resources.models.Alias

public final class Alias extends Object
The alias type.
  • Constructor Details

    • Alias

      public Alias()
  • Method Details

    • name

      public String name()
      Get the name property: The alias name.
      Returns:
      the name value.
    • withName

      public Alias withName(String name)
      Set the name property: The alias name.
      Parameters:
      name - the name value to set.
      Returns:
      the Alias object itself.
    • paths

      public List<AliasPath> paths()
      Get the paths property: The paths for an alias.
      Returns:
      the paths value.
    • withPaths

      public Alias withPaths(List<AliasPath> paths)
      Set the paths property: The paths for an alias.
      Parameters:
      paths - the paths value to set.
      Returns:
      the Alias object itself.
    • type

      public AliasType type()
      Get the type property: The type of the alias.
      Returns:
      the type value.
    • withType

      public Alias withType(AliasType type)
      Set the type property: The type of the alias.
      Parameters:
      type - the type value to set.
      Returns:
      the Alias object itself.
    • defaultPath

      public String defaultPath()
      Get the defaultPath property: The default path for an alias.
      Returns:
      the defaultPath value.
    • withDefaultPath

      public Alias withDefaultPath(String defaultPath)
      Set the defaultPath property: The default path for an alias.
      Parameters:
      defaultPath - the defaultPath value to set.
      Returns:
      the Alias object itself.
    • defaultPattern

      public AliasPattern defaultPattern()
      Get the defaultPattern property: The default pattern for an alias.
      Returns:
      the defaultPattern value.
    • withDefaultPattern

      public Alias withDefaultPattern(AliasPattern defaultPattern)
      Set the defaultPattern property: The default pattern for an alias.
      Parameters:
      defaultPattern - the defaultPattern value to set.
      Returns:
      the Alias object itself.
    • defaultMetadata

      public AliasPathMetadata defaultMetadata()
      Get the defaultMetadata property: The default alias path metadata. Applies to the default path and to any alias path that doesn't have metadata.
      Returns:
      the defaultMetadata value.
    • validate

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