com.pulumi.alicloud.cfg.outputs.AggregateCompliancePackConfigRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.cfg.outputs;
import com.pulumi.alicloud.cfg.outputs.AggregateCompliancePackConfigRuleConfigRuleParameter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class AggregateCompliancePackConfigRule {
/**
* @return A list of parameter rules. See `config_rule_parameters` below.
*
*/
private @Nullable List configRuleParameters;
/**
* @return The Managed Rule Identifier.
*
*/
private String managedRuleIdentifier;
private AggregateCompliancePackConfigRule() {}
/**
* @return A list of parameter rules. See `config_rule_parameters` below.
*
*/
public List configRuleParameters() {
return this.configRuleParameters == null ? List.of() : this.configRuleParameters;
}
/**
* @return The Managed Rule Identifier.
*
*/
public String managedRuleIdentifier() {
return this.managedRuleIdentifier;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AggregateCompliancePackConfigRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List configRuleParameters;
private String managedRuleIdentifier;
public Builder() {}
public Builder(AggregateCompliancePackConfigRule defaults) {
Objects.requireNonNull(defaults);
this.configRuleParameters = defaults.configRuleParameters;
this.managedRuleIdentifier = defaults.managedRuleIdentifier;
}
@CustomType.Setter
public Builder configRuleParameters(@Nullable List configRuleParameters) {
this.configRuleParameters = configRuleParameters;
return this;
}
public Builder configRuleParameters(AggregateCompliancePackConfigRuleConfigRuleParameter... configRuleParameters) {
return configRuleParameters(List.of(configRuleParameters));
}
@CustomType.Setter
public Builder managedRuleIdentifier(String managedRuleIdentifier) {
if (managedRuleIdentifier == null) {
throw new MissingRequiredPropertyException("AggregateCompliancePackConfigRule", "managedRuleIdentifier");
}
this.managedRuleIdentifier = managedRuleIdentifier;
return this;
}
public AggregateCompliancePackConfigRule build() {
final var _resultValue = new AggregateCompliancePackConfigRule();
_resultValue.configRuleParameters = configRuleParameters;
_resultValue.managedRuleIdentifier = managedRuleIdentifier;
return _resultValue;
}
}
}