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

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

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

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

@CustomType
public final class GetNetworksNetwork {
    /**
     * @return Label associated with the network.
     * 
     */
    private String label;
    /**
     * @return Name of the network.
     * 
     */
    private String name;
    /**
     * @return network ID (`int`). Default is network 0, the primary NS1 Managed DNS Network.
     * 
     */
    private Integer networkId;

    private GetNetworksNetwork() {}
    /**
     * @return Label associated with the network.
     * 
     */
    public String label() {
        return this.label;
    }
    /**
     * @return Name of the network.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return network ID (`int`). Default is network 0, the primary NS1 Managed DNS Network.
     * 
     */
    public Integer networkId() {
        return this.networkId;
    }

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

    public static Builder builder(GetNetworksNetwork defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String label;
        private String name;
        private Integer networkId;
        public Builder() {}
        public Builder(GetNetworksNetwork defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.label = defaults.label;
    	      this.name = defaults.name;
    	      this.networkId = defaults.networkId;
        }

        @CustomType.Setter
        public Builder label(String label) {
            if (label == null) {
              throw new MissingRequiredPropertyException("GetNetworksNetwork", "label");
            }
            this.label = label;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetNetworksNetwork", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkId(Integer networkId) {
            if (networkId == null) {
              throw new MissingRequiredPropertyException("GetNetworksNetwork", "networkId");
            }
            this.networkId = networkId;
            return this;
        }
        public GetNetworksNetwork build() {
            final var _resultValue = new GetNetworksNetwork();
            _resultValue.label = label;
            _resultValue.name = name;
            _resultValue.networkId = networkId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy