All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.eventgrid.models.PartnerUpdateDestinationInfo Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.2.0-beta.7
Show newest version
// 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;

/**
 * Properties of the corresponding partner destination of a Channel.
 */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    property = "endpointType",
    defaultImpl = PartnerUpdateDestinationInfo.class,
    visible = true)
@JsonTypeName("PartnerUpdateDestinationInfo")
@JsonSubTypes({ @JsonSubTypes.Type(name = "WebHook", value = WebhookUpdatePartnerDestinationInfo.class) })
@Immutable
public class PartnerUpdateDestinationInfo {
    /*
     * Type of the endpoint for the partner destination
     */
    @JsonTypeId
    @JsonProperty(value = "endpointType", required = true)
    private PartnerEndpointType endpointType;

    /**
     * Creates an instance of PartnerUpdateDestinationInfo class.
     */
    public PartnerUpdateDestinationInfo() {
        this.endpointType = PartnerEndpointType.fromString("PartnerUpdateDestinationInfo");
    }

    /**
     * Get the endpointType property: Type of the endpoint for the partner destination.
     * 
     * @return the endpointType value.
     */
    public PartnerEndpointType 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