Class DelegationProperties

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

public final class DelegationProperties extends Object implements com.azure.json.JsonSerializable<DelegationProperties>
Properties of the delegation.
  • Constructor Details

    • DelegationProperties

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

    • serviceName

      public String serviceName()
      Get the serviceName property: The service name to which the NVA is delegated.
      Returns:
      the serviceName value.
    • withServiceName

      public DelegationProperties withServiceName(String serviceName)
      Set the serviceName property: The service name to which the NVA is delegated.
      Parameters:
      serviceName - the serviceName value to set.
      Returns:
      the DelegationProperties object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The current provisioning state.
      Returns:
      the provisioningState 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<DelegationProperties>
      Throws:
      IOException
    • fromJson

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