azure-docs-sdk-java/docs-ref-autogen/com.azure.core.models.Cloud...

87 строки
7.5 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.models.CloudEventDataFormat"
fullName: "com.azure.core.models.CloudEventDataFormat"
name: "CloudEventDataFormat"
nameWithType: "CloudEventDataFormat"
summary: "Representation of the data format for a <xref uid=\"com.azure.core.models.CloudEvent\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CloudEvent\"></xref>."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.azure.core.util.ExpandableStringEnum?alt=com.azure.core.util.ExpandableStringEnum&text=ExpandableStringEnum\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.<T>fromString(java.lang.String,java.lang.Class<T>)?alt=com.azure.core.util.ExpandableStringEnum.<T>fromString&text=<T>fromString\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.<T>values(java.lang.Class<T>)?alt=com.azure.core.util.ExpandableStringEnum.<T>values&text=<T>values\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.equals(java.lang.Object)?alt=com.azure.core.util.ExpandableStringEnum.equals&text=equals\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.getValue()?alt=com.azure.core.util.ExpandableStringEnum.getValue&text=getValue\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.hashCode()?alt=com.azure.core.util.ExpandableStringEnum.hashCode&text=hashCode\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.util.ExpandableStringEnum.toString()?alt=com.azure.core.util.ExpandableStringEnum.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **CloudEventDataFormat**</br> extends <xref href=\"com.azure.core.util.ExpandableStringEnum?alt=com.azure.core.util.ExpandableStringEnum&text=ExpandableStringEnum\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.core.models.CloudEventDataFormat?alt=com.azure.core.models.CloudEventDataFormat&text=CloudEventDataFormat\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.core.models.CloudEventDataFormat.CloudEventDataFormat()"
fullName: "com.azure.core.models.CloudEventDataFormat.CloudEventDataFormat()"
name: "CloudEventDataFormat()"
nameWithType: "CloudEventDataFormat.CloudEventDataFormat()"
summary: "Creates a new instance of <xref uid=\"com.azure.core.models.CloudEventDataFormat\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CloudEventDataFormat\"></xref> without a <xref uid=\"com.azure.core.models.CloudEventDataFormat.toString*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#toString()\"></xref> value."
deprecatedTag: "Use one of the constants or the <xref uid=\"com.azure.core.models.CloudEventDataFormat.fromString(java.lang.String)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#fromString(String)\"></xref> factory method."
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public CloudEventDataFormat()"
desc: "Creates a new instance of <xref uid=\"com.azure.core.models.CloudEventDataFormat\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CloudEventDataFormat\"></xref> without a <xref uid=\"com.azure.core.models.CloudEventDataFormat.toString*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#toString()\"></xref> value.\n\nThis constructor shouldn't be called as it will produce a <xref uid=\"com.azure.core.models.CloudEventDataFormat\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CloudEventDataFormat\"></xref> which doesn't have a String enum value."
hasDeprecatedTag: true
fields:
- uid: "com.azure.core.models.CloudEventDataFormat.BYTES"
fullName: "com.azure.core.models.CloudEventDataFormat.BYTES"
name: "BYTES"
nameWithType: "CloudEventDataFormat.BYTES"
summary: "Bytes format."
modifiers:
- "static"
- "final"
field:
type: "<xref href=\"com.azure.core.models.CloudEventDataFormat?alt=com.azure.core.models.CloudEventDataFormat&text=CloudEventDataFormat\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static final CloudEventDataFormat BYTES"
desc: "Bytes format."
- uid: "com.azure.core.models.CloudEventDataFormat.JSON"
fullName: "com.azure.core.models.CloudEventDataFormat.JSON"
name: "JSON"
nameWithType: "CloudEventDataFormat.JSON"
summary: "JSON format."
modifiers:
- "static"
- "final"
field:
type: "<xref href=\"com.azure.core.models.CloudEventDataFormat?alt=com.azure.core.models.CloudEventDataFormat&text=CloudEventDataFormat\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static final CloudEventDataFormat JSON"
desc: "JSON format."
methods:
- uid: "com.azure.core.models.CloudEventDataFormat.fromString(java.lang.String)"
fullName: "com.azure.core.models.CloudEventDataFormat.fromString(String name)"
name: "fromString(String name)"
nameWithType: "CloudEventDataFormat.fromString(String name)"
summary: "Creates or gets a Cloud<wbr>Event<wbr>Data<wbr>Format from its string representation."
modifiers:
- "static"
parameters:
- description: "Name of the CloudEventDataFormat."
name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public static CloudEventDataFormat fromString(String name)"
desc: "Creates or gets a CloudEventDataFormat from its string representation."
returns:
description: "The corresponding CloudEventDataFormat."
type: "<xref href=\"com.azure.core.models.CloudEventDataFormat?alt=com.azure.core.models.CloudEventDataFormat&text=CloudEventDataFormat\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Representation of the data format for a <xref uid=\"com.azure.core.models.CloudEvent\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CloudEvent\"></xref>.\n\nWhen constructing a <xref uid=\"com.azure.core.models.CloudEvent\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CloudEvent\"></xref> this is passed to determine the serialized format of the event's data. If <xref uid=\"com.azure.core.models.CloudEventDataFormat.BYTES\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#BYTES\"></xref> is used the data will be stored as a Base64 encoded string, otherwise it will be stored as a JSON serialized object."
metadata: {}
package: "com.azure.core.models"
artifact: com.azure:azure-core:1.52.0