HttpMessage Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.HttpMessage

Implements

public final class HttpMessage
implements JsonSerializable<HttpMessage>

HTTP message.

Constructor Summary

Constructor Description
HttpMessage()

Creates an instance of HttpMessage class.

Method Summary

Modifier and Type Method and Description
Object content()

Get the content property: HTTP message content.

static HttpMessage fromJson(JsonReader jsonReader)

Reads an instance of HttpMessage from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HttpMessage withContent(Object content)

Set the content property: HTTP message content.

Methods inherited from java.lang.Object

Constructor Details

HttpMessage

public HttpMessage()

Creates an instance of HttpMessage class.

Method Details

content

public Object content()

Get the content property: HTTP message content.

Returns:

the content value.

fromJson

public static HttpMessage fromJson(JsonReader jsonReader)

Reads an instance of HttpMessage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HttpMessage 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 HttpMessage.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContent

public HttpMessage withContent(Object content)

Set the content property: HTTP message content.

Parameters:

content - the content value to set.

Returns:

the HttpMessage object itself.

Applies to