java.lang.Object
com.azure.resourcemanager.resources.models.Alias
All Implemented Interfaces:
com.azure.json.JsonSerializable<Alias>

public final class Alias extends Object implements com.azure.json.JsonSerializable<Alias>
The alias type.
  • Constructor Details

    • Alias

      public Alias()
      Creates an instance of Alias class.
  • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Alias>
      Throws:
      IOException
    • fromJson

      public static Alias fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Alias from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Alias 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 Alias.