Class ExternalEvaluationEnforcementSettings

java.lang.Object
com.azure.resourcemanager.resources.models.ExternalEvaluationEnforcementSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<ExternalEvaluationEnforcementSettings>

public final class ExternalEvaluationEnforcementSettings extends Object implements com.azure.json.JsonSerializable<ExternalEvaluationEnforcementSettings>
The details of the source of external evaluation results required by the policy during enforcement evaluation.
  • Constructor Details

    • ExternalEvaluationEnforcementSettings

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

    • missingTokenAction

      public String missingTokenAction()
      Get the missingTokenAction property: What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.
      Returns:
      the missingTokenAction value.
    • withMissingTokenAction

      public ExternalEvaluationEnforcementSettings withMissingTokenAction(String missingTokenAction)
      Set the missingTokenAction property: What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.
      Parameters:
      missingTokenAction - the missingTokenAction value to set.
      Returns:
      the ExternalEvaluationEnforcementSettings object itself.
    • resultLifespan

      public String resultLifespan()
      Get the resultLifespan property: The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.
      Returns:
      the resultLifespan value.
    • withResultLifespan

      public ExternalEvaluationEnforcementSettings withResultLifespan(String resultLifespan)
      Set the resultLifespan property: The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.
      Parameters:
      resultLifespan - the resultLifespan value to set.
      Returns:
      the ExternalEvaluationEnforcementSettings object itself.
    • endpointSettings

      public ExternalEvaluationEndpointSettings endpointSettings()
      Get the endpointSettings property: The settings of an external endpoint providing evaluation results.
      Returns:
      the endpointSettings value.
    • withEndpointSettings

      public ExternalEvaluationEnforcementSettings withEndpointSettings(ExternalEvaluationEndpointSettings endpointSettings)
      Set the endpointSettings property: The settings of an external endpoint providing evaluation results.
      Parameters:
      endpointSettings - the endpointSettings value to set.
      Returns:
      the ExternalEvaluationEnforcementSettings object itself.
    • roleDefinitionIds

      public List<String> roleDefinitionIds()
      Get the roleDefinitionIds property: An array of the role definition Ids the assignment's MSI will need in order to invoke the endpoint.
      Returns:
      the roleDefinitionIds value.
    • withRoleDefinitionIds

      public ExternalEvaluationEnforcementSettings withRoleDefinitionIds(List<String> roleDefinitionIds)
      Set the roleDefinitionIds property: An array of the role definition Ids the assignment's MSI will need in order to invoke the endpoint.
      Parameters:
      roleDefinitionIds - the roleDefinitionIds value to set.
      Returns:
      the ExternalEvaluationEnforcementSettings 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<ExternalEvaluationEnforcementSettings>
      Throws:
      IOException
    • fromJson

      public static ExternalEvaluationEnforcementSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ExternalEvaluationEnforcementSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ExternalEvaluationEnforcementSettings 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 ExternalEvaluationEnforcementSettings.