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

com.pulumi.azurenative.logic.IntegrationAccountPartnerArgs 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.logic;

import com.pulumi.azurenative.logic.enums.PartnerType;
import com.pulumi.azurenative.logic.inputs.PartnerContentArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class IntegrationAccountPartnerArgs extends com.pulumi.resources.ResourceArgs {

    public static final IntegrationAccountPartnerArgs Empty = new IntegrationAccountPartnerArgs();

    /**
     * The partner content.
     * 
     */
    @Import(name="content", required=true)
    private Output content;

    /**
     * @return The partner content.
     * 
     */
    public Output content() {
        return this.content;
    }

    /**
     * The integration account name.
     * 
     */
    @Import(name="integrationAccountName", required=true)
    private Output integrationAccountName;

    /**
     * @return The integration account name.
     * 
     */
    public Output integrationAccountName() {
        return this.integrationAccountName;
    }

    /**
     * The resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The metadata.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output metadata;

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

    /**
     * The integration account partner name.
     * 
     */
    @Import(name="partnerName")
    private @Nullable Output partnerName;

    /**
     * @return The integration account partner name.
     * 
     */
    public Optional> partnerName() {
        return Optional.ofNullable(this.partnerName);
    }

    /**
     * The partner type.
     * 
     */
    @Import(name="partnerType", required=true)
    private Output> partnerType;

    /**
     * @return The partner type.
     * 
     */
    public Output> partnerType() {
        return this.partnerType;
    }

    /**
     * The resource group name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private IntegrationAccountPartnerArgs() {}

    private IntegrationAccountPartnerArgs(IntegrationAccountPartnerArgs $) {
        this.content = $.content;
        this.integrationAccountName = $.integrationAccountName;
        this.location = $.location;
        this.metadata = $.metadata;
        this.partnerName = $.partnerName;
        this.partnerType = $.partnerType;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private IntegrationAccountPartnerArgs $;

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

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

        /**
         * @param content The partner content.
         * 
         * @return builder
         * 
         */
        public Builder content(Output content) {
            $.content = content;
            return this;
        }

        /**
         * @param content The partner content.
         * 
         * @return builder
         * 
         */
        public Builder content(PartnerContentArgs content) {
            return content(Output.of(content));
        }

        /**
         * @param integrationAccountName The integration account name.
         * 
         * @return builder
         * 
         */
        public Builder integrationAccountName(Output integrationAccountName) {
            $.integrationAccountName = integrationAccountName;
            return this;
        }

        /**
         * @param integrationAccountName The integration account name.
         * 
         * @return builder
         * 
         */
        public Builder integrationAccountName(String integrationAccountName) {
            return integrationAccountName(Output.of(integrationAccountName));
        }

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

        /**
         * @param location The resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

        /**
         * @param metadata The metadata.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Object metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param partnerName The integration account partner name.
         * 
         * @return builder
         * 
         */
        public Builder partnerName(@Nullable Output partnerName) {
            $.partnerName = partnerName;
            return this;
        }

        /**
         * @param partnerName The integration account partner name.
         * 
         * @return builder
         * 
         */
        public Builder partnerName(String partnerName) {
            return partnerName(Output.of(partnerName));
        }

        /**
         * @param partnerType The partner type.
         * 
         * @return builder
         * 
         */
        public Builder partnerType(Output> partnerType) {
            $.partnerType = partnerType;
            return this;
        }

        /**
         * @param partnerType The partner type.
         * 
         * @return builder
         * 
         */
        public Builder partnerType(Either partnerType) {
            return partnerType(Output.of(partnerType));
        }

        /**
         * @param partnerType The partner type.
         * 
         * @return builder
         * 
         */
        public Builder partnerType(String partnerType) {
            return partnerType(Either.ofLeft(partnerType));
        }

        /**
         * @param partnerType The partner type.
         * 
         * @return builder
         * 
         */
        public Builder partnerType(PartnerType partnerType) {
            return partnerType(Either.ofRight(partnerType));
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags The resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public IntegrationAccountPartnerArgs build() {
            if ($.content == null) {
                throw new MissingRequiredPropertyException("IntegrationAccountPartnerArgs", "content");
            }
            if ($.integrationAccountName == null) {
                throw new MissingRequiredPropertyException("IntegrationAccountPartnerArgs", "integrationAccountName");
            }
            if ($.partnerType == null) {
                throw new MissingRequiredPropertyException("IntegrationAccountPartnerArgs", "partnerType");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IntegrationAccountPartnerArgs", "resourceGroupName");
            }
            return $;
        }
    }

}