PolicyTokenResponseInner Class
- java.
lang. Object - com.
azure. resourcemanager. resources. fluent. models. PolicyTokenResponseInner
- com.
Implements
public final class PolicyTokenResponseInner
implements JsonSerializable<PolicyTokenResponseInner>
The policy token response properties.
Constructor Summary
| Constructor | Description |
|---|---|
| PolicyTokenResponseInner() |
Creates an instance of Policy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
changeReference()
Get the change |
|
Offset |
expiration()
Get the expiration property: The expiration of the policy token. |
|
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
| String |
message()
Get the message property: Status message with additional details about the token acquisition operation result. |
|
Policy |
result()
Get the result property: The result of the completed token acquisition operation. |
|
List<External |
results()
Get the results property: An array of external evaluation endpoint invocation results. |
|
Offset |
retryAfter()
Get the retry |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
token()
Get the token property: The issued policy token. |
| String |
tokenId()
Get the token |
| void |
validate()
Validates the instance. |
|
Policy |
withChangeReference(String changeReference)
Set the change |
|
Policy |
withExpiration(OffsetDateTime expiration)
Set the expiration property: The expiration of the policy token. |
|
Policy |
withMessage(String message)
Set the message property: Status message with additional details about the token acquisition operation result. |
|
Policy |
withResult(PolicyTokenResult result)
Set the result property: The result of the completed token acquisition operation. |
|
Policy |
withResults(List<ExternalEvaluationEndpointInvocationResult> results)
Set the results property: An array of external evaluation endpoint invocation results. |
|
Policy |
withRetryAfter(OffsetDateTime retryAfter)
Set the retry |
|
Policy |
withToken(String token)
Set the token property: The issued policy token. |
|
Policy |
withTokenId(String tokenId)
Set the 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:
expiration
public OffsetDateTime expiration()
Get the expiration property: The expiration of the policy token.
Returns:
fromJson
public static PolicyTokenResponseInner fromJson(JsonReader jsonReader)
Reads an instance of PolicyTokenResponseInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Status message with additional details about the token acquisition operation result.
Returns:
result
public PolicyTokenResult result()
Get the result property: The result of the completed token acquisition operation. Possible values are Succeeded and Failed.
Returns:
results
public List<ExternalEvaluationEndpointInvocationResult> results()
Get the results property: An array of external evaluation endpoint invocation results.
Returns:
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:
toJson
token
public String token()
Get the token property: The issued policy token.
Returns:
tokenId
public String tokenId()
Get the tokenId property: The unique Id assigned to the policy token.
Returns:
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:
Returns:
withExpiration
public PolicyTokenResponseInner withExpiration(OffsetDateTime expiration)
Set the expiration property: The expiration of the policy token.
Parameters:
Returns:
withMessage
public PolicyTokenResponseInner withMessage(String message)
Set the message property: Status message with additional details about the token acquisition operation result.
Parameters:
Returns:
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:
Returns:
withResults
public PolicyTokenResponseInner withResults(List<ExternalEvaluationEndpointInvocationResult> results)
Set the results property: An array of external evaluation endpoint invocation results.
Parameters:
Returns:
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:
Returns:
withToken
public PolicyTokenResponseInner withToken(String token)
Set the token property: The issued policy token.
Parameters:
Returns:
withTokenId
public PolicyTokenResponseInner withTokenId(String tokenId)
Set the tokenId property: The unique Id assigned to the policy token.
Parameters:
Returns: