
com.pulumi.azurenative.automation.outputs.GetVariableResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.automation.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetVariableResult {
/**
* @return Gets or sets the creation time.
*
*/
private @Nullable String creationTime;
/**
* @return Gets or sets the description.
*
*/
private @Nullable String description;
/**
* @return Fully qualified resource Id for the resource
*
*/
private String id;
/**
* @return Gets or sets the encrypted flag of the variable.
*
*/
private @Nullable Boolean isEncrypted;
/**
* @return Gets or sets the last modified time.
*
*/
private @Nullable String lastModifiedTime;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The type of the resource.
*
*/
private String type;
/**
* @return Gets or sets the value of the variable.
*
*/
private @Nullable String value;
private GetVariableResult() {}
/**
* @return Gets or sets the creation time.
*
*/
public Optional creationTime() {
return Optional.ofNullable(this.creationTime);
}
/**
* @return Gets or sets the description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Fully qualified resource Id for the resource
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets the encrypted flag of the variable.
*
*/
public Optional isEncrypted() {
return Optional.ofNullable(this.isEncrypted);
}
/**
* @return Gets or sets the last modified time.
*
*/
public Optional lastModifiedTime() {
return Optional.ofNullable(this.lastModifiedTime);
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return Gets or sets the value of the variable.
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVariableResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String creationTime;
private @Nullable String description;
private String id;
private @Nullable Boolean isEncrypted;
private @Nullable String lastModifiedTime;
private String name;
private String type;
private @Nullable String value;
public Builder() {}
public Builder(GetVariableResult defaults) {
Objects.requireNonNull(defaults);
this.creationTime = defaults.creationTime;
this.description = defaults.description;
this.id = defaults.id;
this.isEncrypted = defaults.isEncrypted;
this.lastModifiedTime = defaults.lastModifiedTime;
this.name = defaults.name;
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder creationTime(@Nullable String creationTime) {
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVariableResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder isEncrypted(@Nullable Boolean isEncrypted) {
this.isEncrypted = isEncrypted;
return this;
}
@CustomType.Setter
public Builder lastModifiedTime(@Nullable String lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVariableResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetVariableResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public GetVariableResult build() {
final var _resultValue = new GetVariableResult();
_resultValue.creationTime = creationTime;
_resultValue.description = description;
_resultValue.id = id;
_resultValue.isEncrypted = isEncrypted;
_resultValue.lastModifiedTime = lastModifiedTime;
_resultValue.name = name;
_resultValue.type = type;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy