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

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.customerinsights.PredictionArgs;
import com.pulumi.azurenative.customerinsights.outputs.PredictionResponseGrades;
import com.pulumi.azurenative.customerinsights.outputs.PredictionResponseMappings;
import com.pulumi.azurenative.customerinsights.outputs.PredictionResponseSystemGeneratedEntities;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The prediction resource format.
 * Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
 * 
 * ## Example Usage
 * ### Predictions_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.customerinsights.Prediction;
 * import com.pulumi.azurenative.customerinsights.PredictionArgs;
 * import com.pulumi.azurenative.customerinsights.inputs.PredictionMappingsArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var prediction = new Prediction("prediction", PredictionArgs.builder()
 *             .autoAnalyze(true)
 *             .description(Map.of("en-us", "sdktest"))
 *             .displayName(Map.of("en-us", "sdktest"))
 *             .grades()
 *             .hubName("sdkTestHub")
 *             .involvedInteractionTypes()
 *             .involvedKpiTypes()
 *             .involvedRelationships()
 *             .mappings(PredictionMappingsArgs.builder()
 *                 .grade("sdktest_Grade")
 *                 .reason("sdktest_Reason")
 *                 .score("sdktest_Score")
 *                 .build())
 *             .negativeOutcomeExpression("Customers.FirstName = 'Mike'")
 *             .positiveOutcomeExpression("Customers.FirstName = 'David'")
 *             .predictionName("sdktest")
 *             .primaryProfileType("Customers")
 *             .resourceGroupName("TestHubRG")
 *             .scopeExpression("*")
 *             .scoreLabel("score label")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:customerinsights:Prediction sdkTestHub/sdktest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/predictions/{predictionName} * ``` * */ @ResourceType(type="azure-native:customerinsights:Prediction") public class Prediction extends com.pulumi.resources.CustomResource { /** * Whether do auto analyze. * */ @Export(name="autoAnalyze", refs={Boolean.class}, tree="[0]") private Output autoAnalyze; /** * @return Whether do auto analyze. * */ public Output autoAnalyze() { return this.autoAnalyze; } /** * Description of the prediction. * */ @Export(name="description", refs={Map.class,String.class}, tree="[0,1,1]") private Output> description; /** * @return Description of the prediction. * */ public Output>> description() { return Codegen.optional(this.description); } /** * Display name of the prediction. * */ @Export(name="displayName", refs={Map.class,String.class}, tree="[0,1,1]") private Output> displayName; /** * @return Display name of the prediction. * */ public Output>> displayName() { return Codegen.optional(this.displayName); } /** * The prediction grades. * */ @Export(name="grades", refs={List.class,PredictionResponseGrades.class}, tree="[0,1]") private Output> grades; /** * @return The prediction grades. * */ public Output>> grades() { return Codegen.optional(this.grades); } /** * Interaction types involved in the prediction. * */ @Export(name="involvedInteractionTypes", refs={List.class,String.class}, tree="[0,1]") private Output> involvedInteractionTypes; /** * @return Interaction types involved in the prediction. * */ public Output>> involvedInteractionTypes() { return Codegen.optional(this.involvedInteractionTypes); } /** * KPI types involved in the prediction. * */ @Export(name="involvedKpiTypes", refs={List.class,String.class}, tree="[0,1]") private Output> involvedKpiTypes; /** * @return KPI types involved in the prediction. * */ public Output>> involvedKpiTypes() { return Codegen.optional(this.involvedKpiTypes); } /** * Relationships involved in the prediction. * */ @Export(name="involvedRelationships", refs={List.class,String.class}, tree="[0,1]") private Output> involvedRelationships; /** * @return Relationships involved in the prediction. * */ public Output>> involvedRelationships() { return Codegen.optional(this.involvedRelationships); } /** * Definition of the link mapping of prediction. * */ @Export(name="mappings", refs={PredictionResponseMappings.class}, tree="[0]") private Output mappings; /** * @return Definition of the link mapping of prediction. * */ public Output mappings() { return this.mappings; } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * Negative outcome expression. * */ @Export(name="negativeOutcomeExpression", refs={String.class}, tree="[0]") private Output negativeOutcomeExpression; /** * @return Negative outcome expression. * */ public Output negativeOutcomeExpression() { return this.negativeOutcomeExpression; } /** * Positive outcome expression. * */ @Export(name="positiveOutcomeExpression", refs={String.class}, tree="[0]") private Output positiveOutcomeExpression; /** * @return Positive outcome expression. * */ public Output positiveOutcomeExpression() { return this.positiveOutcomeExpression; } /** * Name of the prediction. * */ @Export(name="predictionName", refs={String.class}, tree="[0]") private Output predictionName; /** * @return Name of the prediction. * */ public Output> predictionName() { return Codegen.optional(this.predictionName); } /** * Primary profile type. * */ @Export(name="primaryProfileType", refs={String.class}, tree="[0]") private Output primaryProfileType; /** * @return Primary profile type. * */ public Output primaryProfileType() { return this.primaryProfileType; } /** * Provisioning state. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state. * */ public Output provisioningState() { return this.provisioningState; } /** * Scope expression. * */ @Export(name="scopeExpression", refs={String.class}, tree="[0]") private Output scopeExpression; /** * @return Scope expression. * */ public Output scopeExpression() { return this.scopeExpression; } /** * Score label. * */ @Export(name="scoreLabel", refs={String.class}, tree="[0]") private Output scoreLabel; /** * @return Score label. * */ public Output scoreLabel() { return this.scoreLabel; } /** * System generated entities. * */ @Export(name="systemGeneratedEntities", refs={PredictionResponseSystemGeneratedEntities.class}, tree="[0]") private Output systemGeneratedEntities; /** * @return System generated entities. * */ public Output systemGeneratedEntities() { return this.systemGeneratedEntities; } /** * The hub name. * */ @Export(name="tenantId", refs={String.class}, tree="[0]") private Output tenantId; /** * @return The hub name. * */ public Output tenantId() { return this.tenantId; } /** * Resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public Prediction(java.lang.String name) { this(name, PredictionArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Prediction(java.lang.String name, PredictionArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Prediction(java.lang.String name, PredictionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:Prediction", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Prediction(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:Prediction", name, null, makeResourceOptions(options, id), false); } private static PredictionArgs makeArgs(PredictionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? PredictionArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:customerinsights/v20170426:Prediction").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static Prediction get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Prediction(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy