
com.azure.resourcemanager.eventgrid.models.DeliveryConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-eventgrid Show documentation
Show all versions of azure-resourcemanager-eventgrid Show documentation
This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2021-10-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Properties of the delivery configuration information of the event subscription.
*/
@Fluent
public final class DeliveryConfiguration {
/*
* Delivery mode of the event subscription.
*/
@JsonProperty(value = "deliveryMode")
private DeliveryMode deliveryMode;
/*
* This property should be populated when deliveryMode is queue and represents information about the queue subscription.
*/
@JsonProperty(value = "queue")
private QueueInfo queue;
/*
* This property should be populated when deliveryMode is push and represents information about the push subscription.
*/
@JsonProperty(value = "push")
private PushInfo push;
/**
* Creates an instance of DeliveryConfiguration class.
*/
public DeliveryConfiguration() {
}
/**
* Get the deliveryMode property: Delivery mode of the event subscription.
*
* @return the deliveryMode value.
*/
public DeliveryMode deliveryMode() {
return this.deliveryMode;
}
/**
* Set the deliveryMode property: Delivery mode of the event subscription.
*
* @param deliveryMode the deliveryMode value to set.
* @return the DeliveryConfiguration object itself.
*/
public DeliveryConfiguration withDeliveryMode(DeliveryMode deliveryMode) {
this.deliveryMode = deliveryMode;
return this;
}
/**
* Get the queue property: This property should be populated when deliveryMode is queue and represents information
* about the queue subscription.
*
* @return the queue value.
*/
public QueueInfo queue() {
return this.queue;
}
/**
* Set the queue property: This property should be populated when deliveryMode is queue and represents information
* about the queue subscription.
*
* @param queue the queue value to set.
* @return the DeliveryConfiguration object itself.
*/
public DeliveryConfiguration withQueue(QueueInfo queue) {
this.queue = queue;
return this;
}
/**
* Get the push property: This property should be populated when deliveryMode is push and represents information
* about the push subscription.
*
* @return the push value.
*/
public PushInfo push() {
return this.push;
}
/**
* Set the push property: This property should be populated when deliveryMode is push and represents information
* about the push subscription.
*
* @param push the push value to set.
* @return the DeliveryConfiguration object itself.
*/
public DeliveryConfiguration withPush(PushInfo push) {
this.push = push;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (queue() != null) {
queue().validate();
}
if (push() != null) {
push().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy