
com.pulumi.azurenative.resources.outputs.GetAzurePowerShellScriptResult Maven / Gradle / Ivy
// *** 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.resources.outputs;
import com.pulumi.azurenative.resources.outputs.ContainerConfigurationResponse;
import com.pulumi.azurenative.resources.outputs.EnvironmentVariableResponse;
import com.pulumi.azurenative.resources.outputs.ManagedServiceIdentityResponse;
import com.pulumi.azurenative.resources.outputs.ScriptStatusResponse;
import com.pulumi.azurenative.resources.outputs.StorageAccountConfigurationResponse;
import com.pulumi.azurenative.resources.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetAzurePowerShellScriptResult {
/**
* @return Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2'
*
*/
private @Nullable String arguments;
/**
* @return Azure PowerShell module version to be used.
*
*/
private String azPowerShellVersion;
/**
* @return The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'.
*
*/
private @Nullable String cleanupPreference;
/**
* @return Container settings.
*
*/
private @Nullable ContainerConfigurationResponse containerSettings;
/**
* @return The environment variables to pass over to the script.
*
*/
private @Nullable List environmentVariables;
/**
* @return Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID.
*
*/
private @Nullable String forceUpdateTag;
/**
* @return String Id used to locate any resource on Azure.
*
*/
private String id;
/**
* @return Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.
*
*/
private @Nullable ManagedServiceIdentityResponse identity;
/**
* @return Type of the script.
* Expected value is 'AzurePowerShell'.
*
*/
private String kind;
/**
* @return The location of the ACI and the storage account for the deployment script.
*
*/
private String location;
/**
* @return Name of this resource.
*
*/
private String name;
/**
* @return List of script outputs.
*
*/
private Map outputs;
/**
* @return Uri for the script. This is the entry point for the external script.
*
*/
private @Nullable String primaryScriptUri;
/**
* @return State of the script execution. This only appears in the response.
*
*/
private String provisioningState;
/**
* @return Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. Duration is based on ISO 8601 pattern (for example P1D means one day).
*
*/
private String retentionInterval;
/**
* @return Script body.
*
*/
private @Nullable String scriptContent;
/**
* @return Contains the results of script execution.
*
*/
private ScriptStatusResponse status;
/**
* @return Storage Account settings.
*
*/
private @Nullable StorageAccountConfigurationResponse storageAccountSettings;
/**
* @return Supporting files for the external script.
*
*/
private @Nullable List supportingScriptUris;
/**
* @return The system metadata related to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D
*
*/
private @Nullable String timeout;
/**
* @return Type of this resource.
*
*/
private String type;
private GetAzurePowerShellScriptResult() {}
/**
* @return Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2'
*
*/
public Optional arguments() {
return Optional.ofNullable(this.arguments);
}
/**
* @return Azure PowerShell module version to be used.
*
*/
public String azPowerShellVersion() {
return this.azPowerShellVersion;
}
/**
* @return The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'.
*
*/
public Optional cleanupPreference() {
return Optional.ofNullable(this.cleanupPreference);
}
/**
* @return Container settings.
*
*/
public Optional containerSettings() {
return Optional.ofNullable(this.containerSettings);
}
/**
* @return The environment variables to pass over to the script.
*
*/
public List environmentVariables() {
return this.environmentVariables == null ? List.of() : this.environmentVariables;
}
/**
* @return Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID.
*
*/
public Optional forceUpdateTag() {
return Optional.ofNullable(this.forceUpdateTag);
}
/**
* @return String Id used to locate any resource on Azure.
*
*/
public String id() {
return this.id;
}
/**
* @return Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return Type of the script.
* Expected value is 'AzurePowerShell'.
*
*/
public String kind() {
return this.kind;
}
/**
* @return The location of the ACI and the storage account for the deployment script.
*
*/
public String location() {
return this.location;
}
/**
* @return Name of this resource.
*
*/
public String name() {
return this.name;
}
/**
* @return List of script outputs.
*
*/
public Map outputs() {
return this.outputs;
}
/**
* @return Uri for the script. This is the entry point for the external script.
*
*/
public Optional primaryScriptUri() {
return Optional.ofNullable(this.primaryScriptUri);
}
/**
* @return State of the script execution. This only appears in the response.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. Duration is based on ISO 8601 pattern (for example P1D means one day).
*
*/
public String retentionInterval() {
return this.retentionInterval;
}
/**
* @return Script body.
*
*/
public Optional scriptContent() {
return Optional.ofNullable(this.scriptContent);
}
/**
* @return Contains the results of script execution.
*
*/
public ScriptStatusResponse status() {
return this.status;
}
/**
* @return Storage Account settings.
*
*/
public Optional storageAccountSettings() {
return Optional.ofNullable(this.storageAccountSettings);
}
/**
* @return Supporting files for the external script.
*
*/
public List supportingScriptUris() {
return this.supportingScriptUris == null ? List.of() : this.supportingScriptUris;
}
/**
* @return The system metadata related to this resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D
*
*/
public Optional timeout() {
return Optional.ofNullable(this.timeout);
}
/**
* @return Type of this resource.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAzurePowerShellScriptResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String arguments;
private String azPowerShellVersion;
private @Nullable String cleanupPreference;
private @Nullable ContainerConfigurationResponse containerSettings;
private @Nullable List environmentVariables;
private @Nullable String forceUpdateTag;
private String id;
private @Nullable ManagedServiceIdentityResponse identity;
private String kind;
private String location;
private String name;
private Map outputs;
private @Nullable String primaryScriptUri;
private String provisioningState;
private String retentionInterval;
private @Nullable String scriptContent;
private ScriptStatusResponse status;
private @Nullable StorageAccountConfigurationResponse storageAccountSettings;
private @Nullable List supportingScriptUris;
private SystemDataResponse systemData;
private @Nullable Map tags;
private @Nullable String timeout;
private String type;
public Builder() {}
public Builder(GetAzurePowerShellScriptResult defaults) {
Objects.requireNonNull(defaults);
this.arguments = defaults.arguments;
this.azPowerShellVersion = defaults.azPowerShellVersion;
this.cleanupPreference = defaults.cleanupPreference;
this.containerSettings = defaults.containerSettings;
this.environmentVariables = defaults.environmentVariables;
this.forceUpdateTag = defaults.forceUpdateTag;
this.id = defaults.id;
this.identity = defaults.identity;
this.kind = defaults.kind;
this.location = defaults.location;
this.name = defaults.name;
this.outputs = defaults.outputs;
this.primaryScriptUri = defaults.primaryScriptUri;
this.provisioningState = defaults.provisioningState;
this.retentionInterval = defaults.retentionInterval;
this.scriptContent = defaults.scriptContent;
this.status = defaults.status;
this.storageAccountSettings = defaults.storageAccountSettings;
this.supportingScriptUris = defaults.supportingScriptUris;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.timeout = defaults.timeout;
this.type = defaults.type;
}
@CustomType.Setter
public Builder arguments(@Nullable String arguments) {
this.arguments = arguments;
return this;
}
@CustomType.Setter
public Builder azPowerShellVersion(String azPowerShellVersion) {
if (azPowerShellVersion == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "azPowerShellVersion");
}
this.azPowerShellVersion = azPowerShellVersion;
return this;
}
@CustomType.Setter
public Builder cleanupPreference(@Nullable String cleanupPreference) {
this.cleanupPreference = cleanupPreference;
return this;
}
@CustomType.Setter
public Builder containerSettings(@Nullable ContainerConfigurationResponse containerSettings) {
this.containerSettings = containerSettings;
return this;
}
@CustomType.Setter
public Builder environmentVariables(@Nullable List environmentVariables) {
this.environmentVariables = environmentVariables;
return this;
}
public Builder environmentVariables(EnvironmentVariableResponse... environmentVariables) {
return environmentVariables(List.of(environmentVariables));
}
@CustomType.Setter
public Builder forceUpdateTag(@Nullable String forceUpdateTag) {
this.forceUpdateTag = forceUpdateTag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identity(@Nullable ManagedServiceIdentityResponse identity) {
this.identity = identity;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder outputs(Map outputs) {
if (outputs == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "outputs");
}
this.outputs = outputs;
return this;
}
@CustomType.Setter
public Builder primaryScriptUri(@Nullable String primaryScriptUri) {
this.primaryScriptUri = primaryScriptUri;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder retentionInterval(String retentionInterval) {
if (retentionInterval == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "retentionInterval");
}
this.retentionInterval = retentionInterval;
return this;
}
@CustomType.Setter
public Builder scriptContent(@Nullable String scriptContent) {
this.scriptContent = scriptContent;
return this;
}
@CustomType.Setter
public Builder status(ScriptStatusResponse status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder storageAccountSettings(@Nullable StorageAccountConfigurationResponse storageAccountSettings) {
this.storageAccountSettings = storageAccountSettings;
return this;
}
@CustomType.Setter
public Builder supportingScriptUris(@Nullable List supportingScriptUris) {
this.supportingScriptUris = supportingScriptUris;
return this;
}
public Builder supportingScriptUris(String... supportingScriptUris) {
return supportingScriptUris(List.of(supportingScriptUris));
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder timeout(@Nullable String timeout) {
this.timeout = timeout;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetAzurePowerShellScriptResult", "type");
}
this.type = type;
return this;
}
public GetAzurePowerShellScriptResult build() {
final var _resultValue = new GetAzurePowerShellScriptResult();
_resultValue.arguments = arguments;
_resultValue.azPowerShellVersion = azPowerShellVersion;
_resultValue.cleanupPreference = cleanupPreference;
_resultValue.containerSettings = containerSettings;
_resultValue.environmentVariables = environmentVariables;
_resultValue.forceUpdateTag = forceUpdateTag;
_resultValue.id = id;
_resultValue.identity = identity;
_resultValue.kind = kind;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.outputs = outputs;
_resultValue.primaryScriptUri = primaryScriptUri;
_resultValue.provisioningState = provisioningState;
_resultValue.retentionInterval = retentionInterval;
_resultValue.scriptContent = scriptContent;
_resultValue.status = status;
_resultValue.storageAccountSettings = storageAccountSettings;
_resultValue.supportingScriptUris = supportingScriptUris;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.timeout = timeout;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy