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

com.ovhcloud.pulumi.ovh.Ip.inputs.GetFirewallArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.Ip.inputs;

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


public final class GetFirewallArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetFirewallArgs Empty = new GetFirewallArgs();

    /**
     * The IP or the CIDR
     * 
     */
    @Import(name="ip", required=true)
    private Output ip;

    /**
     * @return The IP or the CIDR
     * 
     */
    public Output ip() {
        return this.ip;
    }

    /**
     * IPv4 address
     * 
     */
    @Import(name="ipOnFirewall", required=true)
    private Output ipOnFirewall;

    /**
     * @return IPv4 address
     * 
     */
    public Output ipOnFirewall() {
        return this.ipOnFirewall;
    }

    private GetFirewallArgs() {}

    private GetFirewallArgs(GetFirewallArgs $) {
        this.ip = $.ip;
        this.ipOnFirewall = $.ipOnFirewall;
    }

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

    public static final class Builder {
        private GetFirewallArgs $;

        public Builder() {
            $ = new GetFirewallArgs();
        }

        public Builder(GetFirewallArgs defaults) {
            $ = new GetFirewallArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param ip The IP or the CIDR
         * 
         * @return builder
         * 
         */
        public Builder ip(Output ip) {
            $.ip = ip;
            return this;
        }

        /**
         * @param ip The IP or the CIDR
         * 
         * @return builder
         * 
         */
        public Builder ip(String ip) {
            return ip(Output.of(ip));
        }

        /**
         * @param ipOnFirewall IPv4 address
         * 
         * @return builder
         * 
         */
        public Builder ipOnFirewall(Output ipOnFirewall) {
            $.ipOnFirewall = ipOnFirewall;
            return this;
        }

        /**
         * @param ipOnFirewall IPv4 address
         * 
         * @return builder
         * 
         */
        public Builder ipOnFirewall(String ipOnFirewall) {
            return ipOnFirewall(Output.of(ipOnFirewall));
        }

        public GetFirewallArgs build() {
            if ($.ip == null) {
                throw new MissingRequiredPropertyException("GetFirewallArgs", "ip");
            }
            if ($.ipOnFirewall == null) {
                throw new MissingRequiredPropertyException("GetFirewallArgs", "ipOnFirewall");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy