ExternalEvaluationEnforcementSettings Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. ExternalEvaluationEnforcementSettings
- com.
Implements
public final class ExternalEvaluationEnforcementSettings
implements JsonSerializable<ExternalEvaluationEnforcementSettings>
The details of the source of external evaluation results required by the policy during enforcement evaluation.
Constructor Summary
| Constructor | Description |
|---|---|
| ExternalEvaluationEnforcementSettings() |
Creates an instance of External |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
External |
endpointSettings()
Get the endpoint |
|
static
External |
fromJson(JsonReader jsonReader)
Reads an instance of External |
| String |
missingTokenAction()
Get the missing |
| String |
resultLifespan()
Get the result |
| List<String> |
roleDefinitionIds()
Get the role |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
External |
withEndpointSettings(ExternalEvaluationEndpointSettings endpointSettings)
Set the endpoint |
|
External |
withMissingTokenAction(String missingTokenAction)
Set the missing |
|
External |
withResultLifespan(String resultLifespan)
Set the result |
|
External |
withRoleDefinitionIds(List<String> roleDefinitionIds)
Set the role |
Methods inherited from java.lang.Object
Constructor Details
ExternalEvaluationEnforcementSettings
public ExternalEvaluationEnforcementSettings()
Creates an instance of ExternalEvaluationEnforcementSettings class.
Method Details
endpointSettings
public ExternalEvaluationEndpointSettings endpointSettings()
Get the endpointSettings property: The settings of an external endpoint providing evaluation results.
Returns:
fromJson
public static ExternalEvaluationEnforcementSettings fromJson(JsonReader jsonReader)
Reads an instance of ExternalEvaluationEnforcementSettings from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
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:
toJson
validate
public void validate()
Validates the instance.
withEndpointSettings
public ExternalEvaluationEnforcementSettings withEndpointSettings(ExternalEvaluationEndpointSettings endpointSettings)
Set the endpointSettings property: The settings of an external endpoint providing evaluation results.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns: