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

public final class AliasPath extends Object implements com.azure.json.JsonSerializable<AliasPath>
The type of the paths for alias.
  • Constructor Details

    • AliasPath

      public AliasPath()
      Creates an instance of AliasPath class.
  • Method Details

    • path

      public String path()
      Get the path property: The path of an alias.
      Returns:
      the path value.
    • withPath

      public AliasPath withPath(String path)
      Set the path property: The path of an alias.
      Parameters:
      path - the path value to set.
      Returns:
      the AliasPath object itself.
    • apiVersions

      public List<String> apiVersions()
      Get the apiVersions property: The API versions.
      Returns:
      the apiVersions value.
    • withApiVersions

      public AliasPath withApiVersions(List<String> apiVersions)
      Set the apiVersions property: The API versions.
      Parameters:
      apiVersions - the apiVersions value to set.
      Returns:
      the AliasPath object itself.
    • pattern

      public AliasPattern pattern()
      Get the pattern property: The pattern for an alias path.
      Returns:
      the pattern value.
    • withPattern

      public AliasPath withPattern(AliasPattern pattern)
      Set the pattern property: The pattern for an alias path.
      Parameters:
      pattern - the pattern value to set.
      Returns:
      the AliasPath object itself.
    • metadata

      public AliasPathMetadata metadata()
      Get the metadata property: The metadata of the alias path. If missing, fall back to the default metadata of the alias.
      Returns:
      the metadata 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<AliasPath>
      Throws:
      IOException
    • fromJson

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