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

com.pulumi.ns1.inputs.MonitoringJobRuleArgs Maven / Gradle / Ivy

There is a newer version: 3.5.0-alpha.1732601130
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.ns1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final MonitoringJobRuleArgs Empty = new MonitoringJobRuleArgs();

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

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

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

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

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

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

    private MonitoringJobRuleArgs() {}

    private MonitoringJobRuleArgs(MonitoringJobRuleArgs $) {
        this.comparison = $.comparison;
        this.key = $.key;
        this.value = $.value;
    }

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

    public static final class Builder {
        private MonitoringJobRuleArgs $;

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

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

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

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

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

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

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

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

        public MonitoringJobRuleArgs build() {
            if ($.comparison == null) {
                throw new MissingRequiredPropertyException("MonitoringJobRuleArgs", "comparison");
            }
            if ($.key == null) {
                throw new MissingRequiredPropertyException("MonitoringJobRuleArgs", "key");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("MonitoringJobRuleArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy