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

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

import com.pulumi.azurenative.logic.enums.MapType;
import com.pulumi.azurenative.logic.inputs.IntegrationAccountMapPropertiesParametersSchemaArgs;
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 IntegrationAccountMapArgs extends com.pulumi.resources.ResourceArgs {

    public static final IntegrationAccountMapArgs Empty = new IntegrationAccountMapArgs();

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

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

    /**
     * The content type.
     * 
     */
    @Import(name="contentType")
    private @Nullable Output contentType;

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

    /**
     * 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 integration account map name.
     * 
     */
    @Import(name="mapName")
    private @Nullable Output mapName;

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

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

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

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

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

    /**
     * The parameters schema of integration account map.
     * 
     */
    @Import(name="parametersSchema")
    private @Nullable Output parametersSchema;

    /**
     * @return The parameters schema of integration account map.
     * 
     */
    public Optional> parametersSchema() {
        return Optional.ofNullable(this.parametersSchema);
    }

    /**
     * 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 IntegrationAccountMapArgs() {}

    private IntegrationAccountMapArgs(IntegrationAccountMapArgs $) {
        this.content = $.content;
        this.contentType = $.contentType;
        this.integrationAccountName = $.integrationAccountName;
        this.location = $.location;
        this.mapName = $.mapName;
        this.mapType = $.mapType;
        this.metadata = $.metadata;
        this.parametersSchema = $.parametersSchema;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private IntegrationAccountMapArgs $;

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

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

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

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

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

        /**
         * @param contentType The content type.
         * 
         * @return builder
         * 
         */
        public Builder contentType(String contentType) {
            return contentType(Output.of(contentType));
        }

        /**
         * @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 mapName The integration account map name.
         * 
         * @return builder
         * 
         */
        public Builder mapName(@Nullable Output mapName) {
            $.mapName = mapName;
            return this;
        }

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

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

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

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

        /**
         * @param mapType The map type.
         * 
         * @return builder
         * 
         */
        public Builder mapType(MapType mapType) {
            return mapType(Either.ofRight(mapType));
        }

        /**
         * @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 parametersSchema The parameters schema of integration account map.
         * 
         * @return builder
         * 
         */
        public Builder parametersSchema(@Nullable Output parametersSchema) {
            $.parametersSchema = parametersSchema;
            return this;
        }

        /**
         * @param parametersSchema The parameters schema of integration account map.
         * 
         * @return builder
         * 
         */
        public Builder parametersSchema(IntegrationAccountMapPropertiesParametersSchemaArgs parametersSchema) {
            return parametersSchema(Output.of(parametersSchema));
        }

        /**
         * @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 IntegrationAccountMapArgs build() {
            if ($.integrationAccountName == null) {
                throw new MissingRequiredPropertyException("IntegrationAccountMapArgs", "integrationAccountName");
            }
            if ($.mapType == null) {
                throw new MissingRequiredPropertyException("IntegrationAccountMapArgs", "mapType");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IntegrationAccountMapArgs", "resourceGroupName");
            }
            return $;
        }
    }

}