
com.azure.resourcemanager.eventgrid.models.DeadLetterDestination 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.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeId;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Information about the dead letter destination for an event subscription. To configure a deadletter destination, do
* not directly instantiate an object of this class. Instead, instantiate an object of a derived class. Currently,
* StorageBlobDeadLetterDestination is the only class that derives from this class.
*/
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
property = "endpointType",
defaultImpl = DeadLetterDestination.class,
visible = true)
@JsonTypeName("DeadLetterDestination")
@JsonSubTypes({ @JsonSubTypes.Type(name = "StorageBlob", value = StorageBlobDeadLetterDestination.class) })
@Immutable
public class DeadLetterDestination {
/*
* Type of the endpoint for the dead letter destination
*/
@JsonTypeId
@JsonProperty(value = "endpointType", required = true)
private DeadLetterEndPointType endpointType;
/**
* Creates an instance of DeadLetterDestination class.
*/
public DeadLetterDestination() {
this.endpointType = DeadLetterEndPointType.fromString("DeadLetterDestination");
}
/**
* Get the endpointType property: Type of the endpoint for the dead letter destination.
*
* @return the endpointType value.
*/
public DeadLetterEndPointType endpointType() {
return this.endpointType;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy