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

com.equinix.pulumi.metal.outputs.GetDeviceNetwork Maven / Gradle / Ivy

There is a newer version: 0.19.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.equinix.pulumi.metal.outputs;

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

@CustomType
public final class GetDeviceNetwork {
    /**
     * @return IPv4 or IPv6 address string
     * 
     */
    private String address;
    /**
     * @return Bit length of the network mask of the address
     * 
     */
    private Integer cidr;
    /**
     * @return IP version - "4" or "6"
     * 
     */
    private Integer family;
    /**
     * @return Address of router
     * 
     */
    private String gateway;
    /**
     * @return Whether the address is routable from the Internet
     * 
     */
    private Boolean public_;

    private GetDeviceNetwork() {}
    /**
     * @return IPv4 or IPv6 address string
     * 
     */
    public String address() {
        return this.address;
    }
    /**
     * @return Bit length of the network mask of the address
     * 
     */
    public Integer cidr() {
        return this.cidr;
    }
    /**
     * @return IP version - "4" or "6"
     * 
     */
    public Integer family() {
        return this.family;
    }
    /**
     * @return Address of router
     * 
     */
    public String gateway() {
        return this.gateway;
    }
    /**
     * @return Whether the address is routable from the Internet
     * 
     */
    public Boolean public_() {
        return this.public_;
    }

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

    public static Builder builder(GetDeviceNetwork defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String address;
        private Integer cidr;
        private Integer family;
        private String gateway;
        private Boolean public_;
        public Builder() {}
        public Builder(GetDeviceNetwork defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.address = defaults.address;
    	      this.cidr = defaults.cidr;
    	      this.family = defaults.family;
    	      this.gateway = defaults.gateway;
    	      this.public_ = defaults.public_;
        }

        @CustomType.Setter
        public Builder address(String address) {
            if (address == null) {
              throw new MissingRequiredPropertyException("GetDeviceNetwork", "address");
            }
            this.address = address;
            return this;
        }
        @CustomType.Setter
        public Builder cidr(Integer cidr) {
            if (cidr == null) {
              throw new MissingRequiredPropertyException("GetDeviceNetwork", "cidr");
            }
            this.cidr = cidr;
            return this;
        }
        @CustomType.Setter
        public Builder family(Integer family) {
            if (family == null) {
              throw new MissingRequiredPropertyException("GetDeviceNetwork", "family");
            }
            this.family = family;
            return this;
        }
        @CustomType.Setter
        public Builder gateway(String gateway) {
            if (gateway == null) {
              throw new MissingRequiredPropertyException("GetDeviceNetwork", "gateway");
            }
            this.gateway = gateway;
            return this;
        }
        @CustomType.Setter("public")
        public Builder public_(Boolean public_) {
            if (public_ == null) {
              throw new MissingRequiredPropertyException("GetDeviceNetwork", "public_");
            }
            this.public_ = public_;
            return this;
        }
        public GetDeviceNetwork build() {
            final var _resultValue = new GetDeviceNetwork();
            _resultValue.address = address;
            _resultValue.cidr = cidr;
            _resultValue.family = family;
            _resultValue.gateway = gateway;
            _resultValue.public_ = public_;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy