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

com.pulumi.vsphere.outputs.GetHostResult Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1731738919
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.vsphere.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetHostResult {
    private String datacenterId;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private @Nullable String name;
    /**
     * @return The managed object ID of the ESXi
     * host's root resource pool.
     * 
     */
    private String resourcePoolId;

    private GetHostResult() {}
    public String datacenterId() {
        return this.datacenterId;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return The managed object ID of the ESXi
     * host's root resource pool.
     * 
     */
    public String resourcePoolId() {
        return this.resourcePoolId;
    }

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

    public static Builder builder(GetHostResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String datacenterId;
        private String id;
        private @Nullable String name;
        private String resourcePoolId;
        public Builder() {}
        public Builder(GetHostResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.datacenterId = defaults.datacenterId;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.resourcePoolId = defaults.resourcePoolId;
        }

        @CustomType.Setter
        public Builder datacenterId(String datacenterId) {
            if (datacenterId == null) {
              throw new MissingRequiredPropertyException("GetHostResult", "datacenterId");
            }
            this.datacenterId = datacenterId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetHostResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder resourcePoolId(String resourcePoolId) {
            if (resourcePoolId == null) {
              throw new MissingRequiredPropertyException("GetHostResult", "resourcePoolId");
            }
            this.resourcePoolId = resourcePoolId;
            return this;
        }
        public GetHostResult build() {
            final var _resultValue = new GetHostResult();
            _resultValue.datacenterId = datacenterId;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.resourcePoolId = resourcePoolId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy