Class AvailableServiceAliasInner

java.lang.Object
com.azure.resourcemanager.network.fluent.models.AvailableServiceAliasInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailableServiceAliasInner>

public final class AvailableServiceAliasInner extends Object implements com.azure.json.JsonSerializable<AvailableServiceAliasInner>
The available service alias.
  • Constructor Details

    • AvailableServiceAliasInner

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

    • name

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

      public AvailableServiceAliasInner withName(String name)
      Set the name property: The name of the service alias.
      Parameters:
      name - the name value to set.
      Returns:
      the AvailableServiceAliasInner object itself.
    • id

      public String id()
      Get the id property: The ID of the service alias.
      Returns:
      the id value.
    • withId

      public AvailableServiceAliasInner withId(String id)
      Set the id property: The ID of the service alias.
      Parameters:
      id - the id value to set.
      Returns:
      the AvailableServiceAliasInner object itself.
    • type

      public String type()
      Get the type property: The type of the resource.
      Returns:
      the type value.
    • withType

      public AvailableServiceAliasInner withType(String type)
      Set the type property: The type of the resource.
      Parameters:
      type - the type value to set.
      Returns:
      the AvailableServiceAliasInner object itself.
    • resourceName

      public String resourceName()
      Get the resourceName property: The resource name of the service alias.
      Returns:
      the resourceName value.
    • withResourceName

      public AvailableServiceAliasInner withResourceName(String resourceName)
      Set the resourceName property: The resource name of the service alias.
      Parameters:
      resourceName - the resourceName value to set.
      Returns:
      the AvailableServiceAliasInner object itself.
    • 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<AvailableServiceAliasInner>
      Throws:
      IOException
    • fromJson

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