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

com.pulumi.azurenative.hybridcompute.outputs.MachineRunCommandScriptSourceResponse 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.hybridcompute.outputs;

import com.pulumi.azurenative.hybridcompute.outputs.RunCommandManagedIdentityResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MachineRunCommandScriptSourceResponse {
    /**
     * @return Specifies the commandId of predefined built-in script.
     * 
     */
    private @Nullable String commandId;
    /**
     * @return Specifies the script content to be executed on the machine.
     * 
     */
    private @Nullable String script;
    /**
     * @return Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
     * 
     */
    private @Nullable String scriptUri;
    /**
     * @return User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
     * 
     */
    private @Nullable RunCommandManagedIdentityResponse scriptUriManagedIdentity;

    private MachineRunCommandScriptSourceResponse() {}
    /**
     * @return Specifies the commandId of predefined built-in script.
     * 
     */
    public Optional commandId() {
        return Optional.ofNullable(this.commandId);
    }
    /**
     * @return Specifies the script content to be executed on the machine.
     * 
     */
    public Optional script() {
        return Optional.ofNullable(this.script);
    }
    /**
     * @return Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.
     * 
     */
    public Optional scriptUri() {
        return Optional.ofNullable(this.scriptUri);
    }
    /**
     * @return User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
     * 
     */
    public Optional scriptUriManagedIdentity() {
        return Optional.ofNullable(this.scriptUriManagedIdentity);
    }

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

    public static Builder builder(MachineRunCommandScriptSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String commandId;
        private @Nullable String script;
        private @Nullable String scriptUri;
        private @Nullable RunCommandManagedIdentityResponse scriptUriManagedIdentity;
        public Builder() {}
        public Builder(MachineRunCommandScriptSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.commandId = defaults.commandId;
    	      this.script = defaults.script;
    	      this.scriptUri = defaults.scriptUri;
    	      this.scriptUriManagedIdentity = defaults.scriptUriManagedIdentity;
        }

        @CustomType.Setter
        public Builder commandId(@Nullable String commandId) {

            this.commandId = commandId;
            return this;
        }
        @CustomType.Setter
        public Builder script(@Nullable String script) {

            this.script = script;
            return this;
        }
        @CustomType.Setter
        public Builder scriptUri(@Nullable String scriptUri) {

            this.scriptUri = scriptUri;
            return this;
        }
        @CustomType.Setter
        public Builder scriptUriManagedIdentity(@Nullable RunCommandManagedIdentityResponse scriptUriManagedIdentity) {

            this.scriptUriManagedIdentity = scriptUriManagedIdentity;
            return this;
        }
        public MachineRunCommandScriptSourceResponse build() {
            final var _resultValue = new MachineRunCommandScriptSourceResponse();
            _resultValue.commandId = commandId;
            _resultValue.script = script;
            _resultValue.scriptUri = scriptUri;
            _resultValue.scriptUriManagedIdentity = scriptUriManagedIdentity;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy