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

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

// *** 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Static delivery attribute mapping details.
 * 
 */
public final class StaticDeliveryAttributeMappingArgs extends com.pulumi.resources.ResourceArgs {

    public static final StaticDeliveryAttributeMappingArgs Empty = new StaticDeliveryAttributeMappingArgs();

    /**
     * Boolean flag to tell if the attribute contains sensitive information .
     * 
     */
    @Import(name="isSecret")
    private @Nullable Output isSecret;

    /**
     * @return Boolean flag to tell if the attribute contains sensitive information .
     * 
     */
    public Optional> isSecret() {
        return Optional.ofNullable(this.isSecret);
    }

    /**
     * Name of the delivery attribute or header.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the delivery attribute or header.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Type of the delivery attribute or header name.
     * Expected value is 'Static'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of the delivery attribute or header name.
     * Expected value is 'Static'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Value of the delivery attribute.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return Value of the delivery attribute.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private StaticDeliveryAttributeMappingArgs() {}

    private StaticDeliveryAttributeMappingArgs(StaticDeliveryAttributeMappingArgs $) {
        this.isSecret = $.isSecret;
        this.name = $.name;
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private StaticDeliveryAttributeMappingArgs $;

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

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

        /**
         * @param isSecret Boolean flag to tell if the attribute contains sensitive information .
         * 
         * @return builder
         * 
         */
        public Builder isSecret(@Nullable Output isSecret) {
            $.isSecret = isSecret;
            return this;
        }

        /**
         * @param isSecret Boolean flag to tell if the attribute contains sensitive information .
         * 
         * @return builder
         * 
         */
        public Builder isSecret(Boolean isSecret) {
            return isSecret(Output.of(isSecret));
        }

        /**
         * @param name Name of the delivery attribute or header.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the delivery attribute or header.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param type Type of the delivery attribute or header name.
         * Expected value is 'Static'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the delivery attribute or header name.
         * Expected value is 'Static'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param value Value of the delivery attribute.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Value of the delivery attribute.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public StaticDeliveryAttributeMappingArgs build() {
            $.isSecret = Codegen.booleanProp("isSecret").output().arg($.isSecret).def(false).getNullable();
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy