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

com.pulumi.alicloud.eci.outputs.GetVirtualNodesResult Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.eci.outputs;

import com.pulumi.alicloud.eci.outputs.GetVirtualNodesNode;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetVirtualNodesResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private List ids;
    private @Nullable String nameRegex;
    private List names;
    private List nodes;
    private @Nullable String outputFile;
    private @Nullable String resourceGroupId;
    private @Nullable String securityGroupId;
    private @Nullable String status;
    private @Nullable Map tags;
    private @Nullable String virtualNodeName;
    private @Nullable String vswitchId;

    private GetVirtualNodesResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public List ids() {
        return this.ids;
    }
    public Optional nameRegex() {
        return Optional.ofNullable(this.nameRegex);
    }
    public List names() {
        return this.names;
    }
    public List nodes() {
        return this.nodes;
    }
    public Optional outputFile() {
        return Optional.ofNullable(this.outputFile);
    }
    public Optional resourceGroupId() {
        return Optional.ofNullable(this.resourceGroupId);
    }
    public Optional securityGroupId() {
        return Optional.ofNullable(this.securityGroupId);
    }
    public Optional status() {
        return Optional.ofNullable(this.status);
    }
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    public Optional virtualNodeName() {
        return Optional.ofNullable(this.virtualNodeName);
    }
    public Optional vswitchId() {
        return Optional.ofNullable(this.vswitchId);
    }

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

    public static Builder builder(GetVirtualNodesResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private List ids;
        private @Nullable String nameRegex;
        private List names;
        private List nodes;
        private @Nullable String outputFile;
        private @Nullable String resourceGroupId;
        private @Nullable String securityGroupId;
        private @Nullable String status;
        private @Nullable Map tags;
        private @Nullable String virtualNodeName;
        private @Nullable String vswitchId;
        public Builder() {}
        public Builder(GetVirtualNodesResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.ids = defaults.ids;
    	      this.nameRegex = defaults.nameRegex;
    	      this.names = defaults.names;
    	      this.nodes = defaults.nodes;
    	      this.outputFile = defaults.outputFile;
    	      this.resourceGroupId = defaults.resourceGroupId;
    	      this.securityGroupId = defaults.securityGroupId;
    	      this.status = defaults.status;
    	      this.tags = defaults.tags;
    	      this.virtualNodeName = defaults.virtualNodeName;
    	      this.vswitchId = defaults.vswitchId;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVirtualNodesResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ids(List ids) {
            if (ids == null) {
              throw new MissingRequiredPropertyException("GetVirtualNodesResult", "ids");
            }
            this.ids = ids;
            return this;
        }
        public Builder ids(String... ids) {
            return ids(List.of(ids));
        }
        @CustomType.Setter
        public Builder nameRegex(@Nullable String nameRegex) {

            this.nameRegex = nameRegex;
            return this;
        }
        @CustomType.Setter
        public Builder names(List names) {
            if (names == null) {
              throw new MissingRequiredPropertyException("GetVirtualNodesResult", "names");
            }
            this.names = names;
            return this;
        }
        public Builder names(String... names) {
            return names(List.of(names));
        }
        @CustomType.Setter
        public Builder nodes(List nodes) {
            if (nodes == null) {
              throw new MissingRequiredPropertyException("GetVirtualNodesResult", "nodes");
            }
            this.nodes = nodes;
            return this;
        }
        public Builder nodes(GetVirtualNodesNode... nodes) {
            return nodes(List.of(nodes));
        }
        @CustomType.Setter
        public Builder outputFile(@Nullable String outputFile) {

            this.outputFile = outputFile;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGroupId(@Nullable String resourceGroupId) {

            this.resourceGroupId = resourceGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder securityGroupId(@Nullable String securityGroupId) {

            this.securityGroupId = securityGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder virtualNodeName(@Nullable String virtualNodeName) {

            this.virtualNodeName = virtualNodeName;
            return this;
        }
        @CustomType.Setter
        public Builder vswitchId(@Nullable String vswitchId) {

            this.vswitchId = vswitchId;
            return this;
        }
        public GetVirtualNodesResult build() {
            final var _resultValue = new GetVirtualNodesResult();
            _resultValue.id = id;
            _resultValue.ids = ids;
            _resultValue.nameRegex = nameRegex;
            _resultValue.names = names;
            _resultValue.nodes = nodes;
            _resultValue.outputFile = outputFile;
            _resultValue.resourceGroupId = resourceGroupId;
            _resultValue.securityGroupId = securityGroupId;
            _resultValue.status = status;
            _resultValue.tags = tags;
            _resultValue.virtualNodeName = virtualNodeName;
            _resultValue.vswitchId = vswitchId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy