Class OperationTagResourceContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.OperationTagResourceContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationTagResourceContractProperties>
public final class OperationTagResourceContractProperties
extends Object
implements com.azure.json.JsonSerializable<OperationTagResourceContractProperties>
Operation Entity contract Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OperationTagResourceContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionapiName()Get the apiName property: API Name.Get the apiRevision property: API Revision.Get the apiVersion property: API Version.Get the description property: Operation Description.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationTagResourceContractProperties from the JsonReader.id()Get the id property: Identifier of the operation in form /operations/{operationId}.method()Get the method property: A Valid HTTP Operation Method.name()Get the name property: Operation name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the urlTemplate property: Relative URL template identifying the target resource for this operation.voidvalidate()Validates the instance.Set the id property: Identifier of the operation in form /operations/{operationId}.Methods inherited from class java.lang.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
-
OperationTagResourceContractProperties
public OperationTagResourceContractProperties()Creates an instance of OperationTagResourceContractProperties class.
-
-
Method Details
-
id
Get the id property: Identifier of the operation in form /operations/{operationId}.- Returns:
- the id value.
-
withId
Set the id property: Identifier of the operation in form /operations/{operationId}.- Parameters:
id- the id value to set.- Returns:
- the OperationTagResourceContractProperties object itself.
-
name
Get the name property: Operation name.- Returns:
- the name value.
-
apiName
Get the apiName property: API Name.- Returns:
- the apiName value.
-
apiRevision
Get the apiRevision property: API Revision.- Returns:
- the apiRevision value.
-
apiVersion
Get the apiVersion property: API Version.- Returns:
- the apiVersion value.
-
description
Get the description property: Operation Description.- Returns:
- the description value.
-
method
Get the method property: A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.- Returns:
- the method value.
-
urlTemplate
Get the urlTemplate property: Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}.- Returns:
- the urlTemplate value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OperationTagResourceContractProperties>- Throws:
IOException
-
fromJson
public static OperationTagResourceContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OperationTagResourceContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OperationTagResourceContractProperties 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 OperationTagResourceContractProperties.
-