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

com.pulumi.azurenative.eventgrid.outputs.JsonInputSchemaMappingResponse 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.outputs;

import com.pulumi.azurenative.eventgrid.outputs.JsonFieldResponse;
import com.pulumi.azurenative.eventgrid.outputs.JsonFieldWithDefaultResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class JsonInputSchemaMappingResponse {
    /**
     * @return The mapping information for the DataVersion property of the Event Grid Event.
     * 
     */
    private @Nullable JsonFieldWithDefaultResponse dataVersion;
    /**
     * @return The mapping information for the EventTime property of the Event Grid Event.
     * 
     */
    private @Nullable JsonFieldResponse eventTime;
    /**
     * @return The mapping information for the EventType property of the Event Grid Event.
     * 
     */
    private @Nullable JsonFieldWithDefaultResponse eventType;
    /**
     * @return The mapping information for the Id property of the Event Grid Event.
     * 
     */
    private @Nullable JsonFieldResponse id;
    /**
     * @return Type of the custom mapping
     * Expected value is 'Json'.
     * 
     */
    private String inputSchemaMappingType;
    /**
     * @return The mapping information for the Subject property of the Event Grid Event.
     * 
     */
    private @Nullable JsonFieldWithDefaultResponse subject;
    /**
     * @return The mapping information for the Topic property of the Event Grid Event.
     * 
     */
    private @Nullable JsonFieldResponse topic;

    private JsonInputSchemaMappingResponse() {}
    /**
     * @return The mapping information for the DataVersion property of the Event Grid Event.
     * 
     */
    public Optional dataVersion() {
        return Optional.ofNullable(this.dataVersion);
    }
    /**
     * @return The mapping information for the EventTime property of the Event Grid Event.
     * 
     */
    public Optional eventTime() {
        return Optional.ofNullable(this.eventTime);
    }
    /**
     * @return The mapping information for the EventType property of the Event Grid Event.
     * 
     */
    public Optional eventType() {
        return Optional.ofNullable(this.eventType);
    }
    /**
     * @return The mapping information for the Id property of the Event Grid Event.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Type of the custom mapping
     * Expected value is 'Json'.
     * 
     */
    public String inputSchemaMappingType() {
        return this.inputSchemaMappingType;
    }
    /**
     * @return The mapping information for the Subject property of the Event Grid Event.
     * 
     */
    public Optional subject() {
        return Optional.ofNullable(this.subject);
    }
    /**
     * @return The mapping information for the Topic property of the Event Grid Event.
     * 
     */
    public Optional topic() {
        return Optional.ofNullable(this.topic);
    }

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

    public static Builder builder(JsonInputSchemaMappingResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable JsonFieldWithDefaultResponse dataVersion;
        private @Nullable JsonFieldResponse eventTime;
        private @Nullable JsonFieldWithDefaultResponse eventType;
        private @Nullable JsonFieldResponse id;
        private String inputSchemaMappingType;
        private @Nullable JsonFieldWithDefaultResponse subject;
        private @Nullable JsonFieldResponse topic;
        public Builder() {}
        public Builder(JsonInputSchemaMappingResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataVersion = defaults.dataVersion;
    	      this.eventTime = defaults.eventTime;
    	      this.eventType = defaults.eventType;
    	      this.id = defaults.id;
    	      this.inputSchemaMappingType = defaults.inputSchemaMappingType;
    	      this.subject = defaults.subject;
    	      this.topic = defaults.topic;
        }

        @CustomType.Setter
        public Builder dataVersion(@Nullable JsonFieldWithDefaultResponse dataVersion) {

            this.dataVersion = dataVersion;
            return this;
        }
        @CustomType.Setter
        public Builder eventTime(@Nullable JsonFieldResponse eventTime) {

            this.eventTime = eventTime;
            return this;
        }
        @CustomType.Setter
        public Builder eventType(@Nullable JsonFieldWithDefaultResponse eventType) {

            this.eventType = eventType;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable JsonFieldResponse id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder inputSchemaMappingType(String inputSchemaMappingType) {
            if (inputSchemaMappingType == null) {
              throw new MissingRequiredPropertyException("JsonInputSchemaMappingResponse", "inputSchemaMappingType");
            }
            this.inputSchemaMappingType = inputSchemaMappingType;
            return this;
        }
        @CustomType.Setter
        public Builder subject(@Nullable JsonFieldWithDefaultResponse subject) {

            this.subject = subject;
            return this;
        }
        @CustomType.Setter
        public Builder topic(@Nullable JsonFieldResponse topic) {

            this.topic = topic;
            return this;
        }
        public JsonInputSchemaMappingResponse build() {
            final var _resultValue = new JsonInputSchemaMappingResponse();
            _resultValue.dataVersion = dataVersion;
            _resultValue.eventTime = eventTime;
            _resultValue.eventType = eventType;
            _resultValue.id = id;
            _resultValue.inputSchemaMappingType = inputSchemaMappingType;
            _resultValue.subject = subject;
            _resultValue.topic = topic;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy