Class RoleManagementPolicyRuleTarget
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRuleTarget
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleManagementPolicyRuleTarget>
public final class RoleManagementPolicyRuleTarget
extends Object
implements com.azure.json.JsonSerializable<RoleManagementPolicyRuleTarget>
The role management policy rule target.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleManagementPolicyRuleTarget class. -
Method Summary
Modifier and TypeMethodDescriptioncaller()Get the caller property: The caller of the setting.Get the enforcedSettings property: The list of enforced settings.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleManagementPolicyRuleTarget from the JsonReader.Get the inheritableSettings property: The list of inheritable settings.level()Get the level property: The assignment level to which rule is applied.Get the operations property: The type of operation.Get the targetObjects property: The list of target objects.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCaller(String caller) Set the caller property: The caller of the setting.withEnforcedSettings(List<String> enforcedSettings) Set the enforcedSettings property: The list of enforced settings.withInheritableSettings(List<String> inheritableSettings) Set the inheritableSettings property: The list of inheritable settings.Set the level property: The assignment level to which rule is applied.withOperations(List<String> operations) Set the operations property: The type of operation.withTargetObjects(List<String> targetObjects) Set the targetObjects property: The list of target objects.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
-
RoleManagementPolicyRuleTarget
public RoleManagementPolicyRuleTarget()Creates an instance of RoleManagementPolicyRuleTarget class.
-
-
Method Details
-
caller
Get the caller property: The caller of the setting.- Returns:
- the caller value.
-
withCaller
Set the caller property: The caller of the setting.- Parameters:
caller- the caller value to set.- Returns:
- the RoleManagementPolicyRuleTarget object itself.
-
operations
Get the operations property: The type of operation.- Returns:
- the operations value.
-
withOperations
Set the operations property: The type of operation.- Parameters:
operations- the operations value to set.- Returns:
- the RoleManagementPolicyRuleTarget object itself.
-
level
Get the level property: The assignment level to which rule is applied.- Returns:
- the level value.
-
withLevel
Set the level property: The assignment level to which rule is applied.- Parameters:
level- the level value to set.- Returns:
- the RoleManagementPolicyRuleTarget object itself.
-
targetObjects
Get the targetObjects property: The list of target objects.- Returns:
- the targetObjects value.
-
withTargetObjects
Set the targetObjects property: The list of target objects.- Parameters:
targetObjects- the targetObjects value to set.- Returns:
- the RoleManagementPolicyRuleTarget object itself.
-
inheritableSettings
Get the inheritableSettings property: The list of inheritable settings.- Returns:
- the inheritableSettings value.
-
withInheritableSettings
Set the inheritableSettings property: The list of inheritable settings.- Parameters:
inheritableSettings- the inheritableSettings value to set.- Returns:
- the RoleManagementPolicyRuleTarget object itself.
-
enforcedSettings
Get the enforcedSettings property: The list of enforced settings.- Returns:
- the enforcedSettings value.
-
withEnforcedSettings
Set the enforcedSettings property: The list of enforced settings.- Parameters:
enforcedSettings- the enforcedSettings value to set.- Returns:
- the RoleManagementPolicyRuleTarget 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<RoleManagementPolicyRuleTarget>- Throws:
IOException
-
fromJson
public static RoleManagementPolicyRuleTarget fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RoleManagementPolicyRuleTarget from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoleManagementPolicyRuleTarget 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 RoleManagementPolicyRuleTarget.
-