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

com.pulumi.azurenative.awsconnector.outputs.RulesSourceResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.awsconnector.outputs;

import com.pulumi.azurenative.awsconnector.outputs.RulesSourceListResponse;
import com.pulumi.azurenative.awsconnector.outputs.StatefulRuleResponse;
import com.pulumi.azurenative.awsconnector.outputs.StatelessRulesAndCustomActionsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RulesSourceResponse {
    /**
     * @return Property rulesSourceList
     * 
     */
    private @Nullable RulesSourceListResponse rulesSourceList;
    /**
     * @return Property rulesString
     * 
     */
    private @Nullable String rulesString;
    /**
     * @return Property statefulRules
     * 
     */
    private @Nullable List statefulRules;
    /**
     * @return Property statelessRulesAndCustomActions
     * 
     */
    private @Nullable StatelessRulesAndCustomActionsResponse statelessRulesAndCustomActions;

    private RulesSourceResponse() {}
    /**
     * @return Property rulesSourceList
     * 
     */
    public Optional rulesSourceList() {
        return Optional.ofNullable(this.rulesSourceList);
    }
    /**
     * @return Property rulesString
     * 
     */
    public Optional rulesString() {
        return Optional.ofNullable(this.rulesString);
    }
    /**
     * @return Property statefulRules
     * 
     */
    public List statefulRules() {
        return this.statefulRules == null ? List.of() : this.statefulRules;
    }
    /**
     * @return Property statelessRulesAndCustomActions
     * 
     */
    public Optional statelessRulesAndCustomActions() {
        return Optional.ofNullable(this.statelessRulesAndCustomActions);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(RulesSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable RulesSourceListResponse rulesSourceList;
        private @Nullable String rulesString;
        private @Nullable List statefulRules;
        private @Nullable StatelessRulesAndCustomActionsResponse statelessRulesAndCustomActions;
        public Builder() {}
        public Builder(RulesSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.rulesSourceList = defaults.rulesSourceList;
    	      this.rulesString = defaults.rulesString;
    	      this.statefulRules = defaults.statefulRules;
    	      this.statelessRulesAndCustomActions = defaults.statelessRulesAndCustomActions;
        }

        @CustomType.Setter
        public Builder rulesSourceList(@Nullable RulesSourceListResponse rulesSourceList) {

            this.rulesSourceList = rulesSourceList;
            return this;
        }
        @CustomType.Setter
        public Builder rulesString(@Nullable String rulesString) {

            this.rulesString = rulesString;
            return this;
        }
        @CustomType.Setter
        public Builder statefulRules(@Nullable List statefulRules) {

            this.statefulRules = statefulRules;
            return this;
        }
        public Builder statefulRules(StatefulRuleResponse... statefulRules) {
            return statefulRules(List.of(statefulRules));
        }
        @CustomType.Setter
        public Builder statelessRulesAndCustomActions(@Nullable StatelessRulesAndCustomActionsResponse statelessRulesAndCustomActions) {

            this.statelessRulesAndCustomActions = statelessRulesAndCustomActions;
            return this;
        }
        public RulesSourceResponse build() {
            final var _resultValue = new RulesSourceResponse();
            _resultValue.rulesSourceList = rulesSourceList;
            _resultValue.rulesString = rulesString;
            _resultValue.statefulRules = statefulRules;
            _resultValue.statelessRulesAndCustomActions = statelessRulesAndCustomActions;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy