azure-docs-sdk-java/legacy/docs-ref-autogen/com.microsoft.azure.managem...

84 строки
7.1 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault"
fullName: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault"
name: "JsonFieldWithDefault"
nameWithType: "JsonFieldWithDefault"
summary: "This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"java.lang.Object.clone()?alt=java.lang.Object.clone&text=clone\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.equals(java.lang.Object)?alt=java.lang.Object.equals&text=equals\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.finalize()?alt=java.lang.Object.finalize&text=finalize\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.getClass()?alt=java.lang.Object.getClass&text=getClass\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.hashCode()?alt=java.lang.Object.hashCode&text=hashCode\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notify()?alt=java.lang.Object.notify&text=notify\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notifyAll()?alt=java.lang.Object.notifyAll&text=notifyAll\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.toString()?alt=java.lang.Object.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait()?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long,int)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
syntax: "public class **JsonFieldWithDefault**"
constructors:
- uid: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.JsonFieldWithDefault()"
fullName: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.JsonFieldWithDefault()"
name: "JsonFieldWithDefault()"
nameWithType: "JsonFieldWithDefault.JsonFieldWithDefault()"
syntax: "public JsonFieldWithDefault()"
methods:
- uid: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.defaultValue()"
fullName: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.defaultValue()"
name: "defaultValue()"
nameWithType: "JsonFieldWithDefault.defaultValue()"
summary: "Get the default value to be used for mapping when a Source<wbr>Field is not provided or if there's no property with the specified name in the published JSON event payload."
syntax: "public String defaultValue()"
desc: "Get the default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload."
returns:
description: "the defaultValue value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.sourceField()"
fullName: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.sourceField()"
name: "sourceField()"
nameWithType: "JsonFieldWithDefault.sourceField()"
summary: "Get name of a field in the input event schema that's to be used as the source of a mapping."
syntax: "public String sourceField()"
desc: "Get name of a field in the input event schema that's to be used as the source of a mapping."
returns:
description: "the sourceField value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.withDefaultValue(java.lang.String)"
fullName: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.withDefaultValue(String defaultValue)"
name: "withDefaultValue(String defaultValue)"
nameWithType: "JsonFieldWithDefault.withDefaultValue(String defaultValue)"
summary: "Set the default value to be used for mapping when a Source<wbr>Field is not provided or if there's no property with the specified name in the published JSON event payload."
parameters:
- description: "the defaultValue value to set"
name: "defaultValue"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonFieldWithDefault withDefaultValue(String defaultValue)"
desc: "Set the default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload."
returns:
description: "the JsonFieldWithDefault object itself."
type: "<xref href=\"com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault?alt=com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault&text=JsonFieldWithDefault\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.withSourceField(java.lang.String)"
fullName: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault.withSourceField(String sourceField)"
name: "withSourceField(String sourceField)"
nameWithType: "JsonFieldWithDefault.withSourceField(String sourceField)"
summary: "Set name of a field in the input event schema that's to be used as the source of a mapping."
parameters:
- description: "the sourceField value to set"
name: "sourceField"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonFieldWithDefault withSourceField(String sourceField)"
desc: "Set name of a field in the input event schema that's to be used as the source of a mapping."
returns:
description: "the JsonFieldWithDefault object itself."
type: "<xref href=\"com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault?alt=com.microsoft.azure.management.eventgrid.v2020_04_01_preview.JsonFieldWithDefault&text=JsonFieldWithDefault\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'subject', 'eventtype' and 'dataversion' properties. This represents a field in the input event schema along with a default value to be used, and at least one of these two properties should be provided."
metadata: {}
package: "com.microsoft.azure.management.eventgrid.v2020_04_01_preview"
artifact: com.microsoft.azure.eventgrid.v2020_04_01_preview:azure-mgmt-eventgrid:1.0.0-beta-3