DeliveryConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. DeliveryConfiguration
- com.
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 Delivery |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Delivery |
deliveryMode()
Get the delivery |
|
static
Delivery |
fromJson(JsonReader jsonReader)
Reads an instance of Delivery |
|
Push |
push()
Get the push property: This property should be populated when delivery |
|
Queue |
queue()
Get the queue property: This property should be populated when delivery |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Delivery |
withDeliveryMode(DeliveryMode deliveryMode)
Set the delivery |
|
Delivery |
withPush(PushInfo push)
Set the push property: This property should be populated when delivery |
|
Delivery |
withQueue(QueueInfo queue)
Set the queue property: This property should be populated when delivery |
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:
fromJson
public static DeliveryConfiguration fromJson(JsonReader jsonReader)
Reads an instance of DeliveryConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
validate
public void validate()
Validates the instance.
withDeliveryMode
public DeliveryConfiguration withDeliveryMode(DeliveryMode deliveryMode)
Set the deliveryMode property: Delivery mode of the event subscription.
Parameters:
Returns:
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:
Returns:
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:
Returns: