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 Summary
ConstructorsConstructorDescriptionCreates an instance of ExternalEvaluationEnforcementSettings class. -
Method Summary
Modifier and TypeMethodDescriptionGet the endpointSettings property: The settings of an external endpoint providing evaluation results.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExternalEvaluationEnforcementSettings from the JsonReader.Get the missingTokenAction property: What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing.Get the resultLifespan property: The lifespan of the endpoint invocation result after which it's no longer valid.Get the roleDefinitionIds property: An array of the role definition Ids the assignment's MSI will need in order to invoke the endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndpointSettings(ExternalEvaluationEndpointSettings endpointSettings) Set the endpointSettings property: The settings of an external endpoint providing evaluation results.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.withResultLifespan(String resultLifespan) Set the resultLifespan property: The lifespan of the endpoint invocation result after which it's no longer valid.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.Methods inherited from class 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
-
ExternalEvaluationEnforcementSettings
public ExternalEvaluationEnforcementSettings()Creates an instance of ExternalEvaluationEnforcementSettings class.
-
-
Method Details
-
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
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
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
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
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
-
withRoleDefinitionIds
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
- Specified by:
toJsonin interfacecom.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.
-