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

com.pulumi.azurenative.policyinsights.inputs.RemediationPropertiesFailureThresholdArgs 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.azurenative.policyinsights.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Double;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The remediation failure threshold settings
 * 
 */
public final class RemediationPropertiesFailureThresholdArgs extends com.pulumi.resources.ResourceArgs {

    public static final RemediationPropertiesFailureThresholdArgs Empty = new RemediationPropertiesFailureThresholdArgs();

    /**
     * A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
     * 
     */
    @Import(name="percentage")
    private @Nullable Output percentage;

    /**
     * @return A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
     * 
     */
    public Optional> percentage() {
        return Optional.ofNullable(this.percentage);
    }

    private RemediationPropertiesFailureThresholdArgs() {}

    private RemediationPropertiesFailureThresholdArgs(RemediationPropertiesFailureThresholdArgs $) {
        this.percentage = $.percentage;
    }

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

    public static final class Builder {
        private RemediationPropertiesFailureThresholdArgs $;

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

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

        /**
         * @param percentage A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
         * 
         * @return builder
         * 
         */
        public Builder percentage(@Nullable Output percentage) {
            $.percentage = percentage;
            return this;
        }

        /**
         * @param percentage A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
         * 
         * @return builder
         * 
         */
        public Builder percentage(Double percentage) {
            return percentage(Output.of(percentage));
        }

        public RemediationPropertiesFailureThresholdArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy