com.pulumi.azure.automation.outputs.GetVariableObjectResult 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.azure.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;
@CustomType
public final class GetVariableObjectResult {
private String automationAccountName;
/**
* @return The description of the Automation Variable.
*
*/
private String description;
/**
* @return Specifies if the Automation Variable is encrypted. Defaults to `false`.
*
*/
private Boolean encrypted;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String name;
private String resourceGroupName;
/**
* @return The value of the Automation Variable as a json encoded `string`.
*
*/
private String value;
private GetVariableObjectResult() {}
public String automationAccountName() {
return this.automationAccountName;
}
/**
* @return The description of the Automation Variable.
*
*/
public String description() {
return this.description;
}
/**
* @return Specifies if the Automation Variable is encrypted. Defaults to `false`.
*
*/
public Boolean encrypted() {
return this.encrypted;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String name() {
return this.name;
}
public String resourceGroupName() {
return this.resourceGroupName;
}
/**
* @return The value of the Automation Variable as a json encoded `string`.
*
*/
public String value() {
return this.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVariableObjectResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String automationAccountName;
private String description;
private Boolean encrypted;
private String id;
private String name;
private String resourceGroupName;
private String value;
public Builder() {}
public Builder(GetVariableObjectResult defaults) {
Objects.requireNonNull(defaults);
this.automationAccountName = defaults.automationAccountName;
this.description = defaults.description;
this.encrypted = defaults.encrypted;
this.id = defaults.id;
this.name = defaults.name;
this.resourceGroupName = defaults.resourceGroupName;
this.value = defaults.value;
}
@CustomType.Setter
public Builder automationAccountName(String automationAccountName) {
if (automationAccountName == null) {
throw new MissingRequiredPropertyException("GetVariableObjectResult", "automationAccountName");
}
this.automationAccountName = automationAccountName;
return this;
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetVariableObjectResult", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder encrypted(Boolean encrypted) {
if (encrypted == null) {
throw new MissingRequiredPropertyException("GetVariableObjectResult", "encrypted");
}
this.encrypted = encrypted;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVariableObjectResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVariableObjectResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetVariableObjectResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder value(String value) {
if (value == null) {
throw new MissingRequiredPropertyException("GetVariableObjectResult", "value");
}
this.value = value;
return this;
}
public GetVariableObjectResult build() {
final var _resultValue = new GetVariableObjectResult();
_resultValue.automationAccountName = automationAccountName;
_resultValue.description = description;
_resultValue.encrypted = encrypted;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.resourceGroupName = resourceGroupName;
_resultValue.value = value;
return _resultValue;
}
}
}