Class PolicyTokenOperation
java.lang.Object
com.azure.resourcemanager.resources.models.PolicyTokenOperation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyTokenOperation>
public final class PolicyTokenOperation
extends Object
implements com.azure.json.JsonSerializable<PolicyTokenOperation>
The resource operation to acquire a token for.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Get the content property: The payload of the resource operation.static PolicyTokenOperationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicyTokenOperation from the JsonReader.Get the httpMethod property: The http method of the resource operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) uri()Get the uri property: The request URI of the resource operation.voidvalidate()Validates the instance.withContent(Object content) Set the content property: The payload of the resource operation.withHttpMethod(String httpMethod) Set the httpMethod property: The http method of the resource operation.Set the uri property: The request URI of the resource operation.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
-
PolicyTokenOperation
public PolicyTokenOperation()Creates an instance of PolicyTokenOperation class.
-
-
Method Details
-
uri
Get the uri property: The request URI of the resource operation.- Returns:
- the uri value.
-
withUri
Set the uri property: The request URI of the resource operation.- Parameters:
uri- the uri value to set.- Returns:
- the PolicyTokenOperation object itself.
-
httpMethod
Get the httpMethod property: The http method of the resource operation.- Returns:
- the httpMethod value.
-
withHttpMethod
Set the httpMethod property: The http method of the resource operation.- Parameters:
httpMethod- the httpMethod value to set.- Returns:
- the PolicyTokenOperation object itself.
-
content
Get the content property: The payload of the resource operation.- Returns:
- the content value.
-
withContent
Set the content property: The payload of the resource operation.- Parameters:
content- the content value to set.- Returns:
- the PolicyTokenOperation 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<PolicyTokenOperation>- Throws:
IOException
-
fromJson
public static PolicyTokenOperation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PolicyTokenOperation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicyTokenOperation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the PolicyTokenOperation.
-