Class ExternalEvaluationEndpointInvocationResult
java.lang.Object
com.azure.resourcemanager.resources.models.ExternalEvaluationEndpointInvocationResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExternalEvaluationEndpointInvocationResult>
public final class ExternalEvaluationEndpointInvocationResult
extends Object
implements com.azure.json.JsonSerializable<ExternalEvaluationEndpointInvocationResult>
The external evaluation endpoint invocation results.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExternalEvaluationEndpointInvocationResult class. -
Method Summary
Modifier and TypeMethodDescriptionclaims()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.Get the expiration property: The expiration of the results.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExternalEvaluationEndpointInvocationResult from the JsonReader.message()Get the message property: The status message with additional details about the invocation result.Get the policyInfo property: The details of the policy requiring the external endpoint invocation.result()Get the result property: The result of the external endpoint.Get the retryAfter property: The date and time after which a failed endpoint invocation can be retried.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.withExpiration(OffsetDateTime expiration) Set the expiration property: The expiration of the results.withMessage(String message) Set the message property: The status message with additional details about the invocation result.withPolicyInfo(PolicyLogInfo policyInfo) Set the policyInfo property: The details of the policy requiring the external endpoint invocation.withResult(ExternalEndpointResult result) Set the result property: The result of the external endpoint.withRetryAfter(OffsetDateTime retryAfter) Set the retryAfter property: The date and time after which a failed endpoint invocation can be retried.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
-
ExternalEvaluationEndpointInvocationResult
public ExternalEvaluationEndpointInvocationResult()Creates an instance of ExternalEvaluationEndpointInvocationResult class.
-
-
Method Details
-
policyInfo
Get the policyInfo property: The details of the policy requiring the external endpoint invocation.- Returns:
- the policyInfo value.
-
withPolicyInfo
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.
-
result
Get the result property: The result of the external endpoint. Possible values are Succeeded and Failed.- Returns:
- the result value.
-
withResult
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.
-
message
Get the message property: The status message with additional details about the invocation result.- Returns:
- the message value.
-
withMessage
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.
-
retryAfter
Get the retryAfter property: The date and time after which a failed endpoint invocation can be retried.- Returns:
- the retryAfter value.
-
withRetryAfter
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.
-
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.
-
withClaims
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.
-
expiration
Get the expiration property: The expiration of the results.- Returns:
- the expiration value.
-
withExpiration
Set the expiration property: The expiration of the results.- Parameters:
expiration- the expiration value to set.- Returns:
- the ExternalEvaluationEndpointInvocationResult 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<ExternalEvaluationEndpointInvocationResult>- Throws:
IOException
-
fromJson
public static ExternalEvaluationEndpointInvocationResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-