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

com.pulumi.ns1.outputs.GetNetworksResult Maven / Gradle / Ivy

There is a newer version: 3.5.0-alpha.1732601130
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.ns1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.ns1.outputs.GetNetworksNetwork;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetNetworksResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return A set of the available networks. Networks is
     * documented below.
     * 
     */
    private List networks;

    private GetNetworksResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return A set of the available networks. Networks is
     * documented below.
     * 
     */
    public List networks() {
        return this.networks;
    }

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

    public static Builder builder(GetNetworksResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private List networks;
        public Builder() {}
        public Builder(GetNetworksResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.networks = defaults.networks;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetNetworksResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder networks(List networks) {
            if (networks == null) {
              throw new MissingRequiredPropertyException("GetNetworksResult", "networks");
            }
            this.networks = networks;
            return this;
        }
        public Builder networks(GetNetworksNetwork... networks) {
            return networks(List.of(networks));
        }
        public GetNetworksResult build() {
            final var _resultValue = new GetNetworksResult();
            _resultValue.id = id;
            _resultValue.networks = networks;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy