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

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

There is a newer version: 2.78.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.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'id', 'topic' and 'eventtime' properties. This represents a field in the input event schema.
 * 
 */
public final class JsonFieldArgs extends com.pulumi.resources.ResourceArgs {

    public static final JsonFieldArgs Empty = new JsonFieldArgs();

    /**
     * Name of a field in the input event schema that's to be used as the source of a mapping.
     * 
     */
    @Import(name="sourceField")
    private @Nullable Output sourceField;

    /**
     * @return Name of a field in the input event schema that's to be used as the source of a mapping.
     * 
     */
    public Optional> sourceField() {
        return Optional.ofNullable(this.sourceField);
    }

    private JsonFieldArgs() {}

    private JsonFieldArgs(JsonFieldArgs $) {
        this.sourceField = $.sourceField;
    }

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

    public static final class Builder {
        private JsonFieldArgs $;

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

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

        /**
         * @param sourceField Name of a field in the input event schema that's to be used as the source of a mapping.
         * 
         * @return builder
         * 
         */
        public Builder sourceField(@Nullable Output sourceField) {
            $.sourceField = sourceField;
            return this;
        }

        /**
         * @param sourceField Name of a field in the input event schema that's to be used as the source of a mapping.
         * 
         * @return builder
         * 
         */
        public Builder sourceField(String sourceField) {
            return sourceField(Output.of(sourceField));
        }

        public JsonFieldArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy