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

com.pulumi.sumologic.CloudToCloudSourceArgs 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.sumologic;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;


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

    public static final CloudToCloudSourceArgs Empty = new CloudToCloudSourceArgs();

    @Import(name="collectorId", required=true)
    private Output collectorId;

    public Output collectorId() {
        return this.collectorId;
    }

    /**
     * This is a JSON object which contains the configuration parameters for the Source. Each schema type requires different JSON parameters. Refer to `JSON Configuration` and `Config Parameters` sections in the integration page for the specific `type` you have chosen to create.
     * 
     */
    @Import(name="config", required=true)
    private Output config;

    /**
     * @return This is a JSON object which contains the configuration parameters for the Source. Each schema type requires different JSON parameters. Refer to `JSON Configuration` and `Config Parameters` sections in the integration page for the specific `type` you have chosen to create.
     * 
     */
    public Output config() {
        return this.config;
    }

    /**
     * Source schema details.
     * 
     */
    @Import(name="schemaRef", required=true)
    private Output> schemaRef;

    /**
     * @return Source schema details.
     * 
     */
    public Output> schemaRef() {
        return this.schemaRef;
    }

    private CloudToCloudSourceArgs() {}

    private CloudToCloudSourceArgs(CloudToCloudSourceArgs $) {
        this.collectorId = $.collectorId;
        this.config = $.config;
        this.schemaRef = $.schemaRef;
    }

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

    public static final class Builder {
        private CloudToCloudSourceArgs $;

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

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

        public Builder collectorId(Output collectorId) {
            $.collectorId = collectorId;
            return this;
        }

        public Builder collectorId(Integer collectorId) {
            return collectorId(Output.of(collectorId));
        }

        /**
         * @param config This is a JSON object which contains the configuration parameters for the Source. Each schema type requires different JSON parameters. Refer to `JSON Configuration` and `Config Parameters` sections in the integration page for the specific `type` you have chosen to create.
         * 
         * @return builder
         * 
         */
        public Builder config(Output config) {
            $.config = config;
            return this;
        }

        /**
         * @param config This is a JSON object which contains the configuration parameters for the Source. Each schema type requires different JSON parameters. Refer to `JSON Configuration` and `Config Parameters` sections in the integration page for the specific `type` you have chosen to create.
         * 
         * @return builder
         * 
         */
        public Builder config(String config) {
            return config(Output.of(config));
        }

        /**
         * @param schemaRef Source schema details.
         * 
         * @return builder
         * 
         */
        public Builder schemaRef(Output> schemaRef) {
            $.schemaRef = schemaRef;
            return this;
        }

        /**
         * @param schemaRef Source schema details.
         * 
         * @return builder
         * 
         */
        public Builder schemaRef(Map schemaRef) {
            return schemaRef(Output.of(schemaRef));
        }

        public CloudToCloudSourceArgs build() {
            if ($.collectorId == null) {
                throw new MissingRequiredPropertyException("CloudToCloudSourceArgs", "collectorId");
            }
            if ($.config == null) {
                throw new MissingRequiredPropertyException("CloudToCloudSourceArgs", "config");
            }
            if ($.schemaRef == null) {
                throw new MissingRequiredPropertyException("CloudToCloudSourceArgs", "schemaRef");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy