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

com.pulumi.azure.compute.inputs.RunCommandSourceArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.compute.inputs;

import com.pulumi.azure.compute.inputs.RunCommandSourceScriptUriManagedIdentityArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RunCommandSourceArgs Empty = new RunCommandSourceArgs();

    @Import(name="commandId")
    private @Nullable Output commandId;

    public Optional> commandId() {
        return Optional.ofNullable(this.commandId);
    }

    @Import(name="script")
    private @Nullable Output script;

    public Optional> script() {
        return Optional.ofNullable(this.script);
    }

    @Import(name="scriptUri")
    private @Nullable Output scriptUri;

    public Optional> scriptUri() {
        return Optional.ofNullable(this.scriptUri);
    }

    /**
     * A `script_uri_managed_identity` block as defined above.
     * 
     */
    @Import(name="scriptUriManagedIdentity")
    private @Nullable Output scriptUriManagedIdentity;

    /**
     * @return A `script_uri_managed_identity` block as defined above.
     * 
     */
    public Optional> scriptUriManagedIdentity() {
        return Optional.ofNullable(this.scriptUriManagedIdentity);
    }

    private RunCommandSourceArgs() {}

    private RunCommandSourceArgs(RunCommandSourceArgs $) {
        this.commandId = $.commandId;
        this.script = $.script;
        this.scriptUri = $.scriptUri;
        this.scriptUriManagedIdentity = $.scriptUriManagedIdentity;
    }

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

    public static final class Builder {
        private RunCommandSourceArgs $;

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

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

        public Builder commandId(@Nullable Output commandId) {
            $.commandId = commandId;
            return this;
        }

        public Builder commandId(String commandId) {
            return commandId(Output.of(commandId));
        }

        public Builder script(@Nullable Output script) {
            $.script = script;
            return this;
        }

        public Builder script(String script) {
            return script(Output.of(script));
        }

        public Builder scriptUri(@Nullable Output scriptUri) {
            $.scriptUri = scriptUri;
            return this;
        }

        public Builder scriptUri(String scriptUri) {
            return scriptUri(Output.of(scriptUri));
        }

        /**
         * @param scriptUriManagedIdentity A `script_uri_managed_identity` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder scriptUriManagedIdentity(@Nullable Output scriptUriManagedIdentity) {
            $.scriptUriManagedIdentity = scriptUriManagedIdentity;
            return this;
        }

        /**
         * @param scriptUriManagedIdentity A `script_uri_managed_identity` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder scriptUriManagedIdentity(RunCommandSourceScriptUriManagedIdentityArgs scriptUriManagedIdentity) {
            return scriptUriManagedIdentity(Output.of(scriptUriManagedIdentity));
        }

        public RunCommandSourceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy