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

com.pulumi.azurenative.devspaces.ControllerArgs 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.devspaces;

import com.pulumi.azurenative.devspaces.inputs.SkuArgs;
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 ControllerArgs extends com.pulumi.resources.ResourceArgs {

    public static final ControllerArgs Empty = new ControllerArgs();

    /**
     * Region where the Azure resource is located.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Region where the Azure resource is located.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

    /**
     * Resource group to which the resource belongs.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Resource group to which the resource belongs.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Model representing SKU for Azure Dev Spaces Controller.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return Model representing SKU for Azure Dev Spaces Controller.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * Tags for the Azure resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Tags for the Azure resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Credentials of the target container host (base64).
     * 
     */
    @Import(name="targetContainerHostCredentialsBase64", required=true)
    private Output targetContainerHostCredentialsBase64;

    /**
     * @return Credentials of the target container host (base64).
     * 
     */
    public Output targetContainerHostCredentialsBase64() {
        return this.targetContainerHostCredentialsBase64;
    }

    /**
     * Resource ID of the target container host
     * 
     */
    @Import(name="targetContainerHostResourceId", required=true)
    private Output targetContainerHostResourceId;

    /**
     * @return Resource ID of the target container host
     * 
     */
    public Output targetContainerHostResourceId() {
        return this.targetContainerHostResourceId;
    }

    private ControllerArgs() {}

    private ControllerArgs(ControllerArgs $) {
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.targetContainerHostCredentialsBase64 = $.targetContainerHostCredentialsBase64;
        this.targetContainerHostResourceId = $.targetContainerHostResourceId;
    }

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

    public static final class Builder {
        private ControllerArgs $;

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

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

        /**
         * @param location Region where the Azure resource is located.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Region where the Azure resource is located.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

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

        /**
         * @param resourceGroupName Resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sku Model representing SKU for Azure Dev Spaces Controller.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Model representing SKU for Azure Dev Spaces Controller.
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

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

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

        /**
         * @param targetContainerHostCredentialsBase64 Credentials of the target container host (base64).
         * 
         * @return builder
         * 
         */
        public Builder targetContainerHostCredentialsBase64(Output targetContainerHostCredentialsBase64) {
            $.targetContainerHostCredentialsBase64 = targetContainerHostCredentialsBase64;
            return this;
        }

        /**
         * @param targetContainerHostCredentialsBase64 Credentials of the target container host (base64).
         * 
         * @return builder
         * 
         */
        public Builder targetContainerHostCredentialsBase64(String targetContainerHostCredentialsBase64) {
            return targetContainerHostCredentialsBase64(Output.of(targetContainerHostCredentialsBase64));
        }

        /**
         * @param targetContainerHostResourceId Resource ID of the target container host
         * 
         * @return builder
         * 
         */
        public Builder targetContainerHostResourceId(Output targetContainerHostResourceId) {
            $.targetContainerHostResourceId = targetContainerHostResourceId;
            return this;
        }

        /**
         * @param targetContainerHostResourceId Resource ID of the target container host
         * 
         * @return builder
         * 
         */
        public Builder targetContainerHostResourceId(String targetContainerHostResourceId) {
            return targetContainerHostResourceId(Output.of(targetContainerHostResourceId));
        }

        public ControllerArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ControllerArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("ControllerArgs", "sku");
            }
            if ($.targetContainerHostCredentialsBase64 == null) {
                throw new MissingRequiredPropertyException("ControllerArgs", "targetContainerHostCredentialsBase64");
            }
            if ($.targetContainerHostResourceId == null) {
                throw new MissingRequiredPropertyException("ControllerArgs", "targetContainerHostResourceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy