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

com.pulumi.azurenative.monitor.inputs.ScopeMapArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.monitor.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;


/**
 * Scope map for schema in azure monitor.
 * 
 */
public final class ScopeMapArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScopeMapArgs Empty = new ScopeMapArgs();

    /**
     * Scope Map Key.
     * 
     */
    @Import(name="from", required=true)
    private Output from;

    /**
     * @return Scope Map Key.
     * 
     */
    public Output from() {
        return this.from;
    }

    /**
     * Scope Map Value.
     * 
     */
    @Import(name="to", required=true)
    private Output to;

    /**
     * @return Scope Map Value.
     * 
     */
    public Output to() {
        return this.to;
    }

    private ScopeMapArgs() {}

    private ScopeMapArgs(ScopeMapArgs $) {
        this.from = $.from;
        this.to = $.to;
    }

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

    public static final class Builder {
        private ScopeMapArgs $;

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

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

        /**
         * @param from Scope Map Key.
         * 
         * @return builder
         * 
         */
        public Builder from(Output from) {
            $.from = from;
            return this;
        }

        /**
         * @param from Scope Map Key.
         * 
         * @return builder
         * 
         */
        public Builder from(String from) {
            return from(Output.of(from));
        }

        /**
         * @param to Scope Map Value.
         * 
         * @return builder
         * 
         */
        public Builder to(Output to) {
            $.to = to;
            return this;
        }

        /**
         * @param to Scope Map Value.
         * 
         * @return builder
         * 
         */
        public Builder to(String to) {
            return to(Output.of(to));
        }

        public ScopeMapArgs build() {
            if ($.from == null) {
                throw new MissingRequiredPropertyException("ScopeMapArgs", "from");
            }
            if ($.to == null) {
                throw new MissingRequiredPropertyException("ScopeMapArgs", "to");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy