次の方法で共有


DynamicDeliveryAttributeMapping Class

public final class DynamicDeliveryAttributeMapping
extends DeliveryAttributeMapping

Dynamic delivery attribute mapping details.

Constructor Summary

Constructor Description
DynamicDeliveryAttributeMapping()

Creates an instance of DynamicDeliveryAttributeMapping class.

Method Summary

Modifier and Type Method and Description
static DynamicDeliveryAttributeMapping fromJson(JsonReader jsonReader)

Reads an instance of DynamicDeliveryAttributeMapping from the JsonReader.

String sourceField()

Get the sourceField property: JSON path in the event which contains attribute value.

JsonWriter toJson(JsonWriter jsonWriter)
DeliveryAttributeMappingType type()

Get the type property: Type of the delivery attribute or header name.

void validate()

Validates the instance.

DynamicDeliveryAttributeMapping withName(String name)

Set the name property: Name of the delivery attribute or header.

DynamicDeliveryAttributeMapping withSourceField(String sourceField)

Set the sourceField property: JSON path in the event which contains attribute value.

Methods inherited from DeliveryAttributeMapping

Methods inherited from java.lang.Object

Constructor Details

DynamicDeliveryAttributeMapping

public DynamicDeliveryAttributeMapping()

Creates an instance of DynamicDeliveryAttributeMapping class.

Method Details

fromJson

public static DynamicDeliveryAttributeMapping fromJson(JsonReader jsonReader)

Reads an instance of DynamicDeliveryAttributeMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

sourceField

public String sourceField()

Get the sourceField property: JSON path in the event which contains attribute value.

Returns:

the sourceField value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DynamicDeliveryAttributeMapping.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public DeliveryAttributeMappingType type()

Get the type property: Type of the delivery attribute or header name.

Overrides:

DynamicDeliveryAttributeMapping.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

DynamicDeliveryAttributeMapping.validate()

withName

public DynamicDeliveryAttributeMapping withName(String name)

Set the name property: Name of the delivery attribute or header.

Overrides:

DynamicDeliveryAttributeMapping.withName(String name)

Parameters:

name

withSourceField

public DynamicDeliveryAttributeMapping withSourceField(String sourceField)

Set the sourceField property: JSON path in the event which contains attribute value.

Parameters:

sourceField - the sourceField value to set.

Returns:

the DynamicDeliveryAttributeMapping object itself.

Applies to