Share via


ExternalEvaluationEnforcementSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.ExternalEvaluationEnforcementSettings

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 ExternalEvaluationEnforcementSettings class.

Method Summary

Modifier and Type Method and Description
ExternalEvaluationEndpointSettings endpointSettings()

Get the endpointSettings property: The settings of an external endpoint providing evaluation results.

static ExternalEvaluationEnforcementSettings fromJson(JsonReader jsonReader)

Reads an instance of ExternalEvaluationEnforcementSettings from the JsonReader.

String missingTokenAction()

Get the missingTokenAction property: What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing.

String resultLifespan()

Get the resultLifespan property: The lifespan of the endpoint invocation result after which it's no longer valid.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExternalEvaluationEnforcementSettings withEndpointSettings(ExternalEvaluationEndpointSettings endpointSettings)

Set the endpointSettings property: The settings of an external endpoint providing evaluation results.

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.

ExternalEvaluationEnforcementSettings withResultLifespan(String resultLifespan)

Set the resultLifespan property: The lifespan of the endpoint invocation result after which it's no longer valid.

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.

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:

the endpointSettings value.

fromJson

public static ExternalEvaluationEnforcementSettings fromJson(JsonReader jsonReader)

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.

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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

endpointSettings - the endpointSettings value to set.

Returns:

the ExternalEvaluationEnforcementSettings object itself.

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.

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.

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.

Applies to