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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DelegationPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DelegationProperties from the JsonReader.Get the provisioningState property: Provisioning states of a resource.Get the serviceName property: The service name to which the NVA is delegated.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withServiceName(String serviceName) Set the serviceName property: The service name to which the NVA is delegated.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
-
DelegationProperties
public DelegationProperties()Creates an instance of DelegationProperties class.
-
-
Method Details
-
serviceName
Get the serviceName property: The service name to which the NVA is delegated.- Returns:
- the serviceName value.
-
withServiceName
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
Get the provisioningState property: Provisioning states of a 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<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.
-