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

com.pulumi.azurenative.providerhub.inputs.LoggingRuleArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.providerhub.inputs;

import com.pulumi.azurenative.providerhub.enums.LoggingDetails;
import com.pulumi.azurenative.providerhub.enums.LoggingDirections;
import com.pulumi.azurenative.providerhub.inputs.LoggingRuleHiddenPropertyPathsArgs;
import com.pulumi.core.Either;
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 LoggingRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final LoggingRuleArgs Empty = new LoggingRuleArgs();

    @Import(name="action", required=true)
    private Output action;

    public Output action() {
        return this.action;
    }

    @Import(name="detailLevel", required=true)
    private Output> detailLevel;

    public Output> detailLevel() {
        return this.detailLevel;
    }

    @Import(name="direction", required=true)
    private Output> direction;

    public Output> direction() {
        return this.direction;
    }

    @Import(name="hiddenPropertyPaths")
    private @Nullable Output hiddenPropertyPaths;

    public Optional> hiddenPropertyPaths() {
        return Optional.ofNullable(this.hiddenPropertyPaths);
    }

    private LoggingRuleArgs() {}

    private LoggingRuleArgs(LoggingRuleArgs $) {
        this.action = $.action;
        this.detailLevel = $.detailLevel;
        this.direction = $.direction;
        this.hiddenPropertyPaths = $.hiddenPropertyPaths;
    }

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

    public static final class Builder {
        private LoggingRuleArgs $;

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

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

        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        public Builder action(String action) {
            return action(Output.of(action));
        }

        public Builder detailLevel(Output> detailLevel) {
            $.detailLevel = detailLevel;
            return this;
        }

        public Builder detailLevel(Either detailLevel) {
            return detailLevel(Output.of(detailLevel));
        }

        public Builder detailLevel(String detailLevel) {
            return detailLevel(Either.ofLeft(detailLevel));
        }

        public Builder detailLevel(LoggingDetails detailLevel) {
            return detailLevel(Either.ofRight(detailLevel));
        }

        public Builder direction(Output> direction) {
            $.direction = direction;
            return this;
        }

        public Builder direction(Either direction) {
            return direction(Output.of(direction));
        }

        public Builder direction(String direction) {
            return direction(Either.ofLeft(direction));
        }

        public Builder direction(LoggingDirections direction) {
            return direction(Either.ofRight(direction));
        }

        public Builder hiddenPropertyPaths(@Nullable Output hiddenPropertyPaths) {
            $.hiddenPropertyPaths = hiddenPropertyPaths;
            return this;
        }

        public Builder hiddenPropertyPaths(LoggingRuleHiddenPropertyPathsArgs hiddenPropertyPaths) {
            return hiddenPropertyPaths(Output.of(hiddenPropertyPaths));
        }

        public LoggingRuleArgs build() {
            if ($.action == null) {
                throw new MissingRequiredPropertyException("LoggingRuleArgs", "action");
            }
            if ($.detailLevel == null) {
                throw new MissingRequiredPropertyException("LoggingRuleArgs", "detailLevel");
            }
            if ($.direction == null) {
                throw new MissingRequiredPropertyException("LoggingRuleArgs", "direction");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy