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

com.pulumi.linode.outputs.GetInstanceNetworkingIpv4 Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.outputs.GetInstanceNetworkingIpv4Private;
import com.pulumi.linode.outputs.GetInstanceNetworkingIpv4Public;
import com.pulumi.linode.outputs.GetInstanceNetworkingIpv4Reserved;
import com.pulumi.linode.outputs.GetInstanceNetworkingIpv4Shared;
import com.pulumi.linode.outputs.GetInstanceNetworkingIpv4Vpc;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetInstanceNetworkingIpv4 {
    private List privates;
    /**
     * @return Whether this is a public or private IP address.
     * 
     */
    private List publics;
    private List reserveds;
    private List shareds;
    private List vpcs;

    private GetInstanceNetworkingIpv4() {}
    public List privates() {
        return this.privates;
    }
    /**
     * @return Whether this is a public or private IP address.
     * 
     */
    public List publics() {
        return this.publics;
    }
    public List reserveds() {
        return this.reserveds;
    }
    public List shareds() {
        return this.shareds;
    }
    public List vpcs() {
        return this.vpcs;
    }

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

    public static Builder builder(GetInstanceNetworkingIpv4 defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List privates;
        private List publics;
        private List reserveds;
        private List shareds;
        private List vpcs;
        public Builder() {}
        public Builder(GetInstanceNetworkingIpv4 defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.privates = defaults.privates;
    	      this.publics = defaults.publics;
    	      this.reserveds = defaults.reserveds;
    	      this.shareds = defaults.shareds;
    	      this.vpcs = defaults.vpcs;
        }

        @CustomType.Setter
        public Builder privates(List privates) {
            if (privates == null) {
              throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4", "privates");
            }
            this.privates = privates;
            return this;
        }
        public Builder privates(GetInstanceNetworkingIpv4Private... privates) {
            return privates(List.of(privates));
        }
        @CustomType.Setter
        public Builder publics(List publics) {
            if (publics == null) {
              throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4", "publics");
            }
            this.publics = publics;
            return this;
        }
        public Builder publics(GetInstanceNetworkingIpv4Public... publics) {
            return publics(List.of(publics));
        }
        @CustomType.Setter
        public Builder reserveds(List reserveds) {
            if (reserveds == null) {
              throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4", "reserveds");
            }
            this.reserveds = reserveds;
            return this;
        }
        public Builder reserveds(GetInstanceNetworkingIpv4Reserved... reserveds) {
            return reserveds(List.of(reserveds));
        }
        @CustomType.Setter
        public Builder shareds(List shareds) {
            if (shareds == null) {
              throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4", "shareds");
            }
            this.shareds = shareds;
            return this;
        }
        public Builder shareds(GetInstanceNetworkingIpv4Shared... shareds) {
            return shareds(List.of(shareds));
        }
        @CustomType.Setter
        public Builder vpcs(List vpcs) {
            if (vpcs == null) {
              throw new MissingRequiredPropertyException("GetInstanceNetworkingIpv4", "vpcs");
            }
            this.vpcs = vpcs;
            return this;
        }
        public Builder vpcs(GetInstanceNetworkingIpv4Vpc... vpcs) {
            return vpcs(List.of(vpcs));
        }
        public GetInstanceNetworkingIpv4 build() {
            final var _resultValue = new GetInstanceNetworkingIpv4();
            _resultValue.privates = privates;
            _resultValue.publics = publics;
            _resultValue.reserveds = reserveds;
            _resultValue.shareds = shareds;
            _resultValue.vpcs = vpcs;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy