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

com.azure.resourcemanager.eventgrid.models.DeliveryAttributeMapping 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.Fluent;
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;

/**
 * Delivery attribute mapping details.
 */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    property = "type",
    defaultImpl = DeliveryAttributeMapping.class,
    visible = true)
@JsonTypeName("DeliveryAttributeMapping")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "Static", value = StaticDeliveryAttributeMapping.class),
    @JsonSubTypes.Type(name = "Dynamic", value = DynamicDeliveryAttributeMapping.class) })
@Fluent
public class DeliveryAttributeMapping {
    /*
     * Type of the delivery attribute or header name.
     */
    @JsonTypeId
    @JsonProperty(value = "type", required = true)
    private DeliveryAttributeMappingType type;

    /*
     * Name of the delivery attribute or header.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * Creates an instance of DeliveryAttributeMapping class.
     */
    public DeliveryAttributeMapping() {
        this.type = DeliveryAttributeMappingType.fromString("DeliveryAttributeMapping");
    }

    /**
     * Get the type property: Type of the delivery attribute or header name.
     * 
     * @return the type value.
     */
    public DeliveryAttributeMappingType type() {
        return this.type;
    }

    /**
     * Get the name property: Name of the delivery attribute or header.
     * 
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Name of the delivery attribute or header.
     * 
     * @param name the name value to set.
     * @return the DeliveryAttributeMapping object itself.
     */
    public DeliveryAttributeMapping withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy