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

com.pulumi.alicloud.bastionhost.outputs.GetHostsResult 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.bastionhost.outputs;

import com.pulumi.alicloud.bastionhost.outputs.GetHostsHost;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetHostsResult {
    private @Nullable Boolean enableDetails;
    private @Nullable String hostAddress;
    private @Nullable String hostName;
    private List hosts;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private List ids;
    private String instanceId;
    private @Nullable String nameRegex;
    private List names;
    private @Nullable String osType;
    private @Nullable String outputFile;
    private @Nullable String source;
    private @Nullable String sourceInstanceId;
    private @Nullable String sourceInstanceState;

    private GetHostsResult() {}
    public Optional enableDetails() {
        return Optional.ofNullable(this.enableDetails);
    }
    public Optional hostAddress() {
        return Optional.ofNullable(this.hostAddress);
    }
    public Optional hostName() {
        return Optional.ofNullable(this.hostName);
    }
    public List hosts() {
        return this.hosts;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public List ids() {
        return this.ids;
    }
    public String instanceId() {
        return this.instanceId;
    }
    public Optional nameRegex() {
        return Optional.ofNullable(this.nameRegex);
    }
    public List names() {
        return this.names;
    }
    public Optional osType() {
        return Optional.ofNullable(this.osType);
    }
    public Optional outputFile() {
        return Optional.ofNullable(this.outputFile);
    }
    public Optional source() {
        return Optional.ofNullable(this.source);
    }
    public Optional sourceInstanceId() {
        return Optional.ofNullable(this.sourceInstanceId);
    }
    public Optional sourceInstanceState() {
        return Optional.ofNullable(this.sourceInstanceState);
    }

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

    public static Builder builder(GetHostsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enableDetails;
        private @Nullable String hostAddress;
        private @Nullable String hostName;
        private List hosts;
        private String id;
        private List ids;
        private String instanceId;
        private @Nullable String nameRegex;
        private List names;
        private @Nullable String osType;
        private @Nullable String outputFile;
        private @Nullable String source;
        private @Nullable String sourceInstanceId;
        private @Nullable String sourceInstanceState;
        public Builder() {}
        public Builder(GetHostsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enableDetails = defaults.enableDetails;
    	      this.hostAddress = defaults.hostAddress;
    	      this.hostName = defaults.hostName;
    	      this.hosts = defaults.hosts;
    	      this.id = defaults.id;
    	      this.ids = defaults.ids;
    	      this.instanceId = defaults.instanceId;
    	      this.nameRegex = defaults.nameRegex;
    	      this.names = defaults.names;
    	      this.osType = defaults.osType;
    	      this.outputFile = defaults.outputFile;
    	      this.source = defaults.source;
    	      this.sourceInstanceId = defaults.sourceInstanceId;
    	      this.sourceInstanceState = defaults.sourceInstanceState;
        }

        @CustomType.Setter
        public Builder enableDetails(@Nullable Boolean enableDetails) {

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

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

            this.hostName = hostName;
            return this;
        }
        @CustomType.Setter
        public Builder hosts(List hosts) {
            if (hosts == null) {
              throw new MissingRequiredPropertyException("GetHostsResult", "hosts");
            }
            this.hosts = hosts;
            return this;
        }
        public Builder hosts(GetHostsHost... hosts) {
            return hosts(List.of(hosts));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetHostsResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ids(List ids) {
            if (ids == null) {
              throw new MissingRequiredPropertyException("GetHostsResult", "ids");
            }
            this.ids = ids;
            return this;
        }
        public Builder ids(String... ids) {
            return ids(List.of(ids));
        }
        @CustomType.Setter
        public Builder instanceId(String instanceId) {
            if (instanceId == null) {
              throw new MissingRequiredPropertyException("GetHostsResult", "instanceId");
            }
            this.instanceId = instanceId;
            return this;
        }
        @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("GetHostsResult", "names");
            }
            this.names = names;
            return this;
        }
        public Builder names(String... names) {
            return names(List.of(names));
        }
        @CustomType.Setter
        public Builder osType(@Nullable String osType) {

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

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

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

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

            this.sourceInstanceState = sourceInstanceState;
            return this;
        }
        public GetHostsResult build() {
            final var _resultValue = new GetHostsResult();
            _resultValue.enableDetails = enableDetails;
            _resultValue.hostAddress = hostAddress;
            _resultValue.hostName = hostName;
            _resultValue.hosts = hosts;
            _resultValue.id = id;
            _resultValue.ids = ids;
            _resultValue.instanceId = instanceId;
            _resultValue.nameRegex = nameRegex;
            _resultValue.names = names;
            _resultValue.osType = osType;
            _resultValue.outputFile = outputFile;
            _resultValue.source = source;
            _resultValue.sourceInstanceId = sourceInstanceId;
            _resultValue.sourceInstanceState = sourceInstanceState;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy