Share via


DeliveryConfiguration Class

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

Implements

public final class DeliveryConfiguration
implements JsonSerializable<DeliveryConfiguration>

Properties of the delivery configuration information of the event subscription.

Constructor Summary

Constructor Description
DeliveryConfiguration()

Creates an instance of DeliveryConfiguration class.

Method Summary

Modifier and Type Method and Description
DeliveryMode deliveryMode()

Get the deliveryMode property: Delivery mode of the event subscription.

static DeliveryConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DeliveryConfiguration from the JsonReader.

PushInfo push()

Get the push property: This property should be populated when deliveryMode is push and represents information about the push subscription.

QueueInfo queue()

Get the queue property: This property should be populated when deliveryMode is queue and represents information about the queue subscription.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DeliveryConfiguration withDeliveryMode(DeliveryMode deliveryMode)

Set the deliveryMode property: Delivery mode of the event subscription.

DeliveryConfiguration withPush(PushInfo push)

Set the push property: This property should be populated when deliveryMode is push and represents information about the push subscription.

DeliveryConfiguration withQueue(QueueInfo queue)

Set the queue property: This property should be populated when deliveryMode is queue and represents information about the queue subscription.

Methods inherited from java.lang.Object

Constructor Details

DeliveryConfiguration

public DeliveryConfiguration()

Creates an instance of DeliveryConfiguration class.

Method Details

deliveryMode

public DeliveryMode deliveryMode()

Get the deliveryMode property: Delivery mode of the event subscription.

Returns:

the deliveryMode value.

fromJson

public static DeliveryConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DeliveryConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

push

public PushInfo push()

Get the push property: This property should be populated when deliveryMode is push and represents information about the push subscription.

Returns:

the push value.

queue

public QueueInfo queue()

Get the queue property: This property should be populated when deliveryMode is queue and represents information about the queue subscription.

Returns:

the queue value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDeliveryMode

public DeliveryConfiguration withDeliveryMode(DeliveryMode deliveryMode)

Set the deliveryMode property: Delivery mode of the event subscription.

Parameters:

deliveryMode - the deliveryMode value to set.

Returns:

the DeliveryConfiguration object itself.

withPush

public DeliveryConfiguration withPush(PushInfo push)

Set the push property: This property should be populated when deliveryMode is push and represents information about the push subscription.

Parameters:

push - the push value to set.

Returns:

the DeliveryConfiguration object itself.

withQueue

public DeliveryConfiguration withQueue(QueueInfo queue)

Set the queue property: This property should be populated when deliveryMode is queue and represents information about the queue subscription.

Parameters:

queue - the queue value to set.

Returns:

the DeliveryConfiguration object itself.

Applies to