| Package | Description |
|---|---|
| com.azure.core.models |
Package containing core model classes.
|
| com.azure.core.util |
Package containing core utility classes.
|
| 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.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.