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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceDelegationPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Get the actions property: The actions permitted to the service upon delegation.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceDelegationPropertiesFormat from the JsonReader.Get the provisioningState property: The provisioning state of the service delegation resource.Get the serviceName property: The name of the service to whom the subnet should be delegated (e.g.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withServiceName(String serviceName) Set the serviceName property: The name of the service to whom the subnet should be delegated (e.g.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServiceDelegationPropertiesFormat
public ServiceDelegationPropertiesFormat()Creates an instance of ServiceDelegationPropertiesFormat class.
-
-
Method Details
-
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
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
Get the actions property: The actions permitted to the service upon delegation.- Returns:
- the actions value.
-
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
- Specified by:
toJsonin interfacecom.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.
-