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

com.pulumi.cloudngfwaws.inputs.GetSecurityRulePlainArgs Maven / Gradle / Ivy

There is a newer version: 0.1.0-alpha.1731490948
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.cloudngfwaws.inputs;

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


public final class GetSecurityRulePlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSecurityRulePlainArgs Empty = new GetSecurityRulePlainArgs();

    /**
     * Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
     * 
     */
    @Import(name="configType")
    private @Nullable String configType;

    /**
     * @return Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
     * 
     */
    public Optional configType() {
        return Optional.ofNullable(this.configType);
    }

    /**
     * The rule priority.
     * 
     */
    @Import(name="priority", required=true)
    private Integer priority;

    /**
     * @return The rule priority.
     * 
     */
    public Integer priority() {
        return this.priority;
    }

    /**
     * The rulebase. Valid values are `PreRule`, `PostRule`, or `LocalRule`. Defaults to `PreRule`.
     * 
     */
    @Import(name="ruleList")
    private @Nullable String ruleList;

    /**
     * @return The rulebase. Valid values are `PreRule`, `PostRule`, or `LocalRule`. Defaults to `PreRule`.
     * 
     */
    public Optional ruleList() {
        return Optional.ofNullable(this.ruleList);
    }

    /**
     * The rulestack.
     * 
     */
    @Import(name="rulestack", required=true)
    private String rulestack;

    /**
     * @return The rulestack.
     * 
     */
    public String rulestack() {
        return this.rulestack;
    }

    /**
     * The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
     * 
     */
    @Import(name="scope")
    private @Nullable String scope;

    /**
     * @return The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
     * 
     */
    public Optional scope() {
        return Optional.ofNullable(this.scope);
    }

    private GetSecurityRulePlainArgs() {}

    private GetSecurityRulePlainArgs(GetSecurityRulePlainArgs $) {
        this.configType = $.configType;
        this.priority = $.priority;
        this.ruleList = $.ruleList;
        this.rulestack = $.rulestack;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private GetSecurityRulePlainArgs $;

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

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

        /**
         * @param configType Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
         * 
         * @return builder
         * 
         */
        public Builder configType(@Nullable String configType) {
            $.configType = configType;
            return this;
        }

        /**
         * @param priority The rule priority.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param ruleList The rulebase. Valid values are `PreRule`, `PostRule`, or `LocalRule`. Defaults to `PreRule`.
         * 
         * @return builder
         * 
         */
        public Builder ruleList(@Nullable String ruleList) {
            $.ruleList = ruleList;
            return this;
        }

        /**
         * @param rulestack The rulestack.
         * 
         * @return builder
         * 
         */
        public Builder rulestack(String rulestack) {
            $.rulestack = rulestack;
            return this;
        }

        /**
         * @param scope The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable String scope) {
            $.scope = scope;
            return this;
        }

        public GetSecurityRulePlainArgs build() {
            if ($.priority == null) {
                throw new MissingRequiredPropertyException("GetSecurityRulePlainArgs", "priority");
            }
            if ($.rulestack == null) {
                throw new MissingRequiredPropertyException("GetSecurityRulePlainArgs", "rulestack");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy