Share via


DeliveryAttributeMapping Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.DeliveryAttributeMapping

Implements

public class DeliveryAttributeMapping
implements JsonSerializable<DeliveryAttributeMapping>

Delivery attribute mapping details.

Constructor Summary

Constructor Description
DeliveryAttributeMapping()

Creates an instance of DeliveryAttributeMapping class.

Method Summary

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

Reads an instance of DeliveryAttributeMapping from the JsonReader.

String name()

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

JsonWriter toJson(JsonWriter jsonWriter)
DeliveryAttributeMappingType type()

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

void validate()

Validates the instance.

DeliveryAttributeMapping withName(String name)

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

Methods inherited from java.lang.Object

Constructor Details

DeliveryAttributeMapping

public DeliveryAttributeMapping()

Creates an instance of DeliveryAttributeMapping class.

Method Details

fromJson

public static DeliveryAttributeMapping fromJson(JsonReader jsonReader)

Reads an instance of DeliveryAttributeMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

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

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public DeliveryAttributeMappingType type()

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

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public DeliveryAttributeMapping withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the DeliveryAttributeMapping object itself.

Applies to