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

com.pulumi.azurenative.eventgrid.inputs.StaticRoutingEnrichmentArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.eventgrid.inputs;

import com.pulumi.azurenative.eventgrid.enums.StaticRoutingEnrichmentType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class StaticRoutingEnrichmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final StaticRoutingEnrichmentArgs Empty = new StaticRoutingEnrichmentArgs();

    /**
     * Static routing enrichment key.
     * 
     */
    @Import(name="key")
    private @Nullable Output key;

    /**
     * @return Static routing enrichment key.
     * 
     */
    public Optional> key() {
        return Optional.ofNullable(this.key);
    }

    /**
     * Static routing enrichment value type. For e.g. this property value can be 'String'.
     * 
     */
    @Import(name="valueType")
    private @Nullable Output> valueType;

    /**
     * @return Static routing enrichment value type. For e.g. this property value can be 'String'.
     * 
     */
    public Optional>> valueType() {
        return Optional.ofNullable(this.valueType);
    }

    private StaticRoutingEnrichmentArgs() {}

    private StaticRoutingEnrichmentArgs(StaticRoutingEnrichmentArgs $) {
        this.key = $.key;
        this.valueType = $.valueType;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(StaticRoutingEnrichmentArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private StaticRoutingEnrichmentArgs $;

        public Builder() {
            $ = new StaticRoutingEnrichmentArgs();
        }

        public Builder(StaticRoutingEnrichmentArgs defaults) {
            $ = new StaticRoutingEnrichmentArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param key Static routing enrichment key.
         * 
         * @return builder
         * 
         */
        public Builder key(@Nullable Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key Static routing enrichment key.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        /**
         * @param valueType Static routing enrichment value type. For e.g. this property value can be 'String'.
         * 
         * @return builder
         * 
         */
        public Builder valueType(@Nullable Output> valueType) {
            $.valueType = valueType;
            return this;
        }

        /**
         * @param valueType Static routing enrichment value type. For e.g. this property value can be 'String'.
         * 
         * @return builder
         * 
         */
        public Builder valueType(Either valueType) {
            return valueType(Output.of(valueType));
        }

        /**
         * @param valueType Static routing enrichment value type. For e.g. this property value can be 'String'.
         * 
         * @return builder
         * 
         */
        public Builder valueType(String valueType) {
            return valueType(Either.ofLeft(valueType));
        }

        /**
         * @param valueType Static routing enrichment value type. For e.g. this property value can be 'String'.
         * 
         * @return builder
         * 
         */
        public Builder valueType(StaticRoutingEnrichmentType valueType) {
            return valueType(Either.ofRight(valueType));
        }

        public StaticRoutingEnrichmentArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy