com.pulumi.azurenative.devtestlab.outputs.GetPolicyResult 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.devtestlab.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetPolicyResult {
/**
* @return The creation date of the policy.
*
*/
private String createdDate;
/**
* @return The description of the policy.
*
*/
private @Nullable String description;
/**
* @return The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).
*
*/
private @Nullable String evaluatorType;
/**
* @return The fact data of the policy.
*
*/
private @Nullable String factData;
/**
* @return The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.
*
*/
private @Nullable String factName;
/**
* @return The identifier of the resource.
*
*/
private String id;
/**
* @return The location of the resource.
*
*/
private @Nullable String location;
/**
* @return The name of the resource.
*
*/
private String name;
/**
* @return The provisioning status of the resource.
*
*/
private String provisioningState;
/**
* @return The status of the policy.
*
*/
private @Nullable String status;
/**
* @return The tags of the resource.
*
*/
private @Nullable Map tags;
/**
* @return The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
*
*/
private @Nullable String threshold;
/**
* @return The type of the resource.
*
*/
private String type;
/**
* @return The unique immutable identifier of a resource (Guid).
*
*/
private String uniqueIdentifier;
private GetPolicyResult() {}
/**
* @return The creation date of the policy.
*
*/
public String createdDate() {
return this.createdDate;
}
/**
* @return The description of the policy.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).
*
*/
public Optional evaluatorType() {
return Optional.ofNullable(this.evaluatorType);
}
/**
* @return The fact data of the policy.
*
*/
public Optional factData() {
return Optional.ofNullable(this.factData);
}
/**
* @return The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.
*
*/
public Optional factName() {
return Optional.ofNullable(this.factName);
}
/**
* @return The identifier of the resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The location of the resource.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return The name of the resource.
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning status of the resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The status of the policy.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return The tags of the resource.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
*
*/
public Optional threshold() {
return Optional.ofNullable(this.threshold);
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return The unique immutable identifier of a resource (Guid).
*
*/
public String uniqueIdentifier() {
return this.uniqueIdentifier;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPolicyResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String createdDate;
private @Nullable String description;
private @Nullable String evaluatorType;
private @Nullable String factData;
private @Nullable String factName;
private String id;
private @Nullable String location;
private String name;
private String provisioningState;
private @Nullable String status;
private @Nullable Map tags;
private @Nullable String threshold;
private String type;
private String uniqueIdentifier;
public Builder() {}
public Builder(GetPolicyResult defaults) {
Objects.requireNonNull(defaults);
this.createdDate = defaults.createdDate;
this.description = defaults.description;
this.evaluatorType = defaults.evaluatorType;
this.factData = defaults.factData;
this.factName = defaults.factName;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.status = defaults.status;
this.tags = defaults.tags;
this.threshold = defaults.threshold;
this.type = defaults.type;
this.uniqueIdentifier = defaults.uniqueIdentifier;
}
@CustomType.Setter
public Builder createdDate(String createdDate) {
if (createdDate == null) {
throw new MissingRequiredPropertyException("GetPolicyResult", "createdDate");
}
this.createdDate = createdDate;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder evaluatorType(@Nullable String evaluatorType) {
this.evaluatorType = evaluatorType;
return this;
}
@CustomType.Setter
public Builder factData(@Nullable String factData) {
this.factData = factData;
return this;
}
@CustomType.Setter
public Builder factName(@Nullable String factName) {
this.factName = factName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetPolicyResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetPolicyResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetPolicyResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder threshold(@Nullable String threshold) {
this.threshold = threshold;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetPolicyResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder uniqueIdentifier(String uniqueIdentifier) {
if (uniqueIdentifier == null) {
throw new MissingRequiredPropertyException("GetPolicyResult", "uniqueIdentifier");
}
this.uniqueIdentifier = uniqueIdentifier;
return this;
}
public GetPolicyResult build() {
final var _resultValue = new GetPolicyResult();
_resultValue.createdDate = createdDate;
_resultValue.description = description;
_resultValue.evaluatorType = evaluatorType;
_resultValue.factData = factData;
_resultValue.factName = factName;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.status = status;
_resultValue.tags = tags;
_resultValue.threshold = threshold;
_resultValue.type = type;
_resultValue.uniqueIdentifier = uniqueIdentifier;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy