Class PolicyTokenResponseInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.PolicyTokenResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyTokenResponseInner>
public final class PolicyTokenResponseInner
extends Object
implements com.azure.json.JsonSerializable<PolicyTokenResponseInner>
The policy token response properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicyTokenResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the changeReference property: The change reference associated with the operation for which the token is acquired.Get the expiration property: The expiration of the policy token.static PolicyTokenResponseInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicyTokenResponseInner from the JsonReader.message()Get the message property: Status message with additional details about the token acquisition operation result.result()Get the result property: The result of the completed token acquisition operation.results()Get the results property: An array of external evaluation endpoint invocation results.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) token()Get the token property: The issued policy token.tokenId()Get the tokenId property: The unique Id assigned to the policy token.voidvalidate()Validates the instance.withChangeReference(String changeReference) Set the changeReference property: The change reference associated with the operation for which the token is acquired.withExpiration(OffsetDateTime expiration) Set the expiration property: The expiration of the policy token.withMessage(String message) Set the message property: Status message with additional details about the token acquisition operation result.withResult(PolicyTokenResult result) Set the result property: The result of the completed token acquisition operation.Set the results property: An array of external evaluation endpoint invocation results.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.Set the token property: The issued policy token.withTokenId(String tokenId) Set the tokenId property: The unique Id assigned to the policy token.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
-
PolicyTokenResponseInner
public PolicyTokenResponseInner()Creates an instance of PolicyTokenResponseInner class.
-
-
Method Details
-
result
Get the result property: The result of the completed token acquisition operation. Possible values are Succeeded and Failed.- Returns:
- the result value.
-
withResult
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.
-
message
Get the message property: Status message with additional details about the token acquisition operation result.- Returns:
- the message value.
-
withMessage
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.
-
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.
-
withRetryAfter
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.
-
results
Get the results property: An array of external evaluation endpoint invocation results.- Returns:
- the results value.
-
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.
-
changeReference
Get the changeReference property: The change reference associated with the operation for which the token is acquired.- Returns:
- the changeReference value.
-
withChangeReference
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.
-
token
-
withToken
Set the token property: The issued policy token.- Parameters:
token- the token value to set.- Returns:
- the PolicyTokenResponseInner object itself.
-
tokenId
Get the tokenId property: The unique Id assigned to the policy token.- Returns:
- the tokenId value.
-
withTokenId
Set the tokenId property: The unique Id assigned to the policy token.- Parameters:
tokenId- the tokenId value to set.- Returns:
- the PolicyTokenResponseInner object itself.
-
expiration
Get the expiration property: The expiration of the policy token.- Returns:
- the expiration value.
-
withExpiration
Set the expiration property: The expiration of the policy token.- Parameters:
expiration- the expiration value to set.- Returns:
- the PolicyTokenResponseInner 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<PolicyTokenResponseInner>- Throws:
IOException
-
fromJson
public static PolicyTokenResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-