你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResponseContract Class

  • java.lang.Object
    • com.microsoft.azure.management.apimanagement.v2019_01_01.ResponseContract

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<ParameterContract> headers()

Get collection of operation response headers.

java.util.List<RepresentationContract> representations()

Get collection of operation response representations.

int statusCode()

Get operation response HTTP status code.

ResponseContract withDescription(String description)

Set operation response description.

ResponseContract withHeaders(List<ParameterContract> headers)

Set collection of operation response headers.

ResponseContract withRepresentations(List<RepresentationContract> representations)

Set collection of operation response representations.

ResponseContract withStatusCode(int statusCode)

Set operation response HTTP status code.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ResponseContract

public ResponseContract()

Method Details

description

public String description()

Get operation response description.

Returns:

the description value

headers

public List<ParameterContract> headers()

Get collection of operation response headers.

Returns:

the headers value

representations

public List<RepresentationContract> representations()

Get collection of operation response representations.

Returns:

the representations value

statusCode

public int statusCode()

Get operation response HTTP status code.

Returns:

the statusCode value

withDescription

public ResponseContract withDescription(String description)

Set operation response description.

Parameters:

description - the description value to set

Returns:

the ResponseContract object itself.

withHeaders

public ResponseContract withHeaders(List<ParameterContract> headers)

Set collection of operation response headers.

Parameters:

headers - the headers value to set

Returns:

the ResponseContract object itself.

withRepresentations

public ResponseContract withRepresentations(List<RepresentationContract> representations)

Set collection of operation response representations.

Parameters:

representations - the representations value to set

Returns:

the ResponseContract object itself.

withStatusCode

public ResponseContract withStatusCode(int statusCode)

Set operation response HTTP status code.

Parameters:

statusCode - the statusCode value to set

Returns:

the ResponseContract object itself.

Applies to