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

com.pulumi.azurenative.storagemover.EndpointArgs 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.storagemover;

import com.pulumi.azurenative.storagemover.inputs.AzureStorageBlobContainerEndpointPropertiesArgs;
import com.pulumi.azurenative.storagemover.inputs.NfsMountEndpointPropertiesArgs;
import com.pulumi.core.Either;
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 EndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final EndpointArgs Empty = new EndpointArgs();

    /**
     * The name of the Endpoint resource.
     * 
     */
    @Import(name="endpointName")
    private @Nullable Output endpointName;

    /**
     * @return The name of the Endpoint resource.
     * 
     */
    public Optional> endpointName() {
        return Optional.ofNullable(this.endpointName);
    }

    /**
     * The resource specific properties for the Storage Mover resource.
     * 
     */
    @Import(name="properties", required=true)
    private Output> properties;

    /**
     * @return The resource specific properties for the Storage Mover resource.
     * 
     */
    public Output> properties() {
        return 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;
    }

    /**
     * The name of the Storage Mover resource.
     * 
     */
    @Import(name="storageMoverName", required=true)
    private Output storageMoverName;

    /**
     * @return The name of the Storage Mover resource.
     * 
     */
    public Output storageMoverName() {
        return this.storageMoverName;
    }

    private EndpointArgs() {}

    private EndpointArgs(EndpointArgs $) {
        this.endpointName = $.endpointName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.storageMoverName = $.storageMoverName;
    }

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

    public static final class Builder {
        private EndpointArgs $;

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

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

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

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

        /**
         * @param properties The resource specific properties for the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The resource specific properties for the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(Either properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param properties The resource specific properties for the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(AzureStorageBlobContainerEndpointPropertiesArgs properties) {
            return properties(Either.ofLeft(properties));
        }

        /**
         * @param properties The resource specific properties for the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(NfsMountEndpointPropertiesArgs properties) {
            return properties(Either.ofRight(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 storageMoverName The name of the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder storageMoverName(Output storageMoverName) {
            $.storageMoverName = storageMoverName;
            return this;
        }

        /**
         * @param storageMoverName The name of the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder storageMoverName(String storageMoverName) {
            return storageMoverName(Output.of(storageMoverName));
        }

        public EndpointArgs build() {
            if ($.properties == null) {
                throw new MissingRequiredPropertyException("EndpointArgs", "properties");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("EndpointArgs", "resourceGroupName");
            }
            if ($.storageMoverName == null) {
                throw new MissingRequiredPropertyException("EndpointArgs", "storageMoverName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy