Class PolicyPropertiesScope
java.lang.Object
com.azure.resourcemanager.authorization.models.PolicyPropertiesScope
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyPropertiesScope>
public final class PolicyPropertiesScope
extends Object
implements com.azure.json.JsonSerializable<PolicyPropertiesScope>
Details of the resource scope.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: Display name of the resource.static PolicyPropertiesScopefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicyPropertiesScope from the JsonReader.id()Get the id property: Scope id of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the resource.voidvalidate()Validates the instance.withDisplayName(String displayName) Set the displayName property: Display name of the resource.Set the id property: Scope id of the resource.Set the type property: Type of the resource.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
-
PolicyPropertiesScope
public PolicyPropertiesScope()Creates an instance of PolicyPropertiesScope class.
-
-
Method Details
-
id
Get the id property: Scope id of the resource.- Returns:
- the id value.
-
withId
Set the id property: Scope id of the resource.- Parameters:
id- the id value to set.- Returns:
- the PolicyPropertiesScope object itself.
-
displayName
Get the displayName property: Display name of the resource.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of the resource.- Parameters:
displayName- the displayName value to set.- Returns:
- the PolicyPropertiesScope object itself.
-
type
Get the type property: Type of the resource.- Returns:
- the type value.
-
withType
Set the type property: Type of the resource.- Parameters:
type- the type value to set.- Returns:
- the PolicyPropertiesScope 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<PolicyPropertiesScope>- Throws:
IOException
-
fromJson
public static PolicyPropertiesScope fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PolicyPropertiesScope from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicyPropertiesScope 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 PolicyPropertiesScope.
-