Class RequestContract
java.lang.Object
com.azure.resourcemanager.apimanagement.models.RequestContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RequestContract>
public final class RequestContract
extends Object
implements com.azure.json.JsonSerializable<RequestContract>
Operation request details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Operation request description.static RequestContractfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RequestContract from the JsonReader.headers()Get the headers property: Collection of operation request headers.Get the queryParameters property: Collection of operation request query parameters.Get the representations property: Collection of operation request representations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Operation request description.withHeaders(List<ParameterContract> headers) Set the headers property: Collection of operation request headers.withQueryParameters(List<ParameterContract> queryParameters) Set the queryParameters property: Collection of operation request query parameters.withRepresentations(List<RepresentationContract> representations) Set the representations property: Collection of operation request representations.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
-
RequestContract
public RequestContract()Creates an instance of RequestContract class.
-
-
Method Details
-
description
Get the description property: Operation request description.- Returns:
- the description value.
-
withDescription
Set the description property: Operation request description.- Parameters:
description- the description value to set.- Returns:
- the RequestContract object itself.
-
queryParameters
Get the queryParameters property: Collection of operation request query parameters.- Returns:
- the queryParameters value.
-
withQueryParameters
Set the queryParameters property: Collection of operation request query parameters.- Parameters:
queryParameters- the queryParameters value to set.- Returns:
- the RequestContract object itself.
-
headers
Get the headers property: Collection of operation request headers.- Returns:
- the headers value.
-
withHeaders
Set the headers property: Collection of operation request headers.- Parameters:
headers- the headers value to set.- Returns:
- the RequestContract object itself.
-
representations
Get the representations property: Collection of operation request representations.- Returns:
- the representations value.
-
withRepresentations
Set the representations property: Collection of operation request representations.- Parameters:
representations- the representations value to set.- Returns:
- the RequestContract 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<RequestContract>- Throws:
IOException
-
fromJson
Reads an instance of RequestContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RequestContract 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 RequestContract.
-