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

com.pulumi.azurenative.batch.outputs.IPRuleResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.batch.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class IPRuleResponse {
    /**
     * @return Action when client IP address is matched.
     * 
     */
    private String action;
    /**
     * @return IPv4 address, or IPv4 address range in CIDR format.
     * 
     */
    private String value;

    private IPRuleResponse() {}
    /**
     * @return Action when client IP address is matched.
     * 
     */
    public String action() {
        return this.action;
    }
    /**
     * @return IPv4 address, or IPv4 address range in CIDR format.
     * 
     */
    public String value() {
        return this.value;
    }

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

    public static Builder builder(IPRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String action;
        private String value;
        public Builder() {}
        public Builder(IPRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder action(String action) {
            if (action == null) {
              throw new MissingRequiredPropertyException("IPRuleResponse", "action");
            }
            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder value(String value) {
            if (value == null) {
              throw new MissingRequiredPropertyException("IPRuleResponse", "value");
            }
            this.value = value;
            return this;
        }
        public IPRuleResponse build() {
            final var _resultValue = new IPRuleResponse();
            _resultValue.action = action;
            _resultValue.value = value;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy