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

com.pulumi.azure.compute.outputs.GetVirtualMachineResult Maven / Gradle / Ivy

// *** 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.azure.compute.outputs;

import com.pulumi.azure.compute.outputs.GetVirtualMachineIdentity;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetVirtualMachineResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return A `identity` block as defined below.
     * 
     */
    private List identities;
    private String location;
    private String name;
    /**
     * @return The power state of the virtual machine.
     * 
     */
    private String powerState;
    /**
     * @return The Primary Private IP Address assigned to this Virtual Machine.
     * 
     */
    private String privateIpAddress;
    /**
     * @return A list of Private IP Addresses assigned to this Virtual Machine.
     * 
     */
    private List privateIpAddresses;
    /**
     * @return The Primary Public IP Address assigned to this Virtual Machine.
     * 
     */
    private String publicIpAddress;
    /**
     * @return A list of the Public IP Addresses assigned to this Virtual Machine.
     * 
     */
    private List publicIpAddresses;
    private String resourceGroupName;

    private GetVirtualMachineResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return A `identity` block as defined below.
     * 
     */
    public List identities() {
        return this.identities;
    }
    public String location() {
        return this.location;
    }
    public String name() {
        return this.name;
    }
    /**
     * @return The power state of the virtual machine.
     * 
     */
    public String powerState() {
        return this.powerState;
    }
    /**
     * @return The Primary Private IP Address assigned to this Virtual Machine.
     * 
     */
    public String privateIpAddress() {
        return this.privateIpAddress;
    }
    /**
     * @return A list of Private IP Addresses assigned to this Virtual Machine.
     * 
     */
    public List privateIpAddresses() {
        return this.privateIpAddresses;
    }
    /**
     * @return The Primary Public IP Address assigned to this Virtual Machine.
     * 
     */
    public String publicIpAddress() {
        return this.publicIpAddress;
    }
    /**
     * @return A list of the Public IP Addresses assigned to this Virtual Machine.
     * 
     */
    public List publicIpAddresses() {
        return this.publicIpAddresses;
    }
    public String resourceGroupName() {
        return this.resourceGroupName;
    }

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

    public static Builder builder(GetVirtualMachineResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private List identities;
        private String location;
        private String name;
        private String powerState;
        private String privateIpAddress;
        private List privateIpAddresses;
        private String publicIpAddress;
        private List publicIpAddresses;
        private String resourceGroupName;
        public Builder() {}
        public Builder(GetVirtualMachineResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.identities = defaults.identities;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.powerState = defaults.powerState;
    	      this.privateIpAddress = defaults.privateIpAddress;
    	      this.privateIpAddresses = defaults.privateIpAddresses;
    	      this.publicIpAddress = defaults.publicIpAddress;
    	      this.publicIpAddresses = defaults.publicIpAddresses;
    	      this.resourceGroupName = defaults.resourceGroupName;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identities(List identities) {
            if (identities == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "identities");
            }
            this.identities = identities;
            return this;
        }
        public Builder identities(GetVirtualMachineIdentity... identities) {
            return identities(List.of(identities));
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder powerState(String powerState) {
            if (powerState == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "powerState");
            }
            this.powerState = powerState;
            return this;
        }
        @CustomType.Setter
        public Builder privateIpAddress(String privateIpAddress) {
            if (privateIpAddress == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "privateIpAddress");
            }
            this.privateIpAddress = privateIpAddress;
            return this;
        }
        @CustomType.Setter
        public Builder privateIpAddresses(List privateIpAddresses) {
            if (privateIpAddresses == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "privateIpAddresses");
            }
            this.privateIpAddresses = privateIpAddresses;
            return this;
        }
        public Builder privateIpAddresses(String... privateIpAddresses) {
            return privateIpAddresses(List.of(privateIpAddresses));
        }
        @CustomType.Setter
        public Builder publicIpAddress(String publicIpAddress) {
            if (publicIpAddress == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "publicIpAddress");
            }
            this.publicIpAddress = publicIpAddress;
            return this;
        }
        @CustomType.Setter
        public Builder publicIpAddresses(List publicIpAddresses) {
            if (publicIpAddresses == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "publicIpAddresses");
            }
            this.publicIpAddresses = publicIpAddresses;
            return this;
        }
        public Builder publicIpAddresses(String... publicIpAddresses) {
            return publicIpAddresses(List.of(publicIpAddresses));
        }
        @CustomType.Setter
        public Builder resourceGroupName(String resourceGroupName) {
            if (resourceGroupName == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineResult", "resourceGroupName");
            }
            this.resourceGroupName = resourceGroupName;
            return this;
        }
        public GetVirtualMachineResult build() {
            final var _resultValue = new GetVirtualMachineResult();
            _resultValue.id = id;
            _resultValue.identities = identities;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.powerState = powerState;
            _resultValue.privateIpAddress = privateIpAddress;
            _resultValue.privateIpAddresses = privateIpAddresses;
            _resultValue.publicIpAddress = publicIpAddress;
            _resultValue.publicIpAddresses = publicIpAddresses;
            _resultValue.resourceGroupName = resourceGroupName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy