PolicyTokenResponseInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.fluent.models.PolicyTokenResponseInner

Implements

public final class PolicyTokenResponseInner
implements JsonSerializable<PolicyTokenResponseInner>

The policy token response properties.

Method Summary

Modifier and Type Method and Description
String changeReference()

Get the changeReference property: The change reference associated with the operation for which the token is acquired.

OffsetDateTime expiration()

Get the expiration property: The expiration of the policy token.

static PolicyTokenResponseInner fromJson(JsonReader jsonReader)

Reads an instance of PolicyTokenResponseInner from the JsonReader.

String message()

Get the message property: Status message with additional details about the token acquisition operation result.

PolicyTokenEvaluatedRequestDetails requestDetails()

Get the requestDetails property: The external evaluation request details.

PolicyTokenResult result()

Get the result property: The result of the completed token acquisition operation.

List<ExternalEvaluationEndpointInvocationResult> results()

Get the results property: An array of external evaluation endpoint invocation results.

OffsetDateTime retryAfter()

Get the retryAfter property: The date and time after which the client can try to acquire a token again in the case of retry-able failures.

JsonWriter toJson(JsonWriter jsonWriter)
String token()

Get the token property: The issued policy token.

String tokenId()

Get the tokenId property: The unique Id assigned to the policy token.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

changeReference

public String changeReference()

Get the changeReference property: The change reference associated with the operation for which the token is acquired.

Returns:

the changeReference value.

expiration

public OffsetDateTime expiration()

Get the expiration property: The expiration of the policy token.

Returns:

the expiration value.

fromJson

public static PolicyTokenResponseInner fromJson(JsonReader jsonReader)

Reads an instance of PolicyTokenResponseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: Status message with additional details about the token acquisition operation result.

Returns:

the message value.

requestDetails

public PolicyTokenEvaluatedRequestDetails requestDetails()

Get the requestDetails property: The external evaluation request details.

Returns:

the requestDetails value.

result

public PolicyTokenResult result()

Get the result property: The result of the completed token acquisition operation. Possible values are Succeeded and Failed.

Returns:

the result value.

results

public List<ExternalEvaluationEndpointInvocationResult> results()

Get the results property: An array of external evaluation endpoint invocation results.

Returns:

the results value.

retryAfter

public OffsetDateTime retryAfter()

Get the retryAfter property: The date and time after which the client can try to acquire a token again in the case of retry-able failures.

Returns:

the retryAfter value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

token

public String token()

Get the token property: The issued policy token.

Returns:

the token value.

tokenId

public String tokenId()

Get the tokenId property: The unique Id assigned to the policy token.

Returns:

the tokenId value.

validate

public void validate()

Validates the instance.

Applies to