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

com.pulumi.azurenative.cloudngfw.outputs.GetPreRuleResult Maven / Gradle / Ivy

// *** 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.cloudngfw.outputs;

import com.pulumi.azurenative.cloudngfw.outputs.CategoryResponse;
import com.pulumi.azurenative.cloudngfw.outputs.DestinationAddrResponse;
import com.pulumi.azurenative.cloudngfw.outputs.SourceAddrResponse;
import com.pulumi.azurenative.cloudngfw.outputs.SystemDataResponse;
import com.pulumi.azurenative.cloudngfw.outputs.TagInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetPreRuleResult {
    /**
     * @return rule action
     * 
     */
    private @Nullable String actionType;
    /**
     * @return array of rule applications
     * 
     */
    private @Nullable List applications;
    /**
     * @return rule comment
     * 
     */
    private @Nullable String auditComment;
    /**
     * @return rule category
     * 
     */
    private @Nullable CategoryResponse category;
    /**
     * @return enable or disable decryption
     * 
     */
    private @Nullable String decryptionRuleType;
    /**
     * @return rule description
     * 
     */
    private @Nullable String description;
    /**
     * @return destination address
     * 
     */
    private @Nullable DestinationAddrResponse destination;
    /**
     * @return enable or disable logging
     * 
     */
    private @Nullable String enableLogging;
    /**
     * @return etag info
     * 
     */
    private @Nullable String etag;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return inbound Inspection Certificate
     * 
     */
    private @Nullable String inboundInspectionCertificate;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return cidr should not be 'any'
     * 
     */
    private @Nullable String negateDestination;
    /**
     * @return cidr should not be 'any'
     * 
     */
    private @Nullable String negateSource;
    private Integer priority;
    /**
     * @return any, application-default, TCP:number, UDP:number
     * 
     */
    private @Nullable String protocol;
    /**
     * @return prot port list
     * 
     */
    private @Nullable List protocolPortList;
    /**
     * @return Provisioning state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return rule name
     * 
     */
    private String ruleName;
    /**
     * @return state of this rule
     * 
     */
    private @Nullable String ruleState;
    /**
     * @return source address
     * 
     */
    private @Nullable SourceAddrResponse source;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return tag for rule
     * 
     */
    private @Nullable List tags;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetPreRuleResult() {}
    /**
     * @return rule action
     * 
     */
    public Optional actionType() {
        return Optional.ofNullable(this.actionType);
    }
    /**
     * @return array of rule applications
     * 
     */
    public List applications() {
        return this.applications == null ? List.of() : this.applications;
    }
    /**
     * @return rule comment
     * 
     */
    public Optional auditComment() {
        return Optional.ofNullable(this.auditComment);
    }
    /**
     * @return rule category
     * 
     */
    public Optional category() {
        return Optional.ofNullable(this.category);
    }
    /**
     * @return enable or disable decryption
     * 
     */
    public Optional decryptionRuleType() {
        return Optional.ofNullable(this.decryptionRuleType);
    }
    /**
     * @return rule description
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return destination address
     * 
     */
    public Optional destination() {
        return Optional.ofNullable(this.destination);
    }
    /**
     * @return enable or disable logging
     * 
     */
    public Optional enableLogging() {
        return Optional.ofNullable(this.enableLogging);
    }
    /**
     * @return etag info
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return inbound Inspection Certificate
     * 
     */
    public Optional inboundInspectionCertificate() {
        return Optional.ofNullable(this.inboundInspectionCertificate);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return cidr should not be 'any'
     * 
     */
    public Optional negateDestination() {
        return Optional.ofNullable(this.negateDestination);
    }
    /**
     * @return cidr should not be 'any'
     * 
     */
    public Optional negateSource() {
        return Optional.ofNullable(this.negateSource);
    }
    public Integer priority() {
        return this.priority;
    }
    /**
     * @return any, application-default, TCP:number, UDP:number
     * 
     */
    public Optional protocol() {
        return Optional.ofNullable(this.protocol);
    }
    /**
     * @return prot port list
     * 
     */
    public List protocolPortList() {
        return this.protocolPortList == null ? List.of() : this.protocolPortList;
    }
    /**
     * @return Provisioning state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return rule name
     * 
     */
    public String ruleName() {
        return this.ruleName;
    }
    /**
     * @return state of this rule
     * 
     */
    public Optional ruleState() {
        return Optional.ofNullable(this.ruleState);
    }
    /**
     * @return source address
     * 
     */
    public Optional source() {
        return Optional.ofNullable(this.source);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return tag for rule
     * 
     */
    public List tags() {
        return this.tags == null ? List.of() : this.tags;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetPreRuleResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String actionType;
        private @Nullable List applications;
        private @Nullable String auditComment;
        private @Nullable CategoryResponse category;
        private @Nullable String decryptionRuleType;
        private @Nullable String description;
        private @Nullable DestinationAddrResponse destination;
        private @Nullable String enableLogging;
        private @Nullable String etag;
        private String id;
        private @Nullable String inboundInspectionCertificate;
        private String name;
        private @Nullable String negateDestination;
        private @Nullable String negateSource;
        private Integer priority;
        private @Nullable String protocol;
        private @Nullable List protocolPortList;
        private String provisioningState;
        private String ruleName;
        private @Nullable String ruleState;
        private @Nullable SourceAddrResponse source;
        private SystemDataResponse systemData;
        private @Nullable List tags;
        private String type;
        public Builder() {}
        public Builder(GetPreRuleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actionType = defaults.actionType;
    	      this.applications = defaults.applications;
    	      this.auditComment = defaults.auditComment;
    	      this.category = defaults.category;
    	      this.decryptionRuleType = defaults.decryptionRuleType;
    	      this.description = defaults.description;
    	      this.destination = defaults.destination;
    	      this.enableLogging = defaults.enableLogging;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.inboundInspectionCertificate = defaults.inboundInspectionCertificate;
    	      this.name = defaults.name;
    	      this.negateDestination = defaults.negateDestination;
    	      this.negateSource = defaults.negateSource;
    	      this.priority = defaults.priority;
    	      this.protocol = defaults.protocol;
    	      this.protocolPortList = defaults.protocolPortList;
    	      this.provisioningState = defaults.provisioningState;
    	      this.ruleName = defaults.ruleName;
    	      this.ruleState = defaults.ruleState;
    	      this.source = defaults.source;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder actionType(@Nullable String actionType) {

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

            this.applications = applications;
            return this;
        }
        public Builder applications(String... applications) {
            return applications(List.of(applications));
        }
        @CustomType.Setter
        public Builder auditComment(@Nullable String auditComment) {

            this.auditComment = auditComment;
            return this;
        }
        @CustomType.Setter
        public Builder category(@Nullable CategoryResponse category) {

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

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

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder destination(@Nullable DestinationAddrResponse destination) {

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

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

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetPreRuleResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder inboundInspectionCertificate(@Nullable String inboundInspectionCertificate) {

            this.inboundInspectionCertificate = inboundInspectionCertificate;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPreRuleResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder negateDestination(@Nullable String negateDestination) {

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

            this.negateSource = negateSource;
            return this;
        }
        @CustomType.Setter
        public Builder priority(Integer priority) {
            if (priority == null) {
              throw new MissingRequiredPropertyException("GetPreRuleResult", "priority");
            }
            this.priority = priority;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(@Nullable String protocol) {

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

            this.protocolPortList = protocolPortList;
            return this;
        }
        public Builder protocolPortList(String... protocolPortList) {
            return protocolPortList(List.of(protocolPortList));
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetPreRuleResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder ruleName(String ruleName) {
            if (ruleName == null) {
              throw new MissingRequiredPropertyException("GetPreRuleResult", "ruleName");
            }
            this.ruleName = ruleName;
            return this;
        }
        @CustomType.Setter
        public Builder ruleState(@Nullable String ruleState) {

            this.ruleState = ruleState;
            return this;
        }
        @CustomType.Setter
        public Builder source(@Nullable SourceAddrResponse source) {

            this.source = source;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetPreRuleResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable List tags) {

            this.tags = tags;
            return this;
        }
        public Builder tags(TagInfoResponse... tags) {
            return tags(List.of(tags));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetPreRuleResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetPreRuleResult build() {
            final var _resultValue = new GetPreRuleResult();
            _resultValue.actionType = actionType;
            _resultValue.applications = applications;
            _resultValue.auditComment = auditComment;
            _resultValue.category = category;
            _resultValue.decryptionRuleType = decryptionRuleType;
            _resultValue.description = description;
            _resultValue.destination = destination;
            _resultValue.enableLogging = enableLogging;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.inboundInspectionCertificate = inboundInspectionCertificate;
            _resultValue.name = name;
            _resultValue.negateDestination = negateDestination;
            _resultValue.negateSource = negateSource;
            _resultValue.priority = priority;
            _resultValue.protocol = protocol;
            _resultValue.protocolPortList = protocolPortList;
            _resultValue.provisioningState = provisioningState;
            _resultValue.ruleName = ruleName;
            _resultValue.ruleState = ruleState;
            _resultValue.source = source;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy