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

com.pulumi.azurenative.customerinsights.PredictionArgs 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.customerinsights;

import com.pulumi.azurenative.customerinsights.inputs.PredictionGradesArgs;
import com.pulumi.azurenative.customerinsights.inputs.PredictionMappingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PredictionArgs Empty = new PredictionArgs();

    /**
     * Whether do auto analyze.
     * 
     */
    @Import(name="autoAnalyze", required=true)
    private Output autoAnalyze;

    /**
     * @return Whether do auto analyze.
     * 
     */
    public Output autoAnalyze() {
        return this.autoAnalyze;
    }

    /**
     * Description of the prediction.
     * 
     */
    @Import(name="description")
    private @Nullable Output> description;

    /**
     * @return Description of the prediction.
     * 
     */
    public Optional>> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Display name of the prediction.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output> displayName;

    /**
     * @return Display name of the prediction.
     * 
     */
    public Optional>> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The prediction grades.
     * 
     */
    @Import(name="grades")
    private @Nullable Output> grades;

    /**
     * @return The prediction grades.
     * 
     */
    public Optional>> grades() {
        return Optional.ofNullable(this.grades);
    }

    /**
     * The name of the hub.
     * 
     */
    @Import(name="hubName", required=true)
    private Output hubName;

    /**
     * @return The name of the hub.
     * 
     */
    public Output hubName() {
        return this.hubName;
    }

    /**
     * Interaction types involved in the prediction.
     * 
     */
    @Import(name="involvedInteractionTypes")
    private @Nullable Output> involvedInteractionTypes;

    /**
     * @return Interaction types involved in the prediction.
     * 
     */
    public Optional>> involvedInteractionTypes() {
        return Optional.ofNullable(this.involvedInteractionTypes);
    }

    /**
     * KPI types involved in the prediction.
     * 
     */
    @Import(name="involvedKpiTypes")
    private @Nullable Output> involvedKpiTypes;

    /**
     * @return KPI types involved in the prediction.
     * 
     */
    public Optional>> involvedKpiTypes() {
        return Optional.ofNullable(this.involvedKpiTypes);
    }

    /**
     * Relationships involved in the prediction.
     * 
     */
    @Import(name="involvedRelationships")
    private @Nullable Output> involvedRelationships;

    /**
     * @return Relationships involved in the prediction.
     * 
     */
    public Optional>> involvedRelationships() {
        return Optional.ofNullable(this.involvedRelationships);
    }

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

    /**
     * @return Definition of the link mapping of prediction.
     * 
     */
    public Output mappings() {
        return this.mappings;
    }

    /**
     * Negative outcome expression.
     * 
     */
    @Import(name="negativeOutcomeExpression", required=true)
    private Output negativeOutcomeExpression;

    /**
     * @return Negative outcome expression.
     * 
     */
    public Output negativeOutcomeExpression() {
        return this.negativeOutcomeExpression;
    }

    /**
     * Positive outcome expression.
     * 
     */
    @Import(name="positiveOutcomeExpression", required=true)
    private Output positiveOutcomeExpression;

    /**
     * @return Positive outcome expression.
     * 
     */
    public Output positiveOutcomeExpression() {
        return this.positiveOutcomeExpression;
    }

    /**
     * Name of the prediction.
     * 
     */
    @Import(name="predictionName")
    private @Nullable Output predictionName;

    /**
     * @return Name of the prediction.
     * 
     */
    public Optional> predictionName() {
        return Optional.ofNullable(this.predictionName);
    }

    /**
     * Primary profile type.
     * 
     */
    @Import(name="primaryProfileType", required=true)
    private Output primaryProfileType;

    /**
     * @return Primary profile type.
     * 
     */
    public Output primaryProfileType() {
        return this.primaryProfileType;
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Scope expression.
     * 
     */
    @Import(name="scopeExpression", required=true)
    private Output scopeExpression;

    /**
     * @return Scope expression.
     * 
     */
    public Output scopeExpression() {
        return this.scopeExpression;
    }

    /**
     * Score label.
     * 
     */
    @Import(name="scoreLabel", required=true)
    private Output scoreLabel;

    /**
     * @return Score label.
     * 
     */
    public Output scoreLabel() {
        return this.scoreLabel;
    }

    private PredictionArgs() {}

    private PredictionArgs(PredictionArgs $) {
        this.autoAnalyze = $.autoAnalyze;
        this.description = $.description;
        this.displayName = $.displayName;
        this.grades = $.grades;
        this.hubName = $.hubName;
        this.involvedInteractionTypes = $.involvedInteractionTypes;
        this.involvedKpiTypes = $.involvedKpiTypes;
        this.involvedRelationships = $.involvedRelationships;
        this.mappings = $.mappings;
        this.negativeOutcomeExpression = $.negativeOutcomeExpression;
        this.positiveOutcomeExpression = $.positiveOutcomeExpression;
        this.predictionName = $.predictionName;
        this.primaryProfileType = $.primaryProfileType;
        this.resourceGroupName = $.resourceGroupName;
        this.scopeExpression = $.scopeExpression;
        this.scoreLabel = $.scoreLabel;
    }

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

    public static final class Builder {
        private PredictionArgs $;

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

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

        /**
         * @param autoAnalyze Whether do auto analyze.
         * 
         * @return builder
         * 
         */
        public Builder autoAnalyze(Output autoAnalyze) {
            $.autoAnalyze = autoAnalyze;
            return this;
        }

        /**
         * @param autoAnalyze Whether do auto analyze.
         * 
         * @return builder
         * 
         */
        public Builder autoAnalyze(Boolean autoAnalyze) {
            return autoAnalyze(Output.of(autoAnalyze));
        }

        /**
         * @param description Description of the prediction.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the prediction.
         * 
         * @return builder
         * 
         */
        public Builder description(Map description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Display name of the prediction.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output> displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Display name of the prediction.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Map displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param grades The prediction grades.
         * 
         * @return builder
         * 
         */
        public Builder grades(@Nullable Output> grades) {
            $.grades = grades;
            return this;
        }

        /**
         * @param grades The prediction grades.
         * 
         * @return builder
         * 
         */
        public Builder grades(List grades) {
            return grades(Output.of(grades));
        }

        /**
         * @param grades The prediction grades.
         * 
         * @return builder
         * 
         */
        public Builder grades(PredictionGradesArgs... grades) {
            return grades(List.of(grades));
        }

        /**
         * @param hubName The name of the hub.
         * 
         * @return builder
         * 
         */
        public Builder hubName(Output hubName) {
            $.hubName = hubName;
            return this;
        }

        /**
         * @param hubName The name of the hub.
         * 
         * @return builder
         * 
         */
        public Builder hubName(String hubName) {
            return hubName(Output.of(hubName));
        }

        /**
         * @param involvedInteractionTypes Interaction types involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedInteractionTypes(@Nullable Output> involvedInteractionTypes) {
            $.involvedInteractionTypes = involvedInteractionTypes;
            return this;
        }

        /**
         * @param involvedInteractionTypes Interaction types involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedInteractionTypes(List involvedInteractionTypes) {
            return involvedInteractionTypes(Output.of(involvedInteractionTypes));
        }

        /**
         * @param involvedInteractionTypes Interaction types involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedInteractionTypes(String... involvedInteractionTypes) {
            return involvedInteractionTypes(List.of(involvedInteractionTypes));
        }

        /**
         * @param involvedKpiTypes KPI types involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedKpiTypes(@Nullable Output> involvedKpiTypes) {
            $.involvedKpiTypes = involvedKpiTypes;
            return this;
        }

        /**
         * @param involvedKpiTypes KPI types involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedKpiTypes(List involvedKpiTypes) {
            return involvedKpiTypes(Output.of(involvedKpiTypes));
        }

        /**
         * @param involvedKpiTypes KPI types involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedKpiTypes(String... involvedKpiTypes) {
            return involvedKpiTypes(List.of(involvedKpiTypes));
        }

        /**
         * @param involvedRelationships Relationships involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedRelationships(@Nullable Output> involvedRelationships) {
            $.involvedRelationships = involvedRelationships;
            return this;
        }

        /**
         * @param involvedRelationships Relationships involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedRelationships(List involvedRelationships) {
            return involvedRelationships(Output.of(involvedRelationships));
        }

        /**
         * @param involvedRelationships Relationships involved in the prediction.
         * 
         * @return builder
         * 
         */
        public Builder involvedRelationships(String... involvedRelationships) {
            return involvedRelationships(List.of(involvedRelationships));
        }

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

        /**
         * @param mappings Definition of the link mapping of prediction.
         * 
         * @return builder
         * 
         */
        public Builder mappings(PredictionMappingsArgs mappings) {
            return mappings(Output.of(mappings));
        }

        /**
         * @param negativeOutcomeExpression Negative outcome expression.
         * 
         * @return builder
         * 
         */
        public Builder negativeOutcomeExpression(Output negativeOutcomeExpression) {
            $.negativeOutcomeExpression = negativeOutcomeExpression;
            return this;
        }

        /**
         * @param negativeOutcomeExpression Negative outcome expression.
         * 
         * @return builder
         * 
         */
        public Builder negativeOutcomeExpression(String negativeOutcomeExpression) {
            return negativeOutcomeExpression(Output.of(negativeOutcomeExpression));
        }

        /**
         * @param positiveOutcomeExpression Positive outcome expression.
         * 
         * @return builder
         * 
         */
        public Builder positiveOutcomeExpression(Output positiveOutcomeExpression) {
            $.positiveOutcomeExpression = positiveOutcomeExpression;
            return this;
        }

        /**
         * @param positiveOutcomeExpression Positive outcome expression.
         * 
         * @return builder
         * 
         */
        public Builder positiveOutcomeExpression(String positiveOutcomeExpression) {
            return positiveOutcomeExpression(Output.of(positiveOutcomeExpression));
        }

        /**
         * @param predictionName Name of the prediction.
         * 
         * @return builder
         * 
         */
        public Builder predictionName(@Nullable Output predictionName) {
            $.predictionName = predictionName;
            return this;
        }

        /**
         * @param predictionName Name of the prediction.
         * 
         * @return builder
         * 
         */
        public Builder predictionName(String predictionName) {
            return predictionName(Output.of(predictionName));
        }

        /**
         * @param primaryProfileType Primary profile type.
         * 
         * @return builder
         * 
         */
        public Builder primaryProfileType(Output primaryProfileType) {
            $.primaryProfileType = primaryProfileType;
            return this;
        }

        /**
         * @param primaryProfileType Primary profile type.
         * 
         * @return builder
         * 
         */
        public Builder primaryProfileType(String primaryProfileType) {
            return primaryProfileType(Output.of(primaryProfileType));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param scopeExpression Scope expression.
         * 
         * @return builder
         * 
         */
        public Builder scopeExpression(Output scopeExpression) {
            $.scopeExpression = scopeExpression;
            return this;
        }

        /**
         * @param scopeExpression Scope expression.
         * 
         * @return builder
         * 
         */
        public Builder scopeExpression(String scopeExpression) {
            return scopeExpression(Output.of(scopeExpression));
        }

        /**
         * @param scoreLabel Score label.
         * 
         * @return builder
         * 
         */
        public Builder scoreLabel(Output scoreLabel) {
            $.scoreLabel = scoreLabel;
            return this;
        }

        /**
         * @param scoreLabel Score label.
         * 
         * @return builder
         * 
         */
        public Builder scoreLabel(String scoreLabel) {
            return scoreLabel(Output.of(scoreLabel));
        }

        public PredictionArgs build() {
            if ($.autoAnalyze == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "autoAnalyze");
            }
            if ($.hubName == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "hubName");
            }
            if ($.mappings == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "mappings");
            }
            if ($.negativeOutcomeExpression == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "negativeOutcomeExpression");
            }
            if ($.positiveOutcomeExpression == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "positiveOutcomeExpression");
            }
            if ($.primaryProfileType == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "primaryProfileType");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "resourceGroupName");
            }
            if ($.scopeExpression == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "scopeExpression");
            }
            if ($.scoreLabel == null) {
                throw new MissingRequiredPropertyException("PredictionArgs", "scoreLabel");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy