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

com.pulumi.azurenative.appplatform.inputs.GatewayPropertiesClientAuthArgs 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.GatewayCertificateVerification;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Client-Certification Authentication.
 * 
 */
public final class GatewayPropertiesClientAuthArgs extends com.pulumi.resources.ResourceArgs {

    public static final GatewayPropertiesClientAuthArgs Empty = new GatewayPropertiesClientAuthArgs();

    /**
     * Whether to enable certificate verification or not
     * 
     */
    @Import(name="certificateVerification")
    private @Nullable Output> certificateVerification;

    /**
     * @return Whether to enable certificate verification or not
     * 
     */
    public Optional>> certificateVerification() {
        return Optional.ofNullable(this.certificateVerification);
    }

    /**
     * Collection of certificate resource Ids in Azure Spring Apps.
     * 
     */
    @Import(name="certificates")
    private @Nullable Output> certificates;

    /**
     * @return Collection of certificate resource Ids in Azure Spring Apps.
     * 
     */
    public Optional>> certificates() {
        return Optional.ofNullable(this.certificates);
    }

    private GatewayPropertiesClientAuthArgs() {}

    private GatewayPropertiesClientAuthArgs(GatewayPropertiesClientAuthArgs $) {
        this.certificateVerification = $.certificateVerification;
        this.certificates = $.certificates;
    }

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

    public static final class Builder {
        private GatewayPropertiesClientAuthArgs $;

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

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

        /**
         * @param certificateVerification Whether to enable certificate verification or not
         * 
         * @return builder
         * 
         */
        public Builder certificateVerification(@Nullable Output> certificateVerification) {
            $.certificateVerification = certificateVerification;
            return this;
        }

        /**
         * @param certificateVerification Whether to enable certificate verification or not
         * 
         * @return builder
         * 
         */
        public Builder certificateVerification(Either certificateVerification) {
            return certificateVerification(Output.of(certificateVerification));
        }

        /**
         * @param certificateVerification Whether to enable certificate verification or not
         * 
         * @return builder
         * 
         */
        public Builder certificateVerification(String certificateVerification) {
            return certificateVerification(Either.ofLeft(certificateVerification));
        }

        /**
         * @param certificateVerification Whether to enable certificate verification or not
         * 
         * @return builder
         * 
         */
        public Builder certificateVerification(GatewayCertificateVerification certificateVerification) {
            return certificateVerification(Either.ofRight(certificateVerification));
        }

        /**
         * @param certificates Collection of certificate resource Ids in Azure Spring Apps.
         * 
         * @return builder
         * 
         */
        public Builder certificates(@Nullable Output> certificates) {
            $.certificates = certificates;
            return this;
        }

        /**
         * @param certificates Collection of certificate resource Ids in Azure Spring Apps.
         * 
         * @return builder
         * 
         */
        public Builder certificates(List certificates) {
            return certificates(Output.of(certificates));
        }

        /**
         * @param certificates Collection of certificate resource Ids in Azure Spring Apps.
         * 
         * @return builder
         * 
         */
        public Builder certificates(String... certificates) {
            return certificates(List.of(certificates));
        }

        public GatewayPropertiesClientAuthArgs build() {
            $.certificateVerification = Codegen.stringProp("certificateVerification").left(GatewayCertificateVerification.class).output().arg($.certificateVerification).def("Disabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy