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

com.pulumi.azurenative.customerinsights.RelationshipArgs 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.enums.CardinalityTypes;
import com.pulumi.azurenative.customerinsights.inputs.PropertyDefinitionArgs;
import com.pulumi.azurenative.customerinsights.inputs.RelationshipTypeMappingArgs;
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 RelationshipArgs extends com.pulumi.resources.ResourceArgs {

    public static final RelationshipArgs Empty = new RelationshipArgs();

    /**
     * The Relationship Cardinality.
     * 
     */
    @Import(name="cardinality")
    private @Nullable Output cardinality;

    /**
     * @return The Relationship Cardinality.
     * 
     */
    public Optional> cardinality() {
        return Optional.ofNullable(this.cardinality);
    }

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

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

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

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

    /**
     * The expiry date time in UTC.
     * 
     */
    @Import(name="expiryDateTimeUtc")
    private @Nullable Output expiryDateTimeUtc;

    /**
     * @return The expiry date time in UTC.
     * 
     */
    public Optional> expiryDateTimeUtc() {
        return Optional.ofNullable(this.expiryDateTimeUtc);
    }

    /**
     * The properties of the Relationship.
     * 
     */
    @Import(name="fields")
    private @Nullable Output> fields;

    /**
     * @return The properties of the Relationship.
     * 
     */
    public Optional>> fields() {
        return Optional.ofNullable(this.fields);
    }

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

    /**
     * Optional property to be used to map fields in profile to their strong ids in related profile.
     * 
     */
    @Import(name="lookupMappings")
    private @Nullable Output> lookupMappings;

    /**
     * @return Optional property to be used to map fields in profile to their strong ids in related profile.
     * 
     */
    public Optional>> lookupMappings() {
        return Optional.ofNullable(this.lookupMappings);
    }

    /**
     * Profile type.
     * 
     */
    @Import(name="profileType", required=true)
    private Output profileType;

    /**
     * @return Profile type.
     * 
     */
    public Output profileType() {
        return this.profileType;
    }

    /**
     * Related profile being referenced.
     * 
     */
    @Import(name="relatedProfileType", required=true)
    private Output relatedProfileType;

    /**
     * @return Related profile being referenced.
     * 
     */
    public Output relatedProfileType() {
        return this.relatedProfileType;
    }

    /**
     * The name of the Relationship.
     * 
     */
    @Import(name="relationshipName")
    private @Nullable Output relationshipName;

    /**
     * @return The name of the Relationship.
     * 
     */
    public Optional> relationshipName() {
        return Optional.ofNullable(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 RelationshipArgs() {}

    private RelationshipArgs(RelationshipArgs $) {
        this.cardinality = $.cardinality;
        this.description = $.description;
        this.displayName = $.displayName;
        this.expiryDateTimeUtc = $.expiryDateTimeUtc;
        this.fields = $.fields;
        this.hubName = $.hubName;
        this.lookupMappings = $.lookupMappings;
        this.profileType = $.profileType;
        this.relatedProfileType = $.relatedProfileType;
        this.relationshipName = $.relationshipName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private RelationshipArgs $;

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

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

        /**
         * @param cardinality The Relationship Cardinality.
         * 
         * @return builder
         * 
         */
        public Builder cardinality(@Nullable Output cardinality) {
            $.cardinality = cardinality;
            return this;
        }

        /**
         * @param cardinality The Relationship Cardinality.
         * 
         * @return builder
         * 
         */
        public Builder cardinality(CardinalityTypes cardinality) {
            return cardinality(Output.of(cardinality));
        }

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

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

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

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

        /**
         * @param expiryDateTimeUtc The expiry date time in UTC.
         * 
         * @return builder
         * 
         */
        public Builder expiryDateTimeUtc(@Nullable Output expiryDateTimeUtc) {
            $.expiryDateTimeUtc = expiryDateTimeUtc;
            return this;
        }

        /**
         * @param expiryDateTimeUtc The expiry date time in UTC.
         * 
         * @return builder
         * 
         */
        public Builder expiryDateTimeUtc(String expiryDateTimeUtc) {
            return expiryDateTimeUtc(Output.of(expiryDateTimeUtc));
        }

        /**
         * @param fields The properties of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder fields(@Nullable Output> fields) {
            $.fields = fields;
            return this;
        }

        /**
         * @param fields The properties of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder fields(List fields) {
            return fields(Output.of(fields));
        }

        /**
         * @param fields The properties of the Relationship.
         * 
         * @return builder
         * 
         */
        public Builder fields(PropertyDefinitionArgs... fields) {
            return fields(List.of(fields));
        }

        /**
         * @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 lookupMappings Optional property to be used to map fields in profile to their strong ids in related profile.
         * 
         * @return builder
         * 
         */
        public Builder lookupMappings(@Nullable Output> lookupMappings) {
            $.lookupMappings = lookupMappings;
            return this;
        }

        /**
         * @param lookupMappings Optional property to be used to map fields in profile to their strong ids in related profile.
         * 
         * @return builder
         * 
         */
        public Builder lookupMappings(List lookupMappings) {
            return lookupMappings(Output.of(lookupMappings));
        }

        /**
         * @param lookupMappings Optional property to be used to map fields in profile to their strong ids in related profile.
         * 
         * @return builder
         * 
         */
        public Builder lookupMappings(RelationshipTypeMappingArgs... lookupMappings) {
            return lookupMappings(List.of(lookupMappings));
        }

        /**
         * @param profileType Profile type.
         * 
         * @return builder
         * 
         */
        public Builder profileType(Output profileType) {
            $.profileType = profileType;
            return this;
        }

        /**
         * @param profileType Profile type.
         * 
         * @return builder
         * 
         */
        public Builder profileType(String profileType) {
            return profileType(Output.of(profileType));
        }

        /**
         * @param relatedProfileType Related profile being referenced.
         * 
         * @return builder
         * 
         */
        public Builder relatedProfileType(Output relatedProfileType) {
            $.relatedProfileType = relatedProfileType;
            return this;
        }

        /**
         * @param relatedProfileType Related profile being referenced.
         * 
         * @return builder
         * 
         */
        public Builder relatedProfileType(String relatedProfileType) {
            return relatedProfileType(Output.of(relatedProfileType));
        }

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

        /**
         * @param relationshipName The name of the Relationship.
         * 
         * @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 RelationshipArgs build() {
            if ($.hubName == null) {
                throw new MissingRequiredPropertyException("RelationshipArgs", "hubName");
            }
            if ($.profileType == null) {
                throw new MissingRequiredPropertyException("RelationshipArgs", "profileType");
            }
            if ($.relatedProfileType == null) {
                throw new MissingRequiredPropertyException("RelationshipArgs", "relatedProfileType");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RelationshipArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy