Class ServiceDelegationPropertiesFormat

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

public final class ServiceDelegationPropertiesFormat extends Object implements com.azure.json.JsonSerializable<ServiceDelegationPropertiesFormat>
Properties of a service delegation.
  • Constructor Details

    • ServiceDelegationPropertiesFormat

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

    • serviceName

      public String serviceName()
      Get the serviceName property: The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers).
      Returns:
      the serviceName value.
    • withServiceName

      public ServiceDelegationPropertiesFormat withServiceName(String serviceName)
      Set the serviceName property: The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers).
      Parameters:
      serviceName - the serviceName value to set.
      Returns:
      the ServiceDelegationPropertiesFormat object itself.
    • actions

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

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the service delegation resource.
      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<ServiceDelegationPropertiesFormat>
      Throws:
      IOException
    • fromJson

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