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

com.pulumi.azurenative.azuredatatransfer.FlowArgs 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.azuredatatransfer;

import com.pulumi.azurenative.azuredatatransfer.inputs.FlowPropertiesArgs;
import com.pulumi.azurenative.azuredatatransfer.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.azuredatatransfer.inputs.PlanArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FlowArgs Empty = new FlowArgs();

    /**
     * The name for the connection that is to be requested.
     * 
     */
    @Import(name="connectionName", required=true)
    private Output connectionName;

    /**
     * @return The name for the connection that is to be requested.
     * 
     */
    public Output connectionName() {
        return this.connectionName;
    }

    /**
     * The name for the flow that is to be onboarded.
     * 
     */
    @Import(name="flowName")
    private @Nullable Output flowName;

    /**
     * @return The name for the flow that is to be onboarded.
     * 
     */
    public Optional> flowName() {
        return Optional.ofNullable(this.flowName);
    }

    /**
     * The managed identity of the flow resource, if configured.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The managed identity of the flow resource, if configured.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Plan for the resource.
     * 
     */
    @Import(name="plan")
    private @Nullable Output plan;

    /**
     * @return Plan for the resource.
     * 
     */
    public Optional> plan() {
        return Optional.ofNullable(this.plan);
    }

    /**
     * Properties of flow
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Properties of flow
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

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

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

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

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

    private FlowArgs() {}

    private FlowArgs(FlowArgs $) {
        this.connectionName = $.connectionName;
        this.flowName = $.flowName;
        this.identity = $.identity;
        this.location = $.location;
        this.plan = $.plan;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private FlowArgs $;

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

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

        /**
         * @param connectionName The name for the connection that is to be requested.
         * 
         * @return builder
         * 
         */
        public Builder connectionName(Output connectionName) {
            $.connectionName = connectionName;
            return this;
        }

        /**
         * @param connectionName The name for the connection that is to be requested.
         * 
         * @return builder
         * 
         */
        public Builder connectionName(String connectionName) {
            return connectionName(Output.of(connectionName));
        }

        /**
         * @param flowName The name for the flow that is to be onboarded.
         * 
         * @return builder
         * 
         */
        public Builder flowName(@Nullable Output flowName) {
            $.flowName = flowName;
            return this;
        }

        /**
         * @param flowName The name for the flow that is to be onboarded.
         * 
         * @return builder
         * 
         */
        public Builder flowName(String flowName) {
            return flowName(Output.of(flowName));
        }

        /**
         * @param identity The managed identity of the flow resource, if configured.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The managed identity of the flow resource, if configured.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

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

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

        /**
         * @param plan Plan for the resource.
         * 
         * @return builder
         * 
         */
        public Builder plan(@Nullable Output plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan Plan for the resource.
         * 
         * @return builder
         * 
         */
        public Builder plan(PlanArgs plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param properties Properties of flow
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Properties of flow
         * 
         * @return builder
         * 
         */
        public Builder properties(FlowPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

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

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

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

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

        public FlowArgs build() {
            if ($.connectionName == null) {
                throw new MissingRequiredPropertyException("FlowArgs", "connectionName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("FlowArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy