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

com.pulumi.azurenative.iotoperations.inputs.TlsPropertiesArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.iotoperations.enums.OperationalMode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Tls properties
 * 
 */
public final class TlsPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final TlsPropertiesArgs Empty = new TlsPropertiesArgs();

    /**
     * Mode for TLS.
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return Mode for TLS.
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * Trusted CA certificate config map.
     * 
     */
    @Import(name="trustedCaCertificateConfigMapRef")
    private @Nullable Output trustedCaCertificateConfigMapRef;

    /**
     * @return Trusted CA certificate config map.
     * 
     */
    public Optional> trustedCaCertificateConfigMapRef() {
        return Optional.ofNullable(this.trustedCaCertificateConfigMapRef);
    }

    private TlsPropertiesArgs() {}

    private TlsPropertiesArgs(TlsPropertiesArgs $) {
        this.mode = $.mode;
        this.trustedCaCertificateConfigMapRef = $.trustedCaCertificateConfigMapRef;
    }

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

    public static final class Builder {
        private TlsPropertiesArgs $;

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

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

        /**
         * @param mode Mode for TLS.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

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

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

        /**
         * @param mode Mode for TLS.
         * 
         * @return builder
         * 
         */
        public Builder mode(OperationalMode mode) {
            return mode(Either.ofRight(mode));
        }

        /**
         * @param trustedCaCertificateConfigMapRef Trusted CA certificate config map.
         * 
         * @return builder
         * 
         */
        public Builder trustedCaCertificateConfigMapRef(@Nullable Output trustedCaCertificateConfigMapRef) {
            $.trustedCaCertificateConfigMapRef = trustedCaCertificateConfigMapRef;
            return this;
        }

        /**
         * @param trustedCaCertificateConfigMapRef Trusted CA certificate config map.
         * 
         * @return builder
         * 
         */
        public Builder trustedCaCertificateConfigMapRef(String trustedCaCertificateConfigMapRef) {
            return trustedCaCertificateConfigMapRef(Output.of(trustedCaCertificateConfigMapRef));
        }

        public TlsPropertiesArgs build() {
            $.mode = Codegen.stringProp("mode").left(OperationalMode.class).output().arg($.mode).def("Enabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy