All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.cfg.outputs.AggregateCompliancePackConfigRule Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** 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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy