// 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;

/** The DynamicRoutingEnrichment model. */
@Fluent
public final class DynamicRoutingEnrichment {
    /*
     * Dynamic routing enrichment key.
     */
    @JsonProperty(value = "key")
    private String key;

    /*
     * Dynamic routing enrichment value.
     */
    @JsonProperty(value = "value")
    private String value;

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

    /**
     * Get the key property: Dynamic routing enrichment key.
     *
     * @return the key value.
     */
    public String key() {
        return this.key;
    }

    /**
     * Set the key property: Dynamic routing enrichment key.
     *
     * @param key the key value to set.
     * @return the DynamicRoutingEnrichment object itself.
     */
    public DynamicRoutingEnrichment withKey(String key) {
        this.key = key;
        return this;
    }

    /**
     * Get the value property: Dynamic routing enrichment value.
     *
     * @return the value value.
     */
    public String value() {
        return this.value;
    }

    /**
     * Set the value property: Dynamic routing enrichment value.
     *
     * @param value the value value to set.
     * @return the DynamicRoutingEnrichment object itself.
     */
    public DynamicRoutingEnrichment withValue(String value) {
        this.value = value;
        return this;
    }

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