// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Properties of dynamic delivery attribute mapping. */
@Fluent
public final class DynamicDeliveryAttributeMappingProperties {
    /*
     * JSON path in the event which contains attribute value.
     */
    @JsonProperty(value = "sourceField")
    private String sourceField;

    /** Creates an instance of DynamicDeliveryAttributeMappingProperties class. */
    public DynamicDeliveryAttributeMappingProperties() {
    }

    /**
     * Get the sourceField property: JSON path in the event which contains attribute value.
     *
     * @return the sourceField value.
     */
    public String sourceField() {
        return this.sourceField;
    }

    /**
     * Set the sourceField property: JSON path in the event which contains attribute value.
     *
     * @param sourceField the sourceField value to set.
     * @return the DynamicDeliveryAttributeMappingProperties object itself.
     */
    public DynamicDeliveryAttributeMappingProperties withSourceField(String sourceField) {
        this.sourceField = sourceField;
        return this;
    }

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