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

com.pulumi.azurenative.servicebus.MigrationConfigArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.servicebus;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MigrationConfigArgs Empty = new MigrationConfigArgs();

    /**
     * The configuration name. Should always be "$default".
     * 
     */
    @Import(name="configName")
    private @Nullable Output configName;

    /**
     * @return The configuration name. Should always be "$default".
     * 
     */
    public Optional> configName() {
        return Optional.ofNullable(this.configName);
    }

    /**
     * The namespace name
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return The namespace name
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * Name to access Standard Namespace after migration
     * 
     */
    @Import(name="postMigrationName", required=true)
    private Output postMigrationName;

    /**
     * @return Name to access Standard Namespace after migration
     * 
     */
    public Output postMigrationName() {
        return this.postMigrationName;
    }

    /**
     * Name of the Resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Existing premium Namespace ARM Id name which has no entities, will be used for migration
     * 
     */
    @Import(name="targetNamespace", required=true)
    private Output targetNamespace;

    /**
     * @return Existing premium Namespace ARM Id name which has no entities, will be used for migration
     * 
     */
    public Output targetNamespace() {
        return this.targetNamespace;
    }

    private MigrationConfigArgs() {}

    private MigrationConfigArgs(MigrationConfigArgs $) {
        this.configName = $.configName;
        this.namespaceName = $.namespaceName;
        this.postMigrationName = $.postMigrationName;
        this.resourceGroupName = $.resourceGroupName;
        this.targetNamespace = $.targetNamespace;
    }

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

    public static final class Builder {
        private MigrationConfigArgs $;

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

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

        /**
         * @param configName The configuration name. Should always be "$default".
         * 
         * @return builder
         * 
         */
        public Builder configName(@Nullable Output configName) {
            $.configName = configName;
            return this;
        }

        /**
         * @param configName The configuration name. Should always be "$default".
         * 
         * @return builder
         * 
         */
        public Builder configName(String configName) {
            return configName(Output.of(configName));
        }

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

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

        /**
         * @param postMigrationName Name to access Standard Namespace after migration
         * 
         * @return builder
         * 
         */
        public Builder postMigrationName(Output postMigrationName) {
            $.postMigrationName = postMigrationName;
            return this;
        }

        /**
         * @param postMigrationName Name to access Standard Namespace after migration
         * 
         * @return builder
         * 
         */
        public Builder postMigrationName(String postMigrationName) {
            return postMigrationName(Output.of(postMigrationName));
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param targetNamespace Existing premium Namespace ARM Id name which has no entities, will be used for migration
         * 
         * @return builder
         * 
         */
        public Builder targetNamespace(Output targetNamespace) {
            $.targetNamespace = targetNamespace;
            return this;
        }

        /**
         * @param targetNamespace Existing premium Namespace ARM Id name which has no entities, will be used for migration
         * 
         * @return builder
         * 
         */
        public Builder targetNamespace(String targetNamespace) {
            return targetNamespace(Output.of(targetNamespace));
        }

        public MigrationConfigArgs build() {
            if ($.namespaceName == null) {
                throw new MissingRequiredPropertyException("MigrationConfigArgs", "namespaceName");
            }
            if ($.postMigrationName == null) {
                throw new MissingRequiredPropertyException("MigrationConfigArgs", "postMigrationName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MigrationConfigArgs", "resourceGroupName");
            }
            if ($.targetNamespace == null) {
                throw new MissingRequiredPropertyException("MigrationConfigArgs", "targetNamespace");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy