com.pulumi.azurenative.customerinsights.Relationship Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.RelationshipArgs;
import com.pulumi.azurenative.customerinsights.outputs.PropertyDefinitionResponse;
import com.pulumi.azurenative.customerinsights.outputs.RelationshipTypeMappingResponse;
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 resource format.
* Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
*
* ## Example Usage
* ### Relationships_CreateOrUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.customerinsights.Relationship;
* import com.pulumi.azurenative.customerinsights.RelationshipArgs;
* 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 relationship = new Relationship("relationship", RelationshipArgs.builder()
* .cardinality("OneToOne")
* .description(Map.of("en-us", "Relationship Description"))
* .displayName(Map.of("en-us", "Relationship DisplayName"))
* .fields()
* .hubName("sdkTestHub")
* .profileType("testProfile2326994")
* .relatedProfileType("testProfile2326994")
* .relationshipName("SomeRelationship")
* .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:Relationship sdkTestHub/testProfile2326994 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}
* ```
*
*/
@ResourceType(type="azure-native:customerinsights:Relationship")
public class Relationship extends com.pulumi.resources.CustomResource {
/**
* The Relationship Cardinality.
*
*/
@Export(name="cardinality", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> cardinality;
/**
* @return The Relationship Cardinality.
*
*/
public Output> cardinality() {
return Codegen.optional(this.cardinality);
}
/**
* Localized descriptions for the Relationship.
*
*/
@Export(name="description", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> description;
/**
* @return Localized descriptions for the Relationship.
*
*/
public Output>> description() {
return Codegen.optional(this.description);
}
/**
* Localized display name for the Relationship.
*
*/
@Export(name="displayName", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> displayName;
/**
* @return Localized display name for the Relationship.
*
*/
public Output>> displayName() {
return Codegen.optional(this.displayName);
}
/**
* The expiry date time in UTC.
*
*/
@Export(name="expiryDateTimeUtc", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> expiryDateTimeUtc;
/**
* @return The expiry date time in UTC.
*
*/
public Output> expiryDateTimeUtc() {
return Codegen.optional(this.expiryDateTimeUtc);
}
/**
* The properties of the Relationship.
*
*/
@Export(name="fields", refs={List.class,PropertyDefinitionResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> fields;
/**
* @return The properties of the Relationship.
*
*/
public Output>> fields() {
return Codegen.optional(this.fields);
}
/**
* Optional property to be used to map fields in profile to their strong ids in related profile.
*
*/
@Export(name="lookupMappings", refs={List.class,RelationshipTypeMappingResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> lookupMappings;
/**
* @return Optional property to be used to map fields in profile to their strong ids in related profile.
*
*/
public Output>> lookupMappings() {
return Codegen.optional(this.lookupMappings);
}
/**
* Resource name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource name.
*
*/
public Output name() {
return this.name;
}
/**
* Profile type.
*
*/
@Export(name="profileType", refs={String.class}, tree="[0]")
private Output profileType;
/**
* @return Profile type.
*
*/
public Output profileType() {
return this.profileType;
}
/**
* Provisioning state.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Provisioning state.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Related profile being referenced.
*
*/
@Export(name="relatedProfileType", refs={String.class}, tree="[0]")
private Output relatedProfileType;
/**
* @return Related profile being referenced.
*
*/
public Output relatedProfileType() {
return this.relatedProfileType;
}
/**
* 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 name.
*
*/
@Export(name="relationshipName", refs={String.class}, tree="[0]")
private Output relationshipName;
/**
* @return The Relationship name.
*
*/
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 Relationship(java.lang.String name) {
this(name, RelationshipArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Relationship(java.lang.String name, RelationshipArgs 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 Relationship(java.lang.String name, RelationshipArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:customerinsights:Relationship", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Relationship(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:customerinsights:Relationship", name, null, makeResourceOptions(options, id), false);
}
private static RelationshipArgs makeArgs(RelationshipArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? RelationshipArgs.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:Relationship").build()),
Output.of(Alias.builder().type("azure-native:customerinsights/v20170426:Relationship").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 Relationship get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Relationship(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy