Share via


ExternalEvaluationEndpointInvocationResult Class

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

Implements

public final class ExternalEvaluationEndpointInvocationResult
implements JsonSerializable<ExternalEvaluationEndpointInvocationResult>

The external evaluation endpoint invocation results.

Constructor Summary

Constructor Description
ExternalEvaluationEndpointInvocationResult()

Creates an instance of ExternalEvaluationEndpointInvocationResult class.

Method Summary

Modifier and Type Method and Description
Object claims()

Get the claims property: The set of claims that will be attached to the policy token as an attestation for the result of the endpoint invocation.

OffsetDateTime expiration()

Get the expiration property: The expiration of the results.

static ExternalEvaluationEndpointInvocationResult fromJson(JsonReader jsonReader)

Reads an instance of ExternalEvaluationEndpointInvocationResult from the JsonReader.

String message()

Get the message property: The status message with additional details about the invocation result.

PolicyLogInfo policyInfo()

Get the policyInfo property: The details of the policy requiring the external endpoint invocation.

ExternalEndpointResult result()

Get the result property: The result of the external endpoint.

OffsetDateTime retryAfter()

Get the retryAfter property: The date and time after which a failed endpoint invocation can be retried.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExternalEvaluationEndpointInvocationResult withClaims(Object claims)

Set the claims property: The set of claims that will be attached to the policy token as an attestation for the result of the endpoint invocation.

ExternalEvaluationEndpointInvocationResult withExpiration(OffsetDateTime expiration)

Set the expiration property: The expiration of the results.

ExternalEvaluationEndpointInvocationResult withMessage(String message)

Set the message property: The status message with additional details about the invocation result.

ExternalEvaluationEndpointInvocationResult withPolicyInfo(PolicyLogInfo policyInfo)

Set the policyInfo property: The details of the policy requiring the external endpoint invocation.

ExternalEvaluationEndpointInvocationResult withResult(ExternalEndpointResult result)

Set the result property: The result of the external endpoint.

ExternalEvaluationEndpointInvocationResult withRetryAfter(OffsetDateTime retryAfter)

Set the retryAfter property: The date and time after which a failed endpoint invocation can be retried.

Methods inherited from java.lang.Object

Constructor Details

ExternalEvaluationEndpointInvocationResult

public ExternalEvaluationEndpointInvocationResult()

Creates an instance of ExternalEvaluationEndpointInvocationResult class.

Method Details

claims

public Object claims()

Get the claims property: The set of claims that will be attached to the policy token as an attestation for the result of the endpoint invocation.

Returns:

the claims value.

expiration

public OffsetDateTime expiration()

Get the expiration property: The expiration of the results.

Returns:

the expiration value.

fromJson

public static ExternalEvaluationEndpointInvocationResult fromJson(JsonReader jsonReader)

Reads an instance of ExternalEvaluationEndpointInvocationResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExternalEvaluationEndpointInvocationResult 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 ExternalEvaluationEndpointInvocationResult.

message

public String message()

Get the message property: The status message with additional details about the invocation result.

Returns:

the message value.

policyInfo

public PolicyLogInfo policyInfo()

Get the policyInfo property: The details of the policy requiring the external endpoint invocation.

Returns:

the policyInfo value.

result

public ExternalEndpointResult result()

Get the result property: The result of the external endpoint. Possible values are Succeeded and Failed.

Returns:

the result value.

retryAfter

public OffsetDateTime retryAfter()

Get the retryAfter property: The date and time after which a failed endpoint invocation can be retried.

Returns:

the retryAfter value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClaims

public ExternalEvaluationEndpointInvocationResult withClaims(Object claims)

Set the claims property: The set of claims that will be attached to the policy token as an attestation for the result of the endpoint invocation.

Parameters:

claims - the claims value to set.

Returns:

the ExternalEvaluationEndpointInvocationResult object itself.

withExpiration

public ExternalEvaluationEndpointInvocationResult withExpiration(OffsetDateTime expiration)

Set the expiration property: The expiration of the results.

Parameters:

expiration - the expiration value to set.

Returns:

the ExternalEvaluationEndpointInvocationResult object itself.

withMessage

public ExternalEvaluationEndpointInvocationResult withMessage(String message)

Set the message property: The status message with additional details about the invocation result.

Parameters:

message - the message value to set.

Returns:

the ExternalEvaluationEndpointInvocationResult object itself.

withPolicyInfo

public ExternalEvaluationEndpointInvocationResult withPolicyInfo(PolicyLogInfo policyInfo)

Set the policyInfo property: The details of the policy requiring the external endpoint invocation.

Parameters:

policyInfo - the policyInfo value to set.

Returns:

the ExternalEvaluationEndpointInvocationResult object itself.

withResult

public ExternalEvaluationEndpointInvocationResult withResult(ExternalEndpointResult result)

Set the result property: The result of the external endpoint. Possible values are Succeeded and Failed.

Parameters:

result - the result value to set.

Returns:

the ExternalEvaluationEndpointInvocationResult object itself.

withRetryAfter

public ExternalEvaluationEndpointInvocationResult withRetryAfter(OffsetDateTime retryAfter)

Set the retryAfter property: The date and time after which a failed endpoint invocation can be retried.

Parameters:

retryAfter - the retryAfter value to set.

Returns:

the ExternalEvaluationEndpointInvocationResult object itself.

Applies to