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 Summary
ConstructorsConstructorDescriptionCreates an instance of AvailableDelegationInner class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Get the actions property: The actions permitted to the service upon delegation.static AvailableDelegationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailableDelegationInner from the JsonReader.id()Get the id property: A unique identifier of the AvailableDelegation resource.name()Get the name property: The name of the AvailableDelegation resource.Get the serviceName property: The name of the service and resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type.voidvalidate()Validates the instance.withActions(List<String> actions) Set the actions property: The actions permitted to the service upon delegation.Set the id property: A unique identifier of the AvailableDelegation resource.Set the name property: The name of the AvailableDelegation resource.withServiceName(String serviceName) Set the serviceName property: The name of the service and resource.Set the type property: Resource type.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
-
AvailableDelegationInner
public AvailableDelegationInner()Creates an instance of AvailableDelegationInner class.
-
-
Method Details
-
name
Get the name property: The name of the AvailableDelegation resource.- Returns:
- the name value.
-
withName
Set the name property: The name of the AvailableDelegation resource.- Parameters:
name- the name value to set.- Returns:
- the AvailableDelegationInner object itself.
-
id
Get the id property: A unique identifier of the AvailableDelegation resource.- Returns:
- the id value.
-
withId
Set the id property: A unique identifier of the AvailableDelegation resource.- Parameters:
id- the id value to set.- Returns:
- the AvailableDelegationInner object itself.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
withType
Set the type property: Resource type.- Parameters:
type- the type value to set.- Returns:
- the AvailableDelegationInner object itself.
-
serviceName
Get the serviceName property: The name of the service and resource.- Returns:
- the serviceName value.
-
withServiceName
Set the serviceName property: The name of the service and resource.- Parameters:
serviceName- the serviceName value to set.- Returns:
- the AvailableDelegationInner object itself.
-
actions
Get the actions property: The actions permitted to the service upon delegation.- Returns:
- the actions value.
-
withActions
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
- Specified by:
toJsonin interfacecom.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.
-