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

com.pulumi.azure.cdn.FrontdoorSecretArgs 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.azure.cdn;

import com.pulumi.azure.cdn.inputs.FrontdoorSecretSecretArgs;
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;


public final class FrontdoorSecretArgs extends com.pulumi.resources.ResourceArgs {

    public static final FrontdoorSecretArgs Empty = new FrontdoorSecretArgs();

    /**
     * The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created.
     * 
     */
    @Import(name="cdnFrontdoorProfileId", required=true)
    private Output cdnFrontdoorProfileId;

    /**
     * @return The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created.
     * 
     */
    public Output cdnFrontdoorProfileId() {
        return this.cdnFrontdoorProfileId;
    }

    /**
     * The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A `secret` block as defined below. Changing this forces a new Front Door Secret to be created.
     * 
     */
    @Import(name="secret", required=true)
    private Output secret;

    /**
     * @return A `secret` block as defined below. Changing this forces a new Front Door Secret to be created.
     * 
     */
    public Output secret() {
        return this.secret;
    }

    private FrontdoorSecretArgs() {}

    private FrontdoorSecretArgs(FrontdoorSecretArgs $) {
        this.cdnFrontdoorProfileId = $.cdnFrontdoorProfileId;
        this.name = $.name;
        this.secret = $.secret;
    }

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

    public static final class Builder {
        private FrontdoorSecretArgs $;

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

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

        /**
         * @param cdnFrontdoorProfileId The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created.
         * 
         * @return builder
         * 
         */
        public Builder cdnFrontdoorProfileId(Output cdnFrontdoorProfileId) {
            $.cdnFrontdoorProfileId = cdnFrontdoorProfileId;
            return this;
        }

        /**
         * @param cdnFrontdoorProfileId The Resource ID of the Front Door Profile. Changing this forces a new Front Door Secret to be created.
         * 
         * @return builder
         * 
         */
        public Builder cdnFrontdoorProfileId(String cdnFrontdoorProfileId) {
            return cdnFrontdoorProfileId(Output.of(cdnFrontdoorProfileId));
        }

        /**
         * @param name The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Front Door Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Front Door Secret to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param secret A `secret` block as defined below. Changing this forces a new Front Door Secret to be created.
         * 
         * @return builder
         * 
         */
        public Builder secret(Output secret) {
            $.secret = secret;
            return this;
        }

        /**
         * @param secret A `secret` block as defined below. Changing this forces a new Front Door Secret to be created.
         * 
         * @return builder
         * 
         */
        public Builder secret(FrontdoorSecretSecretArgs secret) {
            return secret(Output.of(secret));
        }

        public FrontdoorSecretArgs build() {
            if ($.cdnFrontdoorProfileId == null) {
                throw new MissingRequiredPropertyException("FrontdoorSecretArgs", "cdnFrontdoorProfileId");
            }
            if ($.secret == null) {
                throw new MissingRequiredPropertyException("FrontdoorSecretArgs", "secret");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy