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

com.pulumi.azurenative.customerinsights.RelationshipLink 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.RelationshipLinkArgs;
import com.pulumi.azurenative.customerinsights.outputs.ParticipantProfilePropertyReferenceResponse;
import com.pulumi.azurenative.customerinsights.outputs.RelationshipLinkFieldMappingResponse;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The relationship link resource format.
 * Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
 * 
 * Other available API versions: 2017-01-01.
 * 
 * ## Example Usage
 * ### RelationshipLinks_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.customerinsights.RelationshipLink;
 * import com.pulumi.azurenative.customerinsights.RelationshipLinkArgs;
 * import com.pulumi.azurenative.customerinsights.inputs.ParticipantProfilePropertyReferenceArgs;
 * 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 relationshipLink = new RelationshipLink("relationshipLink", RelationshipLinkArgs.builder()
 *             .description(Map.of("en-us", "Link Description"))
 *             .displayName(Map.of("en-us", "Link DisplayName"))
 *             .hubName("sdkTestHub")
 *             .interactionType("testInteraction4332")
 *             .profilePropertyReferences(ParticipantProfilePropertyReferenceArgs.builder()
 *                 .interactionPropertyName("profile1")
 *                 .profilePropertyName("ProfileId")
 *                 .build())
 *             .relatedProfilePropertyReferences(ParticipantProfilePropertyReferenceArgs.builder()
 *                 .interactionPropertyName("profile1")
 *                 .profilePropertyName("ProfileId")
 *                 .build())
 *             .relationshipLinkName("Somelink")
 *             .relationshipName("testProfile2326994")
 *             .resourceGroupName("TestHubRG")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:customerinsights:RelationshipLink sdkTestHub/Somelink /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks/{relationshipLinkName} * ``` * */ @ResourceType(type="azure-native:customerinsights:RelationshipLink") public class RelationshipLink extends com.pulumi.resources.CustomResource { /** * Localized descriptions for the Relationship Link. * */ @Export(name="description", refs={Map.class,String.class}, tree="[0,1,1]") private Output> description; /** * @return Localized descriptions for the Relationship Link. * */ public Output>> description() { return Codegen.optional(this.description); } /** * Localized display name for the Relationship Link. * */ @Export(name="displayName", refs={Map.class,String.class}, tree="[0,1,1]") private Output> displayName; /** * @return Localized display name for the Relationship Link. * */ public Output>> displayName() { return Codegen.optional(this.displayName); } /** * The InteractionType associated with the Relationship Link. * */ @Export(name="interactionType", refs={String.class}, tree="[0]") private Output interactionType; /** * @return The InteractionType associated with the Relationship Link. * */ public Output interactionType() { return this.interactionType; } /** * The name of the Relationship Link. * */ @Export(name="linkName", refs={String.class}, tree="[0]") private Output linkName; /** * @return The name of the Relationship Link. * */ public Output linkName() { return this.linkName; } /** * The mappings between Interaction and Relationship fields. * */ @Export(name="mappings", refs={List.class,RelationshipLinkFieldMappingResponse.class}, tree="[0,1]") private Output> mappings; /** * @return The mappings between Interaction and Relationship fields. * */ public Output>> mappings() { return Codegen.optional(this.mappings); } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * The property references for the Profile of the Relationship. * */ @Export(name="profilePropertyReferences", refs={List.class,ParticipantProfilePropertyReferenceResponse.class}, tree="[0,1]") private Output> profilePropertyReferences; /** * @return The property references for the Profile of the Relationship. * */ public Output> profilePropertyReferences() { return this.profilePropertyReferences; } /** * Provisioning state. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state. * */ public Output provisioningState() { return this.provisioningState; } /** * The property references for the Related Profile of the Relationship. * */ @Export(name="relatedProfilePropertyReferences", refs={List.class,ParticipantProfilePropertyReferenceResponse.class}, tree="[0,1]") private Output> relatedProfilePropertyReferences; /** * @return The property references for the Related Profile of the Relationship. * */ public Output> relatedProfilePropertyReferences() { return this.relatedProfilePropertyReferences; } /** * The relationship guid id. * */ @Export(name="relationshipGuidId", refs={String.class}, tree="[0]") private Output relationshipGuidId; /** * @return The relationship guid id. * */ public Output relationshipGuidId() { return this.relationshipGuidId; } /** * The Relationship associated with the Link. * */ @Export(name="relationshipName", refs={String.class}, tree="[0]") private Output relationshipName; /** * @return The Relationship associated with the Link. * */ public Output relationshipName() { return this.relationshipName; } /** * 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 RelationshipLink(java.lang.String name) { this(name, RelationshipLinkArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public RelationshipLink(java.lang.String name, RelationshipLinkArgs 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 RelationshipLink(java.lang.String name, RelationshipLinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:RelationshipLink", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private RelationshipLink(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:RelationshipLink", name, null, makeResourceOptions(options, id), false); } private static RelationshipLinkArgs makeArgs(RelationshipLinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? RelationshipLinkArgs.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:RelationshipLink").build()), Output.of(Alias.builder().type("azure-native:customerinsights/v20170426:RelationshipLink").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 RelationshipLink get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RelationshipLink(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy