Sdílet prostřednictvím


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.

Constructor Summary

Constructor Description
PolicyTokenResponseInner()

Creates an instance of PolicyTokenResponseInner class.

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.

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.

PolicyTokenResponseInner withChangeReference(String changeReference)

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

PolicyTokenResponseInner withExpiration(OffsetDateTime expiration)

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

PolicyTokenResponseInner withMessage(String message)

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

PolicyTokenResponseInner withResult(PolicyTokenResult result)

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

PolicyTokenResponseInner withResults(List<ExternalEvaluationEndpointInvocationResult> results)

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

PolicyTokenResponseInner withRetryAfter(OffsetDateTime retryAfter)

Set 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.

PolicyTokenResponseInner withToken(String token)

Set the token property: The issued policy token.

PolicyTokenResponseInner withTokenId(String tokenId)

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

Methods inherited from java.lang.Object

Constructor Details

PolicyTokenResponseInner

public PolicyTokenResponseInner()

Creates an instance of PolicyTokenResponseInner class.

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.

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.

withChangeReference

public PolicyTokenResponseInner withChangeReference(String changeReference)

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

Parameters:

changeReference - the changeReference value to set.

Returns:

the PolicyTokenResponseInner object itself.

withExpiration

public PolicyTokenResponseInner withExpiration(OffsetDateTime expiration)

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

Parameters:

expiration - the expiration value to set.

Returns:

the PolicyTokenResponseInner object itself.

withMessage

public PolicyTokenResponseInner withMessage(String message)

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

Parameters:

message - the message value to set.

Returns:

the PolicyTokenResponseInner object itself.

withResult

public PolicyTokenResponseInner withResult(PolicyTokenResult result)

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

Parameters:

result - the result value to set.

Returns:

the PolicyTokenResponseInner object itself.

withResults

public PolicyTokenResponseInner withResults(List<ExternalEvaluationEndpointInvocationResult> results)

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

Parameters:

results - the results value to set.

Returns:

the PolicyTokenResponseInner object itself.

withRetryAfter

public PolicyTokenResponseInner withRetryAfter(OffsetDateTime retryAfter)

Set 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.

Parameters:

retryAfter - the retryAfter value to set.

Returns:

the PolicyTokenResponseInner object itself.

withToken

public PolicyTokenResponseInner withToken(String token)

Set the token property: The issued policy token.

Parameters:

token - the token value to set.

Returns:

the PolicyTokenResponseInner object itself.

withTokenId

public PolicyTokenResponseInner withTokenId(String tokenId)

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

Parameters:

tokenId - the tokenId value to set.

Returns:

the PolicyTokenResponseInner object itself.

Applies to