
com.azure.resourcemanager.eventgrid.models.SubscriptionUpdateParameters 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.azure.resourcemanager.eventgrid.fluent.models.SubscriptionUpdateParametersProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/**
* Properties of the Event Subscription update.
*/
@Fluent
public final class SubscriptionUpdateParameters {
/*
* Properties of the Event Subscription update parameters.
*/
@JsonProperty(value = "properties")
private SubscriptionUpdateParametersProperties innerProperties;
/**
* Creates an instance of SubscriptionUpdateParameters class.
*/
public SubscriptionUpdateParameters() {
}
/**
* Get the innerProperties property: Properties of the Event Subscription update parameters.
*
* @return the innerProperties value.
*/
private SubscriptionUpdateParametersProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the deliveryConfiguration property: Information about the delivery configuration of the event subscription.
*
* @return the deliveryConfiguration value.
*/
public DeliveryConfiguration deliveryConfiguration() {
return this.innerProperties() == null ? null : this.innerProperties().deliveryConfiguration();
}
/**
* Set the deliveryConfiguration property: Information about the delivery configuration of the event subscription.
*
* @param deliveryConfiguration the deliveryConfiguration value to set.
* @return the SubscriptionUpdateParameters object itself.
*/
public SubscriptionUpdateParameters withDeliveryConfiguration(DeliveryConfiguration deliveryConfiguration) {
if (this.innerProperties() == null) {
this.innerProperties = new SubscriptionUpdateParametersProperties();
}
this.innerProperties().withDeliveryConfiguration(deliveryConfiguration);
return this;
}
/**
* Get the eventDeliverySchema property: The event delivery schema for the event subscription.
*
* @return the eventDeliverySchema value.
*/
public DeliverySchema eventDeliverySchema() {
return this.innerProperties() == null ? null : this.innerProperties().eventDeliverySchema();
}
/**
* Set the eventDeliverySchema property: The event delivery schema for the event subscription.
*
* @param eventDeliverySchema the eventDeliverySchema value to set.
* @return the SubscriptionUpdateParameters object itself.
*/
public SubscriptionUpdateParameters withEventDeliverySchema(DeliverySchema eventDeliverySchema) {
if (this.innerProperties() == null) {
this.innerProperties = new SubscriptionUpdateParametersProperties();
}
this.innerProperties().withEventDeliverySchema(eventDeliverySchema);
return this;
}
/**
* Get the filtersConfiguration property: Information about the filter for the event subscription.
*
* @return the filtersConfiguration value.
*/
public FiltersConfiguration filtersConfiguration() {
return this.innerProperties() == null ? null : this.innerProperties().filtersConfiguration();
}
/**
* Set the filtersConfiguration property: Information about the filter for the event subscription.
*
* @param filtersConfiguration the filtersConfiguration value to set.
* @return the SubscriptionUpdateParameters object itself.
*/
public SubscriptionUpdateParameters withFiltersConfiguration(FiltersConfiguration filtersConfiguration) {
if (this.innerProperties() == null) {
this.innerProperties = new SubscriptionUpdateParametersProperties();
}
this.innerProperties().withFiltersConfiguration(filtersConfiguration);
return this;
}
/**
* Get the expirationTimeUtc property: Expiration time of the event subscription.
*
* @return the expirationTimeUtc value.
*/
public OffsetDateTime expirationTimeUtc() {
return this.innerProperties() == null ? null : this.innerProperties().expirationTimeUtc();
}
/**
* Set the expirationTimeUtc property: Expiration time of the event subscription.
*
* @param expirationTimeUtc the expirationTimeUtc value to set.
* @return the SubscriptionUpdateParameters object itself.
*/
public SubscriptionUpdateParameters withExpirationTimeUtc(OffsetDateTime expirationTimeUtc) {
if (this.innerProperties() == null) {
this.innerProperties = new SubscriptionUpdateParametersProperties();
}
this.innerProperties().withExpirationTimeUtc(expirationTimeUtc);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy