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

com.pulumi.azurenative.iotoperations.inputs.TlsCertMethodArgs 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.iotoperations.inputs;

import com.pulumi.azurenative.iotoperations.enums.TlsCertMethodMode;
import com.pulumi.azurenative.iotoperations.inputs.AutomaticCertMethodArgs;
import com.pulumi.azurenative.iotoperations.inputs.X509ManualCertificateArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Collection of different TLS types, NOTE- Enum at a time only one of them needs to be supported
 * 
 */
public final class TlsCertMethodArgs extends com.pulumi.resources.ResourceArgs {

    public static final TlsCertMethodArgs Empty = new TlsCertMethodArgs();

    /**
     * Option 1 - Automatic TLS server certificate management with cert-manager.
     * 
     */
    @Import(name="automatic")
    private @Nullable Output automatic;

    /**
     * @return Option 1 - Automatic TLS server certificate management with cert-manager.
     * 
     */
    public Optional> automatic() {
        return Optional.ofNullable(this.automatic);
    }

    /**
     * Option 2 - Manual TLS server certificate management through a defined secret.
     * 
     */
    @Import(name="manual")
    private @Nullable Output manual;

    /**
     * @return Option 2 - Manual TLS server certificate management through a defined secret.
     * 
     */
    public Optional> manual() {
        return Optional.ofNullable(this.manual);
    }

    /**
     * Mode of TLS server certificate management.
     * 
     */
    @Import(name="mode", required=true)
    private Output> mode;

    /**
     * @return Mode of TLS server certificate management.
     * 
     */
    public Output> mode() {
        return this.mode;
    }

    private TlsCertMethodArgs() {}

    private TlsCertMethodArgs(TlsCertMethodArgs $) {
        this.automatic = $.automatic;
        this.manual = $.manual;
        this.mode = $.mode;
    }

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

    public static final class Builder {
        private TlsCertMethodArgs $;

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

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

        /**
         * @param automatic Option 1 - Automatic TLS server certificate management with cert-manager.
         * 
         * @return builder
         * 
         */
        public Builder automatic(@Nullable Output automatic) {
            $.automatic = automatic;
            return this;
        }

        /**
         * @param automatic Option 1 - Automatic TLS server certificate management with cert-manager.
         * 
         * @return builder
         * 
         */
        public Builder automatic(AutomaticCertMethodArgs automatic) {
            return automatic(Output.of(automatic));
        }

        /**
         * @param manual Option 2 - Manual TLS server certificate management through a defined secret.
         * 
         * @return builder
         * 
         */
        public Builder manual(@Nullable Output manual) {
            $.manual = manual;
            return this;
        }

        /**
         * @param manual Option 2 - Manual TLS server certificate management through a defined secret.
         * 
         * @return builder
         * 
         */
        public Builder manual(X509ManualCertificateArgs manual) {
            return manual(Output.of(manual));
        }

        /**
         * @param mode Mode of TLS server certificate management.
         * 
         * @return builder
         * 
         */
        public Builder mode(Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Mode of TLS server certificate management.
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode Mode of TLS server certificate management.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode Mode of TLS server certificate management.
         * 
         * @return builder
         * 
         */
        public Builder mode(TlsCertMethodMode mode) {
            return mode(Either.ofRight(mode));
        }

        public TlsCertMethodArgs build() {
            if ($.mode == null) {
                throw new MissingRequiredPropertyException("TlsCertMethodArgs", "mode");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy