Class AvailableDelegationInner

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

public final class AvailableDelegationInner extends Object implements com.azure.json.JsonSerializable<AvailableDelegationInner>
The serviceName of an AvailableDelegation indicates a possible delegation for a subnet.
  • Constructor Details

    • AvailableDelegationInner

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

    • name

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

      public AvailableDelegationInner withName(String name)
      Set the name property: The name of the AvailableDelegation resource.
      Parameters:
      name - the name value to set.
      Returns:
      the AvailableDelegationInner object itself.
    • id

      public String id()
      Get the id property: A unique identifier of the AvailableDelegation resource.
      Returns:
      the id value.
    • withId

      public AvailableDelegationInner withId(String id)
      Set the id property: A unique identifier of the AvailableDelegation resource.
      Parameters:
      id - the id value to set.
      Returns:
      the AvailableDelegationInner object itself.
    • type

      public String type()
      Get the type property: Resource type.
      Returns:
      the type value.
    • withType

      public AvailableDelegationInner withType(String type)
      Set the type property: Resource type.
      Parameters:
      type - the type value to set.
      Returns:
      the AvailableDelegationInner object itself.
    • serviceName

      public String serviceName()
      Get the serviceName property: The name of the service and resource.
      Returns:
      the serviceName value.
    • withServiceName

      public AvailableDelegationInner withServiceName(String serviceName)
      Set the serviceName property: The name of the service and resource.
      Parameters:
      serviceName - the serviceName value to set.
      Returns:
      the AvailableDelegationInner object itself.
    • actions

      public List<String> actions()
      Get the actions property: The actions permitted to the service upon delegation.
      Returns:
      the actions value.
    • withActions

      public AvailableDelegationInner withActions(List<String> actions)
      Set the actions property: The actions permitted to the service upon delegation.
      Parameters:
      actions - the actions value to set.
      Returns:
      the AvailableDelegationInner 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<AvailableDelegationInner>
      Throws:
      IOException
    • fromJson

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