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

com.pulumi.azurenative.storagecache.StorageTargetArgs 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.storagecache;

import com.pulumi.azurenative.storagecache.enums.OperationalStateType;
import com.pulumi.azurenative.storagecache.enums.StorageTargetType;
import com.pulumi.azurenative.storagecache.inputs.BlobNfsTargetArgs;
import com.pulumi.azurenative.storagecache.inputs.ClfsTargetArgs;
import com.pulumi.azurenative.storagecache.inputs.NamespaceJunctionArgs;
import com.pulumi.azurenative.storagecache.inputs.Nfs3TargetArgs;
import com.pulumi.azurenative.storagecache.inputs.UnknownTargetArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StorageTargetArgs Empty = new StorageTargetArgs();

    /**
     * Properties when targetType is blobNfs.
     * 
     */
    @Import(name="blobNfs")
    private @Nullable Output blobNfs;

    /**
     * @return Properties when targetType is blobNfs.
     * 
     */
    public Optional> blobNfs() {
        return Optional.ofNullable(this.blobNfs);
    }

    /**
     * Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
     * 
     */
    @Import(name="cacheName", required=true)
    private Output cacheName;

    /**
     * @return Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
     * 
     */
    public Output cacheName() {
        return this.cacheName;
    }

    /**
     * Properties when targetType is clfs.
     * 
     */
    @Import(name="clfs")
    private @Nullable Output clfs;

    /**
     * @return Properties when targetType is clfs.
     * 
     */
    public Optional> clfs() {
        return Optional.ofNullable(this.clfs);
    }

    /**
     * List of cache namespace junctions to target for namespace associations.
     * 
     */
    @Import(name="junctions")
    private @Nullable Output> junctions;

    /**
     * @return List of cache namespace junctions to target for namespace associations.
     * 
     */
    public Optional>> junctions() {
        return Optional.ofNullable(this.junctions);
    }

    /**
     * Properties when targetType is nfs3.
     * 
     */
    @Import(name="nfs3")
    private @Nullable Output nfs3;

    /**
     * @return Properties when targetType is nfs3.
     * 
     */
    public Optional> nfs3() {
        return Optional.ofNullable(this.nfs3);
    }

    /**
     * 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;
    }

    /**
     * Storage target operational state.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

    /**
     * @return Storage target operational state.
     * 
     */
    public Optional>> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * Name of Storage Target.
     * 
     */
    @Import(name="storageTargetName")
    private @Nullable Output storageTargetName;

    /**
     * @return Name of Storage Target.
     * 
     */
    public Optional> storageTargetName() {
        return Optional.ofNullable(this.storageTargetName);
    }

    /**
     * Type of the Storage Target.
     * 
     */
    @Import(name="targetType", required=true)
    private Output> targetType;

    /**
     * @return Type of the Storage Target.
     * 
     */
    public Output> targetType() {
        return this.targetType;
    }

    /**
     * Properties when targetType is unknown.
     * 
     */
    @Import(name="unknown")
    private @Nullable Output unknown;

    /**
     * @return Properties when targetType is unknown.
     * 
     */
    public Optional> unknown() {
        return Optional.ofNullable(this.unknown);
    }

    private StorageTargetArgs() {}

    private StorageTargetArgs(StorageTargetArgs $) {
        this.blobNfs = $.blobNfs;
        this.cacheName = $.cacheName;
        this.clfs = $.clfs;
        this.junctions = $.junctions;
        this.nfs3 = $.nfs3;
        this.resourceGroupName = $.resourceGroupName;
        this.state = $.state;
        this.storageTargetName = $.storageTargetName;
        this.targetType = $.targetType;
        this.unknown = $.unknown;
    }

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

    public static final class Builder {
        private StorageTargetArgs $;

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

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

        /**
         * @param blobNfs Properties when targetType is blobNfs.
         * 
         * @return builder
         * 
         */
        public Builder blobNfs(@Nullable Output blobNfs) {
            $.blobNfs = blobNfs;
            return this;
        }

        /**
         * @param blobNfs Properties when targetType is blobNfs.
         * 
         * @return builder
         * 
         */
        public Builder blobNfs(BlobNfsTargetArgs blobNfs) {
            return blobNfs(Output.of(blobNfs));
        }

        /**
         * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
         * 
         * @return builder
         * 
         */
        public Builder cacheName(Output cacheName) {
            $.cacheName = cacheName;
            return this;
        }

        /**
         * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
         * 
         * @return builder
         * 
         */
        public Builder cacheName(String cacheName) {
            return cacheName(Output.of(cacheName));
        }

        /**
         * @param clfs Properties when targetType is clfs.
         * 
         * @return builder
         * 
         */
        public Builder clfs(@Nullable Output clfs) {
            $.clfs = clfs;
            return this;
        }

        /**
         * @param clfs Properties when targetType is clfs.
         * 
         * @return builder
         * 
         */
        public Builder clfs(ClfsTargetArgs clfs) {
            return clfs(Output.of(clfs));
        }

        /**
         * @param junctions List of cache namespace junctions to target for namespace associations.
         * 
         * @return builder
         * 
         */
        public Builder junctions(@Nullable Output> junctions) {
            $.junctions = junctions;
            return this;
        }

        /**
         * @param junctions List of cache namespace junctions to target for namespace associations.
         * 
         * @return builder
         * 
         */
        public Builder junctions(List junctions) {
            return junctions(Output.of(junctions));
        }

        /**
         * @param junctions List of cache namespace junctions to target for namespace associations.
         * 
         * @return builder
         * 
         */
        public Builder junctions(NamespaceJunctionArgs... junctions) {
            return junctions(List.of(junctions));
        }

        /**
         * @param nfs3 Properties when targetType is nfs3.
         * 
         * @return builder
         * 
         */
        public Builder nfs3(@Nullable Output nfs3) {
            $.nfs3 = nfs3;
            return this;
        }

        /**
         * @param nfs3 Properties when targetType is nfs3.
         * 
         * @return builder
         * 
         */
        public Builder nfs3(Nfs3TargetArgs nfs3) {
            return nfs3(Output.of(nfs3));
        }

        /**
         * @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 state Storage target operational state.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Storage target operational state.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state Storage target operational state.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state Storage target operational state.
         * 
         * @return builder
         * 
         */
        public Builder state(OperationalStateType state) {
            return state(Either.ofRight(state));
        }

        /**
         * @param storageTargetName Name of Storage Target.
         * 
         * @return builder
         * 
         */
        public Builder storageTargetName(@Nullable Output storageTargetName) {
            $.storageTargetName = storageTargetName;
            return this;
        }

        /**
         * @param storageTargetName Name of Storage Target.
         * 
         * @return builder
         * 
         */
        public Builder storageTargetName(String storageTargetName) {
            return storageTargetName(Output.of(storageTargetName));
        }

        /**
         * @param targetType Type of the Storage Target.
         * 
         * @return builder
         * 
         */
        public Builder targetType(Output> targetType) {
            $.targetType = targetType;
            return this;
        }

        /**
         * @param targetType Type of the Storage Target.
         * 
         * @return builder
         * 
         */
        public Builder targetType(Either targetType) {
            return targetType(Output.of(targetType));
        }

        /**
         * @param targetType Type of the Storage Target.
         * 
         * @return builder
         * 
         */
        public Builder targetType(String targetType) {
            return targetType(Either.ofLeft(targetType));
        }

        /**
         * @param targetType Type of the Storage Target.
         * 
         * @return builder
         * 
         */
        public Builder targetType(StorageTargetType targetType) {
            return targetType(Either.ofRight(targetType));
        }

        /**
         * @param unknown Properties when targetType is unknown.
         * 
         * @return builder
         * 
         */
        public Builder unknown(@Nullable Output unknown) {
            $.unknown = unknown;
            return this;
        }

        /**
         * @param unknown Properties when targetType is unknown.
         * 
         * @return builder
         * 
         */
        public Builder unknown(UnknownTargetArgs unknown) {
            return unknown(Output.of(unknown));
        }

        public StorageTargetArgs build() {
            if ($.cacheName == null) {
                throw new MissingRequiredPropertyException("StorageTargetArgs", "cacheName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("StorageTargetArgs", "resourceGroupName");
            }
            if ($.targetType == null) {
                throw new MissingRequiredPropertyException("StorageTargetArgs", "targetType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy