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

com.pulumi.azurenative.devopsinfrastructure.inputs.SecretsManagementSettingsArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.devopsinfrastructure.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The secret management settings of the machines in the pool.
 * 
 */
public final class SecretsManagementSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final SecretsManagementSettingsArgs Empty = new SecretsManagementSettingsArgs();

    /**
     * Where to store certificates on the machine.
     * 
     */
    @Import(name="certificateStoreLocation")
    private @Nullable Output certificateStoreLocation;

    /**
     * @return Where to store certificates on the machine.
     * 
     */
    public Optional> certificateStoreLocation() {
        return Optional.ofNullable(this.certificateStoreLocation);
    }

    /**
     * Defines if the key of the certificates should be exportable.
     * 
     */
    @Import(name="keyExportable", required=true)
    private Output keyExportable;

    /**
     * @return Defines if the key of the certificates should be exportable.
     * 
     */
    public Output keyExportable() {
        return this.keyExportable;
    }

    /**
     * The list of certificates to install on all machines in the pool.
     * 
     */
    @Import(name="observedCertificates", required=true)
    private Output> observedCertificates;

    /**
     * @return The list of certificates to install on all machines in the pool.
     * 
     */
    public Output> observedCertificates() {
        return this.observedCertificates;
    }

    private SecretsManagementSettingsArgs() {}

    private SecretsManagementSettingsArgs(SecretsManagementSettingsArgs $) {
        this.certificateStoreLocation = $.certificateStoreLocation;
        this.keyExportable = $.keyExportable;
        this.observedCertificates = $.observedCertificates;
    }

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

    public static final class Builder {
        private SecretsManagementSettingsArgs $;

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

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

        /**
         * @param certificateStoreLocation Where to store certificates on the machine.
         * 
         * @return builder
         * 
         */
        public Builder certificateStoreLocation(@Nullable Output certificateStoreLocation) {
            $.certificateStoreLocation = certificateStoreLocation;
            return this;
        }

        /**
         * @param certificateStoreLocation Where to store certificates on the machine.
         * 
         * @return builder
         * 
         */
        public Builder certificateStoreLocation(String certificateStoreLocation) {
            return certificateStoreLocation(Output.of(certificateStoreLocation));
        }

        /**
         * @param keyExportable Defines if the key of the certificates should be exportable.
         * 
         * @return builder
         * 
         */
        public Builder keyExportable(Output keyExportable) {
            $.keyExportable = keyExportable;
            return this;
        }

        /**
         * @param keyExportable Defines if the key of the certificates should be exportable.
         * 
         * @return builder
         * 
         */
        public Builder keyExportable(Boolean keyExportable) {
            return keyExportable(Output.of(keyExportable));
        }

        /**
         * @param observedCertificates The list of certificates to install on all machines in the pool.
         * 
         * @return builder
         * 
         */
        public Builder observedCertificates(Output> observedCertificates) {
            $.observedCertificates = observedCertificates;
            return this;
        }

        /**
         * @param observedCertificates The list of certificates to install on all machines in the pool.
         * 
         * @return builder
         * 
         */
        public Builder observedCertificates(List observedCertificates) {
            return observedCertificates(Output.of(observedCertificates));
        }

        /**
         * @param observedCertificates The list of certificates to install on all machines in the pool.
         * 
         * @return builder
         * 
         */
        public Builder observedCertificates(String... observedCertificates) {
            return observedCertificates(List.of(observedCertificates));
        }

        public SecretsManagementSettingsArgs build() {
            if ($.keyExportable == null) {
                throw new MissingRequiredPropertyException("SecretsManagementSettingsArgs", "keyExportable");
            }
            if ($.observedCertificates == null) {
                throw new MissingRequiredPropertyException("SecretsManagementSettingsArgs", "observedCertificates");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy