com.pulumi.azure.core.outputs.ResourceDeploymentScriptPowerShellEnvironmentVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.core.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ResourceDeploymentScriptPowerShellEnvironmentVariable {
/**
* @return Specifies the name of the environment variable.
*
*/
private String name;
/**
* @return Specifies the value of the secure environment variable.
*
*/
private @Nullable String secureValue;
/**
* @return Specifies the value of the environment variable.
*
*/
private @Nullable String value;
private ResourceDeploymentScriptPowerShellEnvironmentVariable() {}
/**
* @return Specifies the name of the environment variable.
*
*/
public String name() {
return this.name;
}
/**
* @return Specifies the value of the secure environment variable.
*
*/
public Optional secureValue() {
return Optional.ofNullable(this.secureValue);
}
/**
* @return Specifies the value of the environment variable.
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourceDeploymentScriptPowerShellEnvironmentVariable defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private @Nullable String secureValue;
private @Nullable String value;
public Builder() {}
public Builder(ResourceDeploymentScriptPowerShellEnvironmentVariable defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.secureValue = defaults.secureValue;
this.value = defaults.value;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ResourceDeploymentScriptPowerShellEnvironmentVariable", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder secureValue(@Nullable String secureValue) {
this.secureValue = secureValue;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public ResourceDeploymentScriptPowerShellEnvironmentVariable build() {
final var _resultValue = new ResourceDeploymentScriptPowerShellEnvironmentVariable();
_resultValue.name = name;
_resultValue.secureValue = secureValue;
_resultValue.value = value;
return _resultValue;
}
}
}