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

com.pulumi.azurenative.customerinsights.RelationshipLinkArgs 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.customerinsights.inputs.ParticipantProfilePropertyReferenceArgs;
import com.pulumi.azurenative.customerinsights.inputs.RelationshipLinkFieldMappingArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 RelationshipLinkArgs extends com.pulumi.resources.ResourceArgs {

    public static final RelationshipLinkArgs Empty = new RelationshipLinkArgs();

    /**
     * Localized descriptions for the Relationship Link.
     * 
     */
    @Import(name="description")
    private @Nullable Output> description;

    /**
     * @return Localized descriptions for the Relationship Link.
     * 
     */
    public Optional>> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Localized display name for the Relationship Link.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output> displayName;

    /**
     * @return Localized display name for the Relationship Link.
     * 
     */
    public Optional>> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * 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;
    }

    /**
     * The InteractionType associated with the Relationship Link.
     * 
     */
    @Import(name="interactionType", required=true)
    private Output interactionType;

    /**
     * @return The InteractionType associated with the Relationship Link.
     * 
     */
    public Output interactionType() {
        return this.interactionType;
    }

    /**
     * The mappings between Interaction and Relationship fields.
     * 
     */
    @Import(name="mappings")
    private @Nullable Output> mappings;

    /**
     * @return The mappings between Interaction and Relationship fields.
     * 
     */
    public Optional>> mappings() {
        return Optional.ofNullable(this.mappings);
    }

    /**
     * The property references for the Profile of the Relationship.
     * 
     */
    @Import(name="profilePropertyReferences", required=true)
    private Output> profilePropertyReferences;

    /**
     * @return The property references for the Profile of the Relationship.
     * 
     */
    public Output> profilePropertyReferences() {
        return this.profilePropertyReferences;
    }

    /**
     * The property references for the Related Profile of the Relationship.
     * 
     */
    @Import(name="relatedProfilePropertyReferences", required=true)
    private Output> relatedProfilePropertyReferences;

    /**
     * @return The property references for the Related Profile of the Relationship.
     * 
     */
    public Output> relatedProfilePropertyReferences() {
        return this.relatedProfilePropertyReferences;
    }

    /**
     * The name of the relationship link.
     * 
     */
    @Import(name="relationshipLinkName")
    private @Nullable Output relationshipLinkName;

    /**
     * @return The name of the relationship link.
     * 
     */
    public Optional> relationshipLinkName() {
        return Optional.ofNullable(this.relationshipLinkName);
    }

    /**
     * The Relationship associated with the Link.
     * 
     */
    @Import(name="relationshipName", required=true)
    private Output relationshipName;

    /**
     * @return The Relationship associated with the Link.
     * 
     */
    public Output relationshipName() {
        return this.relationshipName;
    }

    /**
     * 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;
    }

    private RelationshipLinkArgs() {}

    private RelationshipLinkArgs(RelationshipLinkArgs $) {
        this.description = $.description;
        this.displayName = $.displayName;
        this.hubName = $.hubName;
        this.interactionType = $.interactionType;
        this.mappings = $.mappings;
        this.profilePropertyReferences = $.profilePropertyReferences;
        this.relatedProfilePropertyReferences = $.relatedProfilePropertyReferences;
        this.relationshipLinkName = $.relationshipLinkName;
        this.relationshipName = $.relationshipName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private RelationshipLinkArgs $;

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

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

        /**
         * @param description Localized descriptions for the Relationship Link.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Localized descriptions for the Relationship Link.
         * 
         * @return builder
         * 
         */
        public Builder description(Map description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Localized display name for the Relationship Link.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output> displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Localized display name for the Relationship Link.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Map displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @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 interactionType The InteractionType associated with the Relationship Link.
         * 
         * @return builder
         * 
         */
        public Builder interactionType(Output interactionType) {
            $.interactionType = interactionType;
            return this;
        }

        /**
         * @param interactionType The InteractionType associated with the Relationship Link.
         * 
         * @return builder
         * 
         */
        public Builder interactionType(String interactionType) {
            return interactionType(Output.of(interactionType));
        }

        /**
         * @param mappings The mappings between Interaction and Relationship fields.
         * 
         * @return builder
         * 
         */
        public Builder mappings(@Nullable Output> mappings) {
            $.mappings = mappings;
            return this;
        }

        /**
         * @param mappings The mappings between Interaction and Relationship fields.
         * 
         * @return builder
         * 
         */
        public Builder mappings(List mappings) {
            return mappings(Output.of(mappings));
        }

        /**
         * @param mappings The mappings between Interaction and Relationship fields.
         * 
         * @return builder
         * 
         */
        public Builder mappings(RelationshipLinkFieldMappingArgs... mappings) {
            return mappings(List.of(mappings));
        }

        /**
         * @param profilePropertyReferences The property references for the Profile of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder profilePropertyReferences(Output> profilePropertyReferences) {
            $.profilePropertyReferences = profilePropertyReferences;
            return this;
        }

        /**
         * @param profilePropertyReferences The property references for the Profile of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder profilePropertyReferences(List profilePropertyReferences) {
            return profilePropertyReferences(Output.of(profilePropertyReferences));
        }

        /**
         * @param profilePropertyReferences The property references for the Profile of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder profilePropertyReferences(ParticipantProfilePropertyReferenceArgs... profilePropertyReferences) {
            return profilePropertyReferences(List.of(profilePropertyReferences));
        }

        /**
         * @param relatedProfilePropertyReferences The property references for the Related Profile of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder relatedProfilePropertyReferences(Output> relatedProfilePropertyReferences) {
            $.relatedProfilePropertyReferences = relatedProfilePropertyReferences;
            return this;
        }

        /**
         * @param relatedProfilePropertyReferences The property references for the Related Profile of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder relatedProfilePropertyReferences(List relatedProfilePropertyReferences) {
            return relatedProfilePropertyReferences(Output.of(relatedProfilePropertyReferences));
        }

        /**
         * @param relatedProfilePropertyReferences The property references for the Related Profile of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder relatedProfilePropertyReferences(ParticipantProfilePropertyReferenceArgs... relatedProfilePropertyReferences) {
            return relatedProfilePropertyReferences(List.of(relatedProfilePropertyReferences));
        }

        /**
         * @param relationshipLinkName The name of the relationship link.
         * 
         * @return builder
         * 
         */
        public Builder relationshipLinkName(@Nullable Output relationshipLinkName) {
            $.relationshipLinkName = relationshipLinkName;
            return this;
        }

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

        /**
         * @param relationshipName The Relationship associated with the Link.
         * 
         * @return builder
         * 
         */
        public Builder relationshipName(Output relationshipName) {
            $.relationshipName = relationshipName;
            return this;
        }

        /**
         * @param relationshipName The Relationship associated with the Link.
         * 
         * @return builder
         * 
         */
        public Builder relationshipName(String relationshipName) {
            return relationshipName(Output.of(relationshipName));
        }

        /**
         * @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));
        }

        public RelationshipLinkArgs build() {
            if ($.hubName == null) {
                throw new MissingRequiredPropertyException("RelationshipLinkArgs", "hubName");
            }
            if ($.interactionType == null) {
                throw new MissingRequiredPropertyException("RelationshipLinkArgs", "interactionType");
            }
            if ($.profilePropertyReferences == null) {
                throw new MissingRequiredPropertyException("RelationshipLinkArgs", "profilePropertyReferences");
            }
            if ($.relatedProfilePropertyReferences == null) {
                throw new MissingRequiredPropertyException("RelationshipLinkArgs", "relatedProfilePropertyReferences");
            }
            if ($.relationshipName == null) {
                throw new MissingRequiredPropertyException("RelationshipLinkArgs", "relationshipName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RelationshipLinkArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy