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 Details

    • RoleManagementPolicyRuleTarget

      public RoleManagementPolicyRuleTarget()
      Creates an instance of RoleManagementPolicyRuleTarget class.
  • Method Details

    • caller

      public String caller()
      Get the caller property: The caller of the setting.
      Returns:
      the caller value.
    • withCaller

      public RoleManagementPolicyRuleTarget withCaller(String caller)
      Set the caller property: The caller of the setting.
      Parameters:
      caller - the caller value to set.
      Returns:
      the RoleManagementPolicyRuleTarget object itself.
    • operations

      public List<String> operations()
      Get the operations property: The type of operation.
      Returns:
      the operations value.
    • withOperations

      public RoleManagementPolicyRuleTarget withOperations(List<String> operations)
      Set the operations property: The type of operation.
      Parameters:
      operations - the operations value to set.
      Returns:
      the RoleManagementPolicyRuleTarget object itself.
    • level

      public String level()
      Get the level property: The assignment level to which rule is applied.
      Returns:
      the level value.
    • withLevel

      public RoleManagementPolicyRuleTarget withLevel(String level)
      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

      public List<String> targetObjects()
      Get the targetObjects property: The list of target objects.
      Returns:
      the targetObjects value.
    • withTargetObjects

      public RoleManagementPolicyRuleTarget withTargetObjects(List<String> targetObjects)
      Set the targetObjects property: The list of target objects.
      Parameters:
      targetObjects - the targetObjects value to set.
      Returns:
      the RoleManagementPolicyRuleTarget object itself.
    • inheritableSettings

      public List<String> inheritableSettings()
      Get the inheritableSettings property: The list of inheritable settings.
      Returns:
      the inheritableSettings value.
    • withInheritableSettings

      public RoleManagementPolicyRuleTarget withInheritableSettings(List<String> inheritableSettings)
      Set the inheritableSettings property: The list of inheritable settings.
      Parameters:
      inheritableSettings - the inheritableSettings value to set.
      Returns:
      the RoleManagementPolicyRuleTarget object itself.
    • enforcedSettings

      public List<String> enforcedSettings()
      Get the enforcedSettings property: The list of enforced settings.
      Returns:
      the enforcedSettings value.
    • withEnforcedSettings

      public RoleManagementPolicyRuleTarget withEnforcedSettings(List<String> enforcedSettings)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.