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

com.pulumi.azurenative.appplatform.inputs.ConfigServerPropertiesArgs 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.appplatform.inputs;

import com.pulumi.azurenative.appplatform.enums.ConfigServerEnabledState;
import com.pulumi.azurenative.appplatform.inputs.ConfigServerSettingsArgs;
import com.pulumi.azurenative.appplatform.inputs.ErrorArgs;
import com.pulumi.core.Either;
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;


/**
 * Config server git properties payload
 * 
 */
public final class ConfigServerPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConfigServerPropertiesArgs Empty = new ConfigServerPropertiesArgs();

    /**
     * Settings of config server.
     * 
     */
    @Import(name="configServer")
    private @Nullable Output configServer;

    /**
     * @return Settings of config server.
     * 
     */
    public Optional> configServer() {
        return Optional.ofNullable(this.configServer);
    }

    /**
     * Enabled state of the config server. This is only used in Consumption tier.
     * 
     */
    @Import(name="enabledState")
    private @Nullable Output> enabledState;

    /**
     * @return Enabled state of the config server. This is only used in Consumption tier.
     * 
     */
    public Optional>> enabledState() {
        return Optional.ofNullable(this.enabledState);
    }

    /**
     * Error when apply config server settings.
     * 
     */
    @Import(name="error")
    private @Nullable Output error;

    /**
     * @return Error when apply config server settings.
     * 
     */
    public Optional> error() {
        return Optional.ofNullable(this.error);
    }

    private ConfigServerPropertiesArgs() {}

    private ConfigServerPropertiesArgs(ConfigServerPropertiesArgs $) {
        this.configServer = $.configServer;
        this.enabledState = $.enabledState;
        this.error = $.error;
    }

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

    public static final class Builder {
        private ConfigServerPropertiesArgs $;

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

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

        /**
         * @param configServer Settings of config server.
         * 
         * @return builder
         * 
         */
        public Builder configServer(@Nullable Output configServer) {
            $.configServer = configServer;
            return this;
        }

        /**
         * @param configServer Settings of config server.
         * 
         * @return builder
         * 
         */
        public Builder configServer(ConfigServerSettingsArgs configServer) {
            return configServer(Output.of(configServer));
        }

        /**
         * @param enabledState Enabled state of the config server. This is only used in Consumption tier.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(@Nullable Output> enabledState) {
            $.enabledState = enabledState;
            return this;
        }

        /**
         * @param enabledState Enabled state of the config server. This is only used in Consumption tier.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(Either enabledState) {
            return enabledState(Output.of(enabledState));
        }

        /**
         * @param enabledState Enabled state of the config server. This is only used in Consumption tier.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(String enabledState) {
            return enabledState(Either.ofLeft(enabledState));
        }

        /**
         * @param enabledState Enabled state of the config server. This is only used in Consumption tier.
         * 
         * @return builder
         * 
         */
        public Builder enabledState(ConfigServerEnabledState enabledState) {
            return enabledState(Either.ofRight(enabledState));
        }

        /**
         * @param error Error when apply config server settings.
         * 
         * @return builder
         * 
         */
        public Builder error(@Nullable Output error) {
            $.error = error;
            return this;
        }

        /**
         * @param error Error when apply config server settings.
         * 
         * @return builder
         * 
         */
        public Builder error(ErrorArgs error) {
            return error(Output.of(error));
        }

        public ConfigServerPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy