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

com.pulumi.azurenative.devtestlab.ServiceFabricArgs 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.devtestlab;

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 ServiceFabricArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceFabricArgs Empty = new ServiceFabricArgs();

    /**
     * The resource id of the environment under which the service fabric resource is present
     * 
     */
    @Import(name="environmentId")
    private @Nullable Output environmentId;

    /**
     * @return The resource id of the environment under which the service fabric resource is present
     * 
     */
    public Optional> environmentId() {
        return Optional.ofNullable(this.environmentId);
    }

    /**
     * The backing service fabric resource's id
     * 
     */
    @Import(name="externalServiceFabricId")
    private @Nullable Output externalServiceFabricId;

    /**
     * @return The backing service fabric resource's id
     * 
     */
    public Optional> externalServiceFabricId() {
        return Optional.ofNullable(this.externalServiceFabricId);
    }

    /**
     * The name of the lab.
     * 
     */
    @Import(name="labName", required=true)
    private Output labName;

    /**
     * @return The name of the lab.
     * 
     */
    public Output labName() {
        return this.labName;
    }

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

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

    /**
     * The name of the service fabric.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the service fabric.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

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

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

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

    /**
     * The name of the user profile.
     * 
     */
    @Import(name="userName", required=true)
    private Output userName;

    /**
     * @return The name of the user profile.
     * 
     */
    public Output userName() {
        return this.userName;
    }

    private ServiceFabricArgs() {}

    private ServiceFabricArgs(ServiceFabricArgs $) {
        this.environmentId = $.environmentId;
        this.externalServiceFabricId = $.externalServiceFabricId;
        this.labName = $.labName;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private ServiceFabricArgs $;

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

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

        /**
         * @param environmentId The resource id of the environment under which the service fabric resource is present
         * 
         * @return builder
         * 
         */
        public Builder environmentId(@Nullable Output environmentId) {
            $.environmentId = environmentId;
            return this;
        }

        /**
         * @param environmentId The resource id of the environment under which the service fabric resource is present
         * 
         * @return builder
         * 
         */
        public Builder environmentId(String environmentId) {
            return environmentId(Output.of(environmentId));
        }

        /**
         * @param externalServiceFabricId The backing service fabric resource's id
         * 
         * @return builder
         * 
         */
        public Builder externalServiceFabricId(@Nullable Output externalServiceFabricId) {
            $.externalServiceFabricId = externalServiceFabricId;
            return this;
        }

        /**
         * @param externalServiceFabricId The backing service fabric resource's id
         * 
         * @return builder
         * 
         */
        public Builder externalServiceFabricId(String externalServiceFabricId) {
            return externalServiceFabricId(Output.of(externalServiceFabricId));
        }

        /**
         * @param labName The name of the lab.
         * 
         * @return builder
         * 
         */
        public Builder labName(Output labName) {
            $.labName = labName;
            return this;
        }

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

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

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

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

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

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

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

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

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

        /**
         * @param userName The name of the user profile.
         * 
         * @return builder
         * 
         */
        public Builder userName(Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The name of the user profile.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public ServiceFabricArgs build() {
            if ($.labName == null) {
                throw new MissingRequiredPropertyException("ServiceFabricArgs", "labName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ServiceFabricArgs", "resourceGroupName");
            }
            if ($.userName == null) {
                throw new MissingRequiredPropertyException("ServiceFabricArgs", "userName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy