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

com.pulumi.azurenative.managednetworkfabric.outputs.AccessControlListConditionPropertiesResponse 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.managednetworkfabric.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AccessControlListConditionPropertiesResponse {
    /**
     * @return action. Example: allow | deny.
     * 
     */
    private String action;
    /**
     * @return Switch configuration description.
     * 
     */
    private @Nullable String annotation;
    /**
     * @return destinationAddress. Example: any | 1.1.1.0/24 | 1.1.10.10
     * 
     */
    private String destinationAddress;
    /**
     * @return destinationPort. Example: any | 1253
     * 
     */
    private String destinationPort;
    /**
     * @return TCP/IP protocol as defined in the list of IP protocol numbers. Example: 255 (any) | 0 | 1.
     * 
     */
    private Integer protocol;
    /**
     * @return sequenceNumber of the Access Control List.
     * 
     */
    private Integer sequenceNumber;
    /**
     * @return sourceAddress. Example: any | 1.1.1.0/24 | 1.1.10.10
     * 
     */
    private String sourceAddress;
    /**
     * @return sourcePort. Example: any | 1253
     * 
     */
    private String sourcePort;

    private AccessControlListConditionPropertiesResponse() {}
    /**
     * @return action. Example: allow | deny.
     * 
     */
    public String action() {
        return this.action;
    }
    /**
     * @return Switch configuration description.
     * 
     */
    public Optional annotation() {
        return Optional.ofNullable(this.annotation);
    }
    /**
     * @return destinationAddress. Example: any | 1.1.1.0/24 | 1.1.10.10
     * 
     */
    public String destinationAddress() {
        return this.destinationAddress;
    }
    /**
     * @return destinationPort. Example: any | 1253
     * 
     */
    public String destinationPort() {
        return this.destinationPort;
    }
    /**
     * @return TCP/IP protocol as defined in the list of IP protocol numbers. Example: 255 (any) | 0 | 1.
     * 
     */
    public Integer protocol() {
        return this.protocol;
    }
    /**
     * @return sequenceNumber of the Access Control List.
     * 
     */
    public Integer sequenceNumber() {
        return this.sequenceNumber;
    }
    /**
     * @return sourceAddress. Example: any | 1.1.1.0/24 | 1.1.10.10
     * 
     */
    public String sourceAddress() {
        return this.sourceAddress;
    }
    /**
     * @return sourcePort. Example: any | 1253
     * 
     */
    public String sourcePort() {
        return this.sourcePort;
    }

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

    public static Builder builder(AccessControlListConditionPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String action;
        private @Nullable String annotation;
        private String destinationAddress;
        private String destinationPort;
        private Integer protocol;
        private Integer sequenceNumber;
        private String sourceAddress;
        private String sourcePort;
        public Builder() {}
        public Builder(AccessControlListConditionPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.annotation = defaults.annotation;
    	      this.destinationAddress = defaults.destinationAddress;
    	      this.destinationPort = defaults.destinationPort;
    	      this.protocol = defaults.protocol;
    	      this.sequenceNumber = defaults.sequenceNumber;
    	      this.sourceAddress = defaults.sourceAddress;
    	      this.sourcePort = defaults.sourcePort;
        }

        @CustomType.Setter
        public Builder action(String action) {
            if (action == null) {
              throw new MissingRequiredPropertyException("AccessControlListConditionPropertiesResponse", "action");
            }
            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder annotation(@Nullable String annotation) {

            this.annotation = annotation;
            return this;
        }
        @CustomType.Setter
        public Builder destinationAddress(String destinationAddress) {
            if (destinationAddress == null) {
              throw new MissingRequiredPropertyException("AccessControlListConditionPropertiesResponse", "destinationAddress");
            }
            this.destinationAddress = destinationAddress;
            return this;
        }
        @CustomType.Setter
        public Builder destinationPort(String destinationPort) {
            if (destinationPort == null) {
              throw new MissingRequiredPropertyException("AccessControlListConditionPropertiesResponse", "destinationPort");
            }
            this.destinationPort = destinationPort;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(Integer protocol) {
            if (protocol == null) {
              throw new MissingRequiredPropertyException("AccessControlListConditionPropertiesResponse", "protocol");
            }
            this.protocol = protocol;
            return this;
        }
        @CustomType.Setter
        public Builder sequenceNumber(Integer sequenceNumber) {
            if (sequenceNumber == null) {
              throw new MissingRequiredPropertyException("AccessControlListConditionPropertiesResponse", "sequenceNumber");
            }
            this.sequenceNumber = sequenceNumber;
            return this;
        }
        @CustomType.Setter
        public Builder sourceAddress(String sourceAddress) {
            if (sourceAddress == null) {
              throw new MissingRequiredPropertyException("AccessControlListConditionPropertiesResponse", "sourceAddress");
            }
            this.sourceAddress = sourceAddress;
            return this;
        }
        @CustomType.Setter
        public Builder sourcePort(String sourcePort) {
            if (sourcePort == null) {
              throw new MissingRequiredPropertyException("AccessControlListConditionPropertiesResponse", "sourcePort");
            }
            this.sourcePort = sourcePort;
            return this;
        }
        public AccessControlListConditionPropertiesResponse build() {
            final var _resultValue = new AccessControlListConditionPropertiesResponse();
            _resultValue.action = action;
            _resultValue.annotation = annotation;
            _resultValue.destinationAddress = destinationAddress;
            _resultValue.destinationPort = destinationPort;
            _resultValue.protocol = protocol;
            _resultValue.sequenceNumber = sequenceNumber;
            _resultValue.sourceAddress = sourceAddress;
            _resultValue.sourcePort = sourcePort;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy