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

com.pulumi.azurenative.customerinsights.inputs.PredictionMappingsArgs Maven / Gradle / Ivy

// *** 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.customerinsights.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;


/**
 * Definition of the link mapping of prediction.
 * 
 */
public final class PredictionMappingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PredictionMappingsArgs Empty = new PredictionMappingsArgs();

    /**
     * The grade of the link mapping.
     * 
     */
    @Import(name="grade", required=true)
    private Output grade;

    /**
     * @return The grade of the link mapping.
     * 
     */
    public Output grade() {
        return this.grade;
    }

    /**
     * The reason of the link mapping.
     * 
     */
    @Import(name="reason", required=true)
    private Output reason;

    /**
     * @return The reason of the link mapping.
     * 
     */
    public Output reason() {
        return this.reason;
    }

    /**
     * The score of the link mapping.
     * 
     */
    @Import(name="score", required=true)
    private Output score;

    /**
     * @return The score of the link mapping.
     * 
     */
    public Output score() {
        return this.score;
    }

    private PredictionMappingsArgs() {}

    private PredictionMappingsArgs(PredictionMappingsArgs $) {
        this.grade = $.grade;
        this.reason = $.reason;
        this.score = $.score;
    }

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

    public static final class Builder {
        private PredictionMappingsArgs $;

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

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

        /**
         * @param grade The grade of the link mapping.
         * 
         * @return builder
         * 
         */
        public Builder grade(Output grade) {
            $.grade = grade;
            return this;
        }

        /**
         * @param grade The grade of the link mapping.
         * 
         * @return builder
         * 
         */
        public Builder grade(String grade) {
            return grade(Output.of(grade));
        }

        /**
         * @param reason The reason of the link mapping.
         * 
         * @return builder
         * 
         */
        public Builder reason(Output reason) {
            $.reason = reason;
            return this;
        }

        /**
         * @param reason The reason of the link mapping.
         * 
         * @return builder
         * 
         */
        public Builder reason(String reason) {
            return reason(Output.of(reason));
        }

        /**
         * @param score The score of the link mapping.
         * 
         * @return builder
         * 
         */
        public Builder score(Output score) {
            $.score = score;
            return this;
        }

        /**
         * @param score The score of the link mapping.
         * 
         * @return builder
         * 
         */
        public Builder score(String score) {
            return score(Output.of(score));
        }

        public PredictionMappingsArgs build() {
            if ($.grade == null) {
                throw new MissingRequiredPropertyException("PredictionMappingsArgs", "grade");
            }
            if ($.reason == null) {
                throw new MissingRequiredPropertyException("PredictionMappingsArgs", "reason");
            }
            if ($.score == null) {
                throw new MissingRequiredPropertyException("PredictionMappingsArgs", "score");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy