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

com.pulumi.azurenative.customerinsights.Profile 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.Utilities;
import com.pulumi.azurenative.customerinsights.ProfileArgs;
import com.pulumi.azurenative.customerinsights.outputs.PropertyDefinitionResponse;
import com.pulumi.azurenative.customerinsights.outputs.StrongIdResponse;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The profile resource format.
 * Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
 * 
 * ## Example Usage
 * ### Profiles_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.customerinsights.Profile;
 * import com.pulumi.azurenative.customerinsights.ProfileArgs;
 * import com.pulumi.azurenative.customerinsights.inputs.PropertyDefinitionArgs;
 * import com.pulumi.azurenative.customerinsights.inputs.StrongIdArgs;
 * 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 profile = new Profile("profile", ProfileArgs.builder()
 *             .apiEntitySetName("TestProfileType396")
 *             .fields(            
 *                 PropertyDefinitionArgs.builder()
 *                     .fieldName("Id")
 *                     .fieldType("Edm.String")
 *                     .isArray(false)
 *                     .isRequired(true)
 *                     .build(),
 *                 PropertyDefinitionArgs.builder()
 *                     .fieldName("ProfileId")
 *                     .fieldType("Edm.String")
 *                     .isArray(false)
 *                     .isRequired(true)
 *                     .build(),
 *                 PropertyDefinitionArgs.builder()
 *                     .fieldName("LastName")
 *                     .fieldType("Edm.String")
 *                     .isArray(false)
 *                     .isRequired(true)
 *                     .build(),
 *                 PropertyDefinitionArgs.builder()
 *                     .fieldName("TestProfileType396")
 *                     .fieldType("Edm.String")
 *                     .isArray(false)
 *                     .isRequired(true)
 *                     .build(),
 *                 PropertyDefinitionArgs.builder()
 *                     .fieldName("SavingAccountBalance")
 *                     .fieldType("Edm.Int32")
 *                     .isArray(false)
 *                     .isRequired(true)
 *                     .build())
 *             .hubName("sdkTestHub")
 *             .largeImage("\\\\Images\\\\LargeImage")
 *             .mediumImage("\\\\Images\\\\MediumImage")
 *             .profileName("TestProfileType396")
 *             .resourceGroupName("TestHubRG")
 *             .schemaItemTypeLink("SchemaItemTypeLink")
 *             .smallImage("\\\\Images\\\\smallImage")
 *             .strongIds(            
 *                 StrongIdArgs.builder()
 *                     .keyPropertyNames(                    
 *                         "Id",
 *                         "SavingAccountBalance")
 *                     .strongIdName("Id")
 *                     .build(),
 *                 StrongIdArgs.builder()
 *                     .keyPropertyNames(                    
 *                         "ProfileId",
 *                         "LastName")
 *                     .strongIdName("ProfileId")
 *                     .build())
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:customerinsights:Profile azSdkTestHub/TestProfileType396 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles/{profileName} * ``` * */ @ResourceType(type="azure-native:customerinsights:Profile") public class Profile extends com.pulumi.resources.CustomResource { /** * The api entity set name. This becomes the odata entity set name for the entity Type being referred in this object. * */ @Export(name="apiEntitySetName", refs={String.class}, tree="[0]") private Output apiEntitySetName; /** * @return The api entity set name. This becomes the odata entity set name for the entity Type being referred in this object. * */ public Output> apiEntitySetName() { return Codegen.optional(this.apiEntitySetName); } /** * The attributes for the Type. * */ @Export(name="attributes", refs={Map.class,String.class,List.class}, tree="[0,1,[2,1]]") private Output>> attributes; /** * @return The attributes for the Type. * */ public Output>>> attributes() { return Codegen.optional(this.attributes); } /** * Localized descriptions for the property. * */ @Export(name="description", refs={Map.class,String.class}, tree="[0,1,1]") private Output> description; /** * @return Localized descriptions for the property. * */ public Output>> description() { return Codegen.optional(this.description); } /** * Localized display names for the property. * */ @Export(name="displayName", refs={Map.class,String.class}, tree="[0,1,1]") private Output> displayName; /** * @return Localized display names for the property. * */ public Output>> displayName() { return Codegen.optional(this.displayName); } /** * Type of entity. * */ @Export(name="entityType", refs={String.class}, tree="[0]") private Output entityType; /** * @return Type of entity. * */ public Output> entityType() { return Codegen.optional(this.entityType); } /** * The properties of the Profile. * */ @Export(name="fields", refs={List.class,PropertyDefinitionResponse.class}, tree="[0,1]") private Output> fields; /** * @return The properties of the Profile. * */ public Output>> fields() { return Codegen.optional(this.fields); } /** * The instance count. * */ @Export(name="instancesCount", refs={Integer.class}, tree="[0]") private Output instancesCount; /** * @return The instance count. * */ public Output> instancesCount() { return Codegen.optional(this.instancesCount); } /** * Large Image associated with the Property or EntityType. * */ @Export(name="largeImage", refs={String.class}, tree="[0]") private Output largeImage; /** * @return Large Image associated with the Property or EntityType. * */ public Output> largeImage() { return Codegen.optional(this.largeImage); } /** * The last changed time for the type definition. * */ @Export(name="lastChangedUtc", refs={String.class}, tree="[0]") private Output lastChangedUtc; /** * @return The last changed time for the type definition. * */ public Output lastChangedUtc() { return this.lastChangedUtc; } /** * Any custom localized attributes for the Type. * */ @Export(name="localizedAttributes", refs={Map.class,String.class}, tree="[0,1,[0,1,1]]") private Output>> localizedAttributes; /** * @return Any custom localized attributes for the Type. * */ public Output>>> localizedAttributes() { return Codegen.optional(this.localizedAttributes); } /** * Medium Image associated with the Property or EntityType. * */ @Export(name="mediumImage", refs={String.class}, tree="[0]") private Output mediumImage; /** * @return Medium Image associated with the Property or EntityType. * */ public Output> mediumImage() { return Codegen.optional(this.mediumImage); } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * Provisioning state. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state. * */ public Output provisioningState() { return this.provisioningState; } /** * The schema org link. This helps ACI identify and suggest semantic models. * */ @Export(name="schemaItemTypeLink", refs={String.class}, tree="[0]") private Output schemaItemTypeLink; /** * @return The schema org link. This helps ACI identify and suggest semantic models. * */ public Output> schemaItemTypeLink() { return Codegen.optional(this.schemaItemTypeLink); } /** * Small Image associated with the Property or EntityType. * */ @Export(name="smallImage", refs={String.class}, tree="[0]") private Output smallImage; /** * @return Small Image associated with the Property or EntityType. * */ public Output> smallImage() { return Codegen.optional(this.smallImage); } /** * The strong IDs. * */ @Export(name="strongIds", refs={List.class,StrongIdResponse.class}, tree="[0,1]") private Output> strongIds; /** * @return The strong IDs. * */ public Output>> strongIds() { return Codegen.optional(this.strongIds); } /** * The hub name. * */ @Export(name="tenantId", refs={String.class}, tree="[0]") private Output tenantId; /** * @return The hub name. * */ public Output tenantId() { return this.tenantId; } /** * The timestamp property name. Represents the time when the interaction or profile update happened. * */ @Export(name="timestampFieldName", refs={String.class}, tree="[0]") private Output timestampFieldName; /** * @return The timestamp property name. Represents the time when the interaction or profile update happened. * */ public Output> timestampFieldName() { return Codegen.optional(this.timestampFieldName); } /** * Resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type. * */ public Output type() { return this.type; } /** * The name of the entity. * */ @Export(name="typeName", refs={String.class}, tree="[0]") private Output typeName; /** * @return The name of the entity. * */ public Output> typeName() { return Codegen.optional(this.typeName); } /** * * @param name The _unique_ name of the resulting resource. */ public Profile(java.lang.String name) { this(name, ProfileArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Profile(java.lang.String name, ProfileArgs 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 Profile(java.lang.String name, ProfileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:Profile", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Profile(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:Profile", name, null, makeResourceOptions(options, id), false); } private static ProfileArgs makeArgs(ProfileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ProfileArgs.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/v20170101:Profile").build()), Output.of(Alias.builder().type("azure-native:customerinsights/v20170426:Profile").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 Profile get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Profile(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy