ResponseContract Class
- java.
lang. Object - com.
microsoft. azure. management. apimanagement. v2019_01_01.ResponseContract
- com.
public class ResponseContract
Operation response details.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ResponseContract() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
description()
Get operation response description. |
|
java.util.List<Parameter |
headers()
Get collection of operation response headers. |
|
java.util.List<Representation |
representations()
Get collection of operation response representations. |
| int |
statusCode()
Get operation response HTTP status code. |
|
Response |
withDescription(String description)
Set operation response description. |
|
Response |
withHeaders(List<ParameterContract> headers)
Set collection of operation response headers. |
|
Response |
withRepresentations(List<RepresentationContract> representations)
Set collection of operation response representations. |
|
Response |
withStatusCode(int statusCode)
Set operation response HTTP status code. |
Methods inherited from java.lang.Object
Constructor Details
ResponseContract
public ResponseContract()
Method Details
description
public String description()
Get operation response description.
Returns:
headers
public List<ParameterContract> headers()
Get collection of operation response headers.
Returns:
representations
public List<RepresentationContract> representations()
Get collection of operation response representations.
Returns:
statusCode
public int statusCode()
Get operation response HTTP status code.
Returns:
withDescription
public ResponseContract withDescription(String description)
Set operation response description.
Parameters:
Returns:
withHeaders
public ResponseContract withHeaders(List<ParameterContract> headers)
Set collection of operation response headers.
Parameters:
Returns:
withRepresentations
public ResponseContract withRepresentations(List<RepresentationContract> representations)
Set collection of operation response representations.
Parameters:
Returns:
withStatusCode
public ResponseContract withStatusCode(int statusCode)
Set operation response HTTP status code.
Parameters:
Returns: