Class RequestContract
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.RequestContract
-
public final class RequestContract extends Object
Operation request details.
-
-
Constructor Summary
Constructors Constructor Description RequestContract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
Get the description property: Operation request description.List<ParameterContract>
headers()
Get the headers property: Collection of operation request headers.List<ParameterContract>
queryParameters()
Get the queryParameters property: Collection of operation request query parameters.List<RepresentationContract>
representations()
Get the representations property: Collection of operation request representations.void
validate()
Validates the instance.RequestContract
withDescription(String description)
Set the description property: Operation request description.RequestContract
withHeaders(List<ParameterContract> headers)
Set the headers property: Collection of operation request headers.RequestContract
withQueryParameters(List<ParameterContract> queryParameters)
Set the queryParameters property: Collection of operation request query parameters.RequestContract
withRepresentations(List<RepresentationContract> representations)
Set the representations property: Collection of operation request representations.
-
-
-
Method Detail
-
description
public String description()
Get the description property: Operation request description.- Returns:
- the description value.
-
withDescription
public RequestContract withDescription(String description)
Set the description property: Operation request description.- Parameters:
description
- the description value to set.- Returns:
- the RequestContract object itself.
-
queryParameters
public List<ParameterContract> queryParameters()
Get the queryParameters property: Collection of operation request query parameters.- Returns:
- the queryParameters value.
-
withQueryParameters
public RequestContract withQueryParameters(List<ParameterContract> queryParameters)
Set the queryParameters property: Collection of operation request query parameters.- Parameters:
queryParameters
- the queryParameters value to set.- Returns:
- the RequestContract object itself.
-
headers
public List<ParameterContract> headers()
Get the headers property: Collection of operation request headers.- Returns:
- the headers value.
-
withHeaders
public RequestContract withHeaders(List<ParameterContract> headers)
Set the headers property: Collection of operation request headers.- Parameters:
headers
- the headers value to set.- Returns:
- the RequestContract object itself.
-
representations
public List<RepresentationContract> representations()
Get the representations property: Collection of operation request representations.- Returns:
- the representations value.
-
withRepresentations
public RequestContract withRepresentations(List<RepresentationContract> representations)
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.
-
-