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

com.pulumi.akamai.AppSecWapSelectedHostnamesArgs 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.akamai;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AppSecWapSelectedHostnamesArgs Empty = new AppSecWapSelectedHostnamesArgs();

    /**
     * Unique identifier of the security configuration
     * 
     */
    @Import(name="configId", required=true)
    private Output configId;

    /**
     * @return Unique identifier of the security configuration
     * 
     */
    public Output configId() {
        return this.configId;
    }

    /**
     * List of hostnames to be evaluated
     * 
     */
    @Import(name="evaluatedHosts")
    private @Nullable Output> evaluatedHosts;

    /**
     * @return List of hostnames to be evaluated
     * 
     */
    public Optional>> evaluatedHosts() {
        return Optional.ofNullable(this.evaluatedHosts);
    }

    /**
     * List of hostnames to be protected
     * 
     */
    @Import(name="protectedHosts")
    private @Nullable Output> protectedHosts;

    /**
     * @return List of hostnames to be protected
     * 
     */
    public Optional>> protectedHosts() {
        return Optional.ofNullable(this.protectedHosts);
    }

    /**
     * Unique identifier of the security policy
     * 
     */
    @Import(name="securityPolicyId", required=true)
    private Output securityPolicyId;

    /**
     * @return Unique identifier of the security policy
     * 
     */
    public Output securityPolicyId() {
        return this.securityPolicyId;
    }

    private AppSecWapSelectedHostnamesArgs() {}

    private AppSecWapSelectedHostnamesArgs(AppSecWapSelectedHostnamesArgs $) {
        this.configId = $.configId;
        this.evaluatedHosts = $.evaluatedHosts;
        this.protectedHosts = $.protectedHosts;
        this.securityPolicyId = $.securityPolicyId;
    }

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

    public static final class Builder {
        private AppSecWapSelectedHostnamesArgs $;

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

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

        /**
         * @param configId Unique identifier of the security configuration
         * 
         * @return builder
         * 
         */
        public Builder configId(Output configId) {
            $.configId = configId;
            return this;
        }

        /**
         * @param configId Unique identifier of the security configuration
         * 
         * @return builder
         * 
         */
        public Builder configId(Integer configId) {
            return configId(Output.of(configId));
        }

        /**
         * @param evaluatedHosts List of hostnames to be evaluated
         * 
         * @return builder
         * 
         */
        public Builder evaluatedHosts(@Nullable Output> evaluatedHosts) {
            $.evaluatedHosts = evaluatedHosts;
            return this;
        }

        /**
         * @param evaluatedHosts List of hostnames to be evaluated
         * 
         * @return builder
         * 
         */
        public Builder evaluatedHosts(List evaluatedHosts) {
            return evaluatedHosts(Output.of(evaluatedHosts));
        }

        /**
         * @param evaluatedHosts List of hostnames to be evaluated
         * 
         * @return builder
         * 
         */
        public Builder evaluatedHosts(String... evaluatedHosts) {
            return evaluatedHosts(List.of(evaluatedHosts));
        }

        /**
         * @param protectedHosts List of hostnames to be protected
         * 
         * @return builder
         * 
         */
        public Builder protectedHosts(@Nullable Output> protectedHosts) {
            $.protectedHosts = protectedHosts;
            return this;
        }

        /**
         * @param protectedHosts List of hostnames to be protected
         * 
         * @return builder
         * 
         */
        public Builder protectedHosts(List protectedHosts) {
            return protectedHosts(Output.of(protectedHosts));
        }

        /**
         * @param protectedHosts List of hostnames to be protected
         * 
         * @return builder
         * 
         */
        public Builder protectedHosts(String... protectedHosts) {
            return protectedHosts(List.of(protectedHosts));
        }

        /**
         * @param securityPolicyId Unique identifier of the security policy
         * 
         * @return builder
         * 
         */
        public Builder securityPolicyId(Output securityPolicyId) {
            $.securityPolicyId = securityPolicyId;
            return this;
        }

        /**
         * @param securityPolicyId Unique identifier of the security policy
         * 
         * @return builder
         * 
         */
        public Builder securityPolicyId(String securityPolicyId) {
            return securityPolicyId(Output.of(securityPolicyId));
        }

        public AppSecWapSelectedHostnamesArgs build() {
            if ($.configId == null) {
                throw new MissingRequiredPropertyException("AppSecWapSelectedHostnamesArgs", "configId");
            }
            if ($.securityPolicyId == null) {
                throw new MissingRequiredPropertyException("AppSecWapSelectedHostnamesArgs", "securityPolicyId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy