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

com.pulumi.azurenative.securityinsights.inputs.SapControlConnectorArgs Maven / Gradle / Ivy

The 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.securityinsights.inputs;

import com.pulumi.azurenative.securityinsights.enums.HttpsConfigurationType;
import com.pulumi.core.Either;
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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes the SapControl connector configuration.
 * 
 */
public final class SapControlConnectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final SapControlConnectorArgs Empty = new SapControlConnectorArgs();

    /**
     * Represents the types of HTTPS configuration to connect to the SapControl service.
     * 
     */
    @Import(name="httpsConfiguration")
    private @Nullable Output> httpsConfiguration;

    /**
     * @return Represents the types of HTTPS configuration to connect to the SapControl service.
     * 
     */
    public Optional>> httpsConfiguration() {
        return Optional.ofNullable(this.httpsConfiguration);
    }

    /**
     * The instance number. Only 2 digits are allowed.
     * 
     */
    @Import(name="instance", required=true)
    private Output instance;

    /**
     * @return The instance number. Only 2 digits are allowed.
     * 
     */
    public Output instance() {
        return this.instance;
    }

    /**
     * The port of the SOAP connection to SAP Control.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return The port of the SOAP connection to SAP Control.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * The server name.
     * FQDN or IP address.
     * 
     */
    @Import(name="server", required=true)
    private Output server;

    /**
     * @return The server name.
     * FQDN or IP address.
     * 
     */
    public Output server() {
        return this.server;
    }

    /**
     * The timezone.
     * example: "GMT+0" or "GMT-8"
     * default: "GMT+0"
     * 
     */
    @Import(name="timezone")
    private @Nullable Output timezone;

    /**
     * @return The timezone.
     * example: "GMT+0" or "GMT-8"
     * default: "GMT+0"
     * 
     */
    public Optional> timezone() {
        return Optional.ofNullable(this.timezone);
    }

    /**
     * Represents the types of SAP systems.
     * Expected value is 'SapControl'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Represents the types of SAP systems.
     * Expected value is 'SapControl'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private SapControlConnectorArgs() {}

    private SapControlConnectorArgs(SapControlConnectorArgs $) {
        this.httpsConfiguration = $.httpsConfiguration;
        this.instance = $.instance;
        this.port = $.port;
        this.server = $.server;
        this.timezone = $.timezone;
        this.type = $.type;
    }

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

    public static final class Builder {
        private SapControlConnectorArgs $;

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

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

        /**
         * @param httpsConfiguration Represents the types of HTTPS configuration to connect to the SapControl service.
         * 
         * @return builder
         * 
         */
        public Builder httpsConfiguration(@Nullable Output> httpsConfiguration) {
            $.httpsConfiguration = httpsConfiguration;
            return this;
        }

        /**
         * @param httpsConfiguration Represents the types of HTTPS configuration to connect to the SapControl service.
         * 
         * @return builder
         * 
         */
        public Builder httpsConfiguration(Either httpsConfiguration) {
            return httpsConfiguration(Output.of(httpsConfiguration));
        }

        /**
         * @param httpsConfiguration Represents the types of HTTPS configuration to connect to the SapControl service.
         * 
         * @return builder
         * 
         */
        public Builder httpsConfiguration(String httpsConfiguration) {
            return httpsConfiguration(Either.ofLeft(httpsConfiguration));
        }

        /**
         * @param httpsConfiguration Represents the types of HTTPS configuration to connect to the SapControl service.
         * 
         * @return builder
         * 
         */
        public Builder httpsConfiguration(HttpsConfigurationType httpsConfiguration) {
            return httpsConfiguration(Either.ofRight(httpsConfiguration));
        }

        /**
         * @param instance The instance number. Only 2 digits are allowed.
         * 
         * @return builder
         * 
         */
        public Builder instance(Output instance) {
            $.instance = instance;
            return this;
        }

        /**
         * @param instance The instance number. Only 2 digits are allowed.
         * 
         * @return builder
         * 
         */
        public Builder instance(String instance) {
            return instance(Output.of(instance));
        }

        /**
         * @param port The port of the SOAP connection to SAP Control.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The port of the SOAP connection to SAP Control.
         * 
         * @return builder
         * 
         */
        public Builder port(String port) {
            return port(Output.of(port));
        }

        /**
         * @param server The server name.
         * FQDN or IP address.
         * 
         * @return builder
         * 
         */
        public Builder server(Output server) {
            $.server = server;
            return this;
        }

        /**
         * @param server The server name.
         * FQDN or IP address.
         * 
         * @return builder
         * 
         */
        public Builder server(String server) {
            return server(Output.of(server));
        }

        /**
         * @param timezone The timezone.
         * example: "GMT+0" or "GMT-8"
         * default: "GMT+0"
         * 
         * @return builder
         * 
         */
        public Builder timezone(@Nullable Output timezone) {
            $.timezone = timezone;
            return this;
        }

        /**
         * @param timezone The timezone.
         * example: "GMT+0" or "GMT-8"
         * default: "GMT+0"
         * 
         * @return builder
         * 
         */
        public Builder timezone(String timezone) {
            return timezone(Output.of(timezone));
        }

        /**
         * @param type Represents the types of SAP systems.
         * Expected value is 'SapControl'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Represents the types of SAP systems.
         * Expected value is 'SapControl'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public SapControlConnectorArgs build() {
            if ($.instance == null) {
                throw new MissingRequiredPropertyException("SapControlConnectorArgs", "instance");
            }
            if ($.server == null) {
                throw new MissingRequiredPropertyException("SapControlConnectorArgs", "server");
            }
            $.timezone = Codegen.stringProp("timezone").output().arg($.timezone).def("GMT+0").getNullable();
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy