Package | Description |
---|---|
com.azure.core.http.rest |
Package containing REST-related APIs.
|
com.azure.core.models |
Package containing core model classes.
|
com.azure.core.util |
Package containing core utility classes.
|
Modifier and Type | Method and Description |
---|---|
RequestOptions |
RequestOptions.setBody(BinaryData requestBody)
Sets the body to send as part of the HTTP request.
|
Modifier and Type | Method and Description |
---|---|
BinaryData |
CloudEvent.getData()
Get the data associated with this event as a
BinaryData , which has API to deserialize the data into
a String, an Object, or a byte[]. |
Constructor and Description |
---|
CloudEvent(String source,
String type,
BinaryData data,
CloudEventDataFormat format,
String dataContentType)
Create an instance of
CloudEvent . |
Modifier and Type | Method and Description |
---|---|
static BinaryData |
BinaryData.fromBytes(byte[] data)
Creates an instance of
BinaryData from the given byte array. |
static BinaryData |
BinaryData.fromFile(Path file)
Creates a
BinaryData that uses the content of the file at Path as its data. |
static BinaryData |
BinaryData.fromFile(Path file,
int chunkSize)
Creates a
BinaryData that uses the content of the file at file as its data. |
static BinaryData |
BinaryData.fromObject(Object data)
|
static BinaryData |
BinaryData.fromObject(Object data,
ObjectSerializer serializer)
|
static BinaryData |
BinaryData.fromStream(InputStream inputStream)
Creates an instance of
BinaryData from the given InputStream . |
static BinaryData |
BinaryData.fromString(String data)
Creates an instance of
BinaryData from the given String . |
Copyright © 2021 Microsoft Corporation. All rights reserved.