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

com.pulumi.azurenative.migrate.inputs.CertArgs 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.migrate.inputs;

import com.pulumi.azurenative.migrate.enums.SecretStoreType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * WebApplication certificate.
 * 
 */
public final class CertArgs extends com.pulumi.resources.ResourceArgs {

    public static final CertArgs Empty = new CertArgs();

    /**
     * Gets or sets the Certificate data.
     * 
     */
    @Import(name="certData")
    private @Nullable Output certData;

    /**
     * @return Gets or sets the Certificate data.
     * 
     */
    public Optional> certData() {
        return Optional.ofNullable(this.certData);
    }

    /**
     * Gets or sets a value indicating whether certificate is needed or not.
     * 
     */
    @Import(name="certNeeded")
    private @Nullable Output certNeeded;

    /**
     * @return Gets or sets a value indicating whether certificate is needed or not.
     * 
     */
    public Optional> certNeeded() {
        return Optional.ofNullable(this.certNeeded);
    }

    /**
     * Gets or sets a value indicating whether certificate is provided or not.
     * 
     */
    @Import(name="certProvided")
    private @Nullable Output certProvided;

    /**
     * @return Gets or sets a value indicating whether certificate is provided or not.
     * 
     */
    public Optional> certProvided() {
        return Optional.ofNullable(this.certProvided);
    }

    /**
     * Gets or sets the type of secret store for the certificate.
     * 
     */
    @Import(name="secretStore")
    private @Nullable Output> secretStore;

    /**
     * @return Gets or sets the type of secret store for the certificate.
     * 
     */
    public Optional>> secretStore() {
        return Optional.ofNullable(this.secretStore);
    }

    private CertArgs() {}

    private CertArgs(CertArgs $) {
        this.certData = $.certData;
        this.certNeeded = $.certNeeded;
        this.certProvided = $.certProvided;
        this.secretStore = $.secretStore;
    }

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

    public static final class Builder {
        private CertArgs $;

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

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

        /**
         * @param certData Gets or sets the Certificate data.
         * 
         * @return builder
         * 
         */
        public Builder certData(@Nullable Output certData) {
            $.certData = certData;
            return this;
        }

        /**
         * @param certData Gets or sets the Certificate data.
         * 
         * @return builder
         * 
         */
        public Builder certData(String certData) {
            return certData(Output.of(certData));
        }

        /**
         * @param certNeeded Gets or sets a value indicating whether certificate is needed or not.
         * 
         * @return builder
         * 
         */
        public Builder certNeeded(@Nullable Output certNeeded) {
            $.certNeeded = certNeeded;
            return this;
        }

        /**
         * @param certNeeded Gets or sets a value indicating whether certificate is needed or not.
         * 
         * @return builder
         * 
         */
        public Builder certNeeded(Boolean certNeeded) {
            return certNeeded(Output.of(certNeeded));
        }

        /**
         * @param certProvided Gets or sets a value indicating whether certificate is provided or not.
         * 
         * @return builder
         * 
         */
        public Builder certProvided(@Nullable Output certProvided) {
            $.certProvided = certProvided;
            return this;
        }

        /**
         * @param certProvided Gets or sets a value indicating whether certificate is provided or not.
         * 
         * @return builder
         * 
         */
        public Builder certProvided(Boolean certProvided) {
            return certProvided(Output.of(certProvided));
        }

        /**
         * @param secretStore Gets or sets the type of secret store for the certificate.
         * 
         * @return builder
         * 
         */
        public Builder secretStore(@Nullable Output> secretStore) {
            $.secretStore = secretStore;
            return this;
        }

        /**
         * @param secretStore Gets or sets the type of secret store for the certificate.
         * 
         * @return builder
         * 
         */
        public Builder secretStore(Either secretStore) {
            return secretStore(Output.of(secretStore));
        }

        /**
         * @param secretStore Gets or sets the type of secret store for the certificate.
         * 
         * @return builder
         * 
         */
        public Builder secretStore(String secretStore) {
            return secretStore(Either.ofLeft(secretStore));
        }

        /**
         * @param secretStore Gets or sets the type of secret store for the certificate.
         * 
         * @return builder
         * 
         */
        public Builder secretStore(SecretStoreType secretStore) {
            return secretStore(Either.ofRight(secretStore));
        }

        public CertArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy