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

com.pulumi.azurenative.cdn.outputs.GetRuleResult 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.cdn.outputs;

import com.pulumi.azurenative.cdn.outputs.DeliveryRuleCacheExpirationActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleCacheKeyQueryStringActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleClientPortConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleCookiesConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleHostNameConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleHttpVersionConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleIsDeviceConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRulePostArgsConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleQueryStringConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRemoteAddressConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestBodyConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestHeaderActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestHeaderConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestMethodConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestSchemeConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestUriConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleResponseHeaderActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRouteConfigurationOverrideActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleServerPortConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleSocketAddrConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleSslProtocolConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleUrlFileExtensionConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleUrlFileNameConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleUrlPathConditionResponse;
import com.pulumi.azurenative.cdn.outputs.OriginGroupOverrideActionResponse;
import com.pulumi.azurenative.cdn.outputs.SystemDataResponse;
import com.pulumi.azurenative.cdn.outputs.UrlRedirectActionResponse;
import com.pulumi.azurenative.cdn.outputs.UrlRewriteActionResponse;
import com.pulumi.azurenative.cdn.outputs.UrlSigningActionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetRuleResult {
    /**
     * @return A list of actions that are executed when all the conditions of a rule are satisfied.
     * 
     */
    private List actions;
    /**
     * @return A list of conditions that must be matched for the actions to be executed
     * 
     */
    private @Nullable List conditions;
    private String deploymentStatus;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
     * 
     */
    private @Nullable String matchProcessingBehavior;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
     * 
     */
    private Integer order;
    /**
     * @return Provisioning status
     * 
     */
    private String provisioningState;
    /**
     * @return The name of the rule set containing the rule.
     * 
     */
    private String ruleSetName;
    /**
     * @return Read only system data
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetRuleResult() {}
    /**
     * @return A list of actions that are executed when all the conditions of a rule are satisfied.
     * 
     */
    public List actions() {
        return this.actions;
    }
    /**
     * @return A list of conditions that must be matched for the actions to be executed
     * 
     */
    public List conditions() {
        return this.conditions == null ? List.of() : this.conditions;
    }
    public String deploymentStatus() {
        return this.deploymentStatus;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
     * 
     */
    public Optional matchProcessingBehavior() {
        return Optional.ofNullable(this.matchProcessingBehavior);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
     * 
     */
    public Integer order() {
        return this.order;
    }
    /**
     * @return Provisioning status
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The name of the rule set containing the rule.
     * 
     */
    public String ruleSetName() {
        return this.ruleSetName;
    }
    /**
     * @return Read only system data
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetRuleResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List actions;
        private @Nullable List conditions;
        private String deploymentStatus;
        private String id;
        private @Nullable String matchProcessingBehavior;
        private String name;
        private Integer order;
        private String provisioningState;
        private String ruleSetName;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetRuleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actions = defaults.actions;
    	      this.conditions = defaults.conditions;
    	      this.deploymentStatus = defaults.deploymentStatus;
    	      this.id = defaults.id;
    	      this.matchProcessingBehavior = defaults.matchProcessingBehavior;
    	      this.name = defaults.name;
    	      this.order = defaults.order;
    	      this.provisioningState = defaults.provisioningState;
    	      this.ruleSetName = defaults.ruleSetName;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder actions(List actions) {
            if (actions == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "actions");
            }
            this.actions = actions;
            return this;
        }
        public Builder actions(Object... actions) {
            return actions(List.of(actions));
        }
        @CustomType.Setter
        public Builder conditions(@Nullable List conditions) {

            this.conditions = conditions;
            return this;
        }
        public Builder conditions(Object... conditions) {
            return conditions(List.of(conditions));
        }
        @CustomType.Setter
        public Builder deploymentStatus(String deploymentStatus) {
            if (deploymentStatus == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "deploymentStatus");
            }
            this.deploymentStatus = deploymentStatus;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder matchProcessingBehavior(@Nullable String matchProcessingBehavior) {

            this.matchProcessingBehavior = matchProcessingBehavior;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder order(Integer order) {
            if (order == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "order");
            }
            this.order = order;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder ruleSetName(String ruleSetName) {
            if (ruleSetName == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "ruleSetName");
            }
            this.ruleSetName = ruleSetName;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetRuleResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetRuleResult build() {
            final var _resultValue = new GetRuleResult();
            _resultValue.actions = actions;
            _resultValue.conditions = conditions;
            _resultValue.deploymentStatus = deploymentStatus;
            _resultValue.id = id;
            _resultValue.matchProcessingBehavior = matchProcessingBehavior;
            _resultValue.name = name;
            _resultValue.order = order;
            _resultValue.provisioningState = provisioningState;
            _resultValue.ruleSetName = ruleSetName;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}