com.pulumi.consul.outputs.GetAclRoleTemplatedPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul Show documentation
Show all versions of consul Show documentation
A Pulumi package for creating and managing consul 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.consul.outputs;
import com.pulumi.consul.outputs.GetAclRoleTemplatedPolicyTemplateVariable;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetAclRoleTemplatedPolicy {
/**
* @return Specifies the datacenters the effective policy is valid within.
*
*/
private List datacenters;
/**
* @return The name of the templated policies.
*
*/
private String templateName;
/**
* @return The templated policy variables.
*
*/
private List templateVariables;
private GetAclRoleTemplatedPolicy() {}
/**
* @return Specifies the datacenters the effective policy is valid within.
*
*/
public List datacenters() {
return this.datacenters;
}
/**
* @return The name of the templated policies.
*
*/
public String templateName() {
return this.templateName;
}
/**
* @return The templated policy variables.
*
*/
public List templateVariables() {
return this.templateVariables;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAclRoleTemplatedPolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List datacenters;
private String templateName;
private List templateVariables;
public Builder() {}
public Builder(GetAclRoleTemplatedPolicy defaults) {
Objects.requireNonNull(defaults);
this.datacenters = defaults.datacenters;
this.templateName = defaults.templateName;
this.templateVariables = defaults.templateVariables;
}
@CustomType.Setter
public Builder datacenters(List datacenters) {
if (datacenters == null) {
throw new MissingRequiredPropertyException("GetAclRoleTemplatedPolicy", "datacenters");
}
this.datacenters = datacenters;
return this;
}
public Builder datacenters(String... datacenters) {
return datacenters(List.of(datacenters));
}
@CustomType.Setter
public Builder templateName(String templateName) {
if (templateName == null) {
throw new MissingRequiredPropertyException("GetAclRoleTemplatedPolicy", "templateName");
}
this.templateName = templateName;
return this;
}
@CustomType.Setter
public Builder templateVariables(List templateVariables) {
if (templateVariables == null) {
throw new MissingRequiredPropertyException("GetAclRoleTemplatedPolicy", "templateVariables");
}
this.templateVariables = templateVariables;
return this;
}
public Builder templateVariables(GetAclRoleTemplatedPolicyTemplateVariable... templateVariables) {
return templateVariables(List.of(templateVariables));
}
public GetAclRoleTemplatedPolicy build() {
final var _resultValue = new GetAclRoleTemplatedPolicy();
_resultValue.datacenters = datacenters;
_resultValue.templateName = templateName;
_resultValue.templateVariables = templateVariables;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy