Class OperationContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.OperationContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class OperationContractInner
extends com.azure.core.management.ProxyResource
API Operation details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OperationContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description of the operation.Get the displayName property: Operation Name.static OperationContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationContractInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.method()Get the method property: A Valid HTTP Operation Method.name()Get the name property: The name of the resource.policies()Get the policies property: Operation Policies.request()Get the request property: An entity containing request details.Get the responses property: Array of Operation responses.Get the templateParameters property: Collection of URL template parameters.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the urlTemplate property: Relative URL template identifying the target resource for this operation.voidvalidate()Validates the instance.withDescription(String description) Set the description property: Description of the operation.withDisplayName(String displayName) Set the displayName property: Operation Name.withMethod(String method) Set the method property: A Valid HTTP Operation Method.withPolicies(String policies) Set the policies property: Operation Policies.withRequest(RequestContract request) Set the request property: An entity containing request details.withResponses(List<ResponseContract> responses) Set the responses property: Array of Operation responses.withTemplateParameters(List<ParameterContract> templateParameters) Set the templateParameters property: Collection of URL template parameters.withUrlTemplate(String urlTemplate) Set the urlTemplate property: Relative URL template identifying the target resource for this operation.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
-
OperationContractInner
public OperationContractInner()Creates an instance of OperationContractInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
displayName
Get the displayName property: Operation Name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Operation Name.- Parameters:
displayName- the displayName value to set.- Returns:
- the OperationContractInner object itself.
-
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.
-
withMethod
Set the method property: A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.- Parameters:
method- the method value to set.- Returns:
- the OperationContractInner object itself.
-
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.
-
withUrlTemplate
Set the urlTemplate property: Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}.- Parameters:
urlTemplate- the urlTemplate value to set.- Returns:
- the OperationContractInner object itself.
-
templateParameters
Get the templateParameters property: Collection of URL template parameters.- Returns:
- the templateParameters value.
-
withTemplateParameters
Set the templateParameters property: Collection of URL template parameters.- Parameters:
templateParameters- the templateParameters value to set.- Returns:
- the OperationContractInner object itself.
-
description
Get the description property: Description of the operation. May include HTML formatting tags.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the operation. May include HTML formatting tags.- Parameters:
description- the description value to set.- Returns:
- the OperationContractInner object itself.
-
request
Get the request property: An entity containing request details.- Returns:
- the request value.
-
withRequest
Set the request property: An entity containing request details.- Parameters:
request- the request value to set.- Returns:
- the OperationContractInner object itself.
-
responses
Get the responses property: Array of Operation responses.- Returns:
- the responses value.
-
withResponses
Set the responses property: Array of Operation responses.- Parameters:
responses- the responses value to set.- Returns:
- the OperationContractInner object itself.
-
policies
Get the policies property: Operation Policies.- Returns:
- the policies value.
-
withPolicies
Set the policies property: Operation Policies.- Parameters:
policies- the policies value to set.- Returns:
- the OperationContractInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static OperationContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OperationContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OperationContractInner 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 OperationContractInner.
-