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

com.pulumi.azurenative.networkcloud.BareMetalMachineArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurenative.networkcloud;

import com.pulumi.azurenative.networkcloud.inputs.AdministrativeCredentialsArgs;
import com.pulumi.azurenative.networkcloud.inputs.ExtendedLocationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BareMetalMachineArgs extends com.pulumi.resources.ResourceArgs {

    public static final BareMetalMachineArgs Empty = new BareMetalMachineArgs();

    /**
     * The name of the bare metal machine.
     * 
     */
    @Import(name="bareMetalMachineName")
    private @Nullable Output bareMetalMachineName;

    /**
     * @return The name of the bare metal machine.
     * 
     */
    public Optional> bareMetalMachineName() {
        return Optional.ofNullable(this.bareMetalMachineName);
    }

    /**
     * The connection string for the baseboard management controller including IP address and protocol.
     * 
     */
    @Import(name="bmcConnectionString", required=true)
    private Output bmcConnectionString;

    /**
     * @return The connection string for the baseboard management controller including IP address and protocol.
     * 
     */
    public Output bmcConnectionString() {
        return this.bmcConnectionString;
    }

    /**
     * The credentials of the baseboard management controller on this bare metal machine.
     * 
     */
    @Import(name="bmcCredentials", required=true)
    private Output bmcCredentials;

    /**
     * @return The credentials of the baseboard management controller on this bare metal machine.
     * 
     */
    public Output bmcCredentials() {
        return this.bmcCredentials;
    }

    /**
     * The MAC address of the BMC device.
     * 
     */
    @Import(name="bmcMacAddress", required=true)
    private Output bmcMacAddress;

    /**
     * @return The MAC address of the BMC device.
     * 
     */
    public Output bmcMacAddress() {
        return this.bmcMacAddress;
    }

    /**
     * The MAC address of a NIC connected to the PXE network.
     * 
     */
    @Import(name="bootMacAddress", required=true)
    private Output bootMacAddress;

    /**
     * @return The MAC address of a NIC connected to the PXE network.
     * 
     */
    public Output bootMacAddress() {
        return this.bootMacAddress;
    }

    /**
     * The extended location of the cluster associated with the resource.
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return The extended location of the cluster associated with the resource.
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The custom details provided by the customer.
     * 
     */
    @Import(name="machineDetails", required=true)
    private Output machineDetails;

    /**
     * @return The custom details provided by the customer.
     * 
     */
    public Output machineDetails() {
        return this.machineDetails;
    }

    /**
     * The OS-level hostname assigned to this machine.
     * 
     */
    @Import(name="machineName", required=true)
    private Output machineName;

    /**
     * @return The OS-level hostname assigned to this machine.
     * 
     */
    public Output machineName() {
        return this.machineName;
    }

    /**
     * The unique internal identifier of the bare metal machine SKU.
     * 
     */
    @Import(name="machineSkuId", required=true)
    private Output machineSkuId;

    /**
     * @return The unique internal identifier of the bare metal machine SKU.
     * 
     */
    public Output machineSkuId() {
        return this.machineSkuId;
    }

    /**
     * The resource ID of the rack where this bare metal machine resides.
     * 
     */
    @Import(name="rackId", required=true)
    private Output rackId;

    /**
     * @return The resource ID of the rack where this bare metal machine resides.
     * 
     */
    public Output rackId() {
        return this.rackId;
    }

    /**
     * The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1.
     * 
     */
    @Import(name="rackSlot", required=true)
    private Output rackSlot;

    /**
     * @return The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1.
     * 
     */
    public Output rackSlot() {
        return this.rackSlot;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The serial number of the bare metal machine.
     * 
     */
    @Import(name="serialNumber", required=true)
    private Output serialNumber;

    /**
     * @return The serial number of the bare metal machine.
     * 
     */
    public Output serialNumber() {
        return this.serialNumber;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private BareMetalMachineArgs() {}

    private BareMetalMachineArgs(BareMetalMachineArgs $) {
        this.bareMetalMachineName = $.bareMetalMachineName;
        this.bmcConnectionString = $.bmcConnectionString;
        this.bmcCredentials = $.bmcCredentials;
        this.bmcMacAddress = $.bmcMacAddress;
        this.bootMacAddress = $.bootMacAddress;
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.machineDetails = $.machineDetails;
        this.machineName = $.machineName;
        this.machineSkuId = $.machineSkuId;
        this.rackId = $.rackId;
        this.rackSlot = $.rackSlot;
        this.resourceGroupName = $.resourceGroupName;
        this.serialNumber = $.serialNumber;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private BareMetalMachineArgs $;

        public Builder() {
            $ = new BareMetalMachineArgs();
        }

        public Builder(BareMetalMachineArgs defaults) {
            $ = new BareMetalMachineArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param bareMetalMachineName The name of the bare metal machine.
         * 
         * @return builder
         * 
         */
        public Builder bareMetalMachineName(@Nullable Output bareMetalMachineName) {
            $.bareMetalMachineName = bareMetalMachineName;
            return this;
        }

        /**
         * @param bareMetalMachineName The name of the bare metal machine.
         * 
         * @return builder
         * 
         */
        public Builder bareMetalMachineName(String bareMetalMachineName) {
            return bareMetalMachineName(Output.of(bareMetalMachineName));
        }

        /**
         * @param bmcConnectionString The connection string for the baseboard management controller including IP address and protocol.
         * 
         * @return builder
         * 
         */
        public Builder bmcConnectionString(Output bmcConnectionString) {
            $.bmcConnectionString = bmcConnectionString;
            return this;
        }

        /**
         * @param bmcConnectionString The connection string for the baseboard management controller including IP address and protocol.
         * 
         * @return builder
         * 
         */
        public Builder bmcConnectionString(String bmcConnectionString) {
            return bmcConnectionString(Output.of(bmcConnectionString));
        }

        /**
         * @param bmcCredentials The credentials of the baseboard management controller on this bare metal machine.
         * 
         * @return builder
         * 
         */
        public Builder bmcCredentials(Output bmcCredentials) {
            $.bmcCredentials = bmcCredentials;
            return this;
        }

        /**
         * @param bmcCredentials The credentials of the baseboard management controller on this bare metal machine.
         * 
         * @return builder
         * 
         */
        public Builder bmcCredentials(AdministrativeCredentialsArgs bmcCredentials) {
            return bmcCredentials(Output.of(bmcCredentials));
        }

        /**
         * @param bmcMacAddress The MAC address of the BMC device.
         * 
         * @return builder
         * 
         */
        public Builder bmcMacAddress(Output bmcMacAddress) {
            $.bmcMacAddress = bmcMacAddress;
            return this;
        }

        /**
         * @param bmcMacAddress The MAC address of the BMC device.
         * 
         * @return builder
         * 
         */
        public Builder bmcMacAddress(String bmcMacAddress) {
            return bmcMacAddress(Output.of(bmcMacAddress));
        }

        /**
         * @param bootMacAddress The MAC address of a NIC connected to the PXE network.
         * 
         * @return builder
         * 
         */
        public Builder bootMacAddress(Output bootMacAddress) {
            $.bootMacAddress = bootMacAddress;
            return this;
        }

        /**
         * @param bootMacAddress The MAC address of a NIC connected to the PXE network.
         * 
         * @return builder
         * 
         */
        public Builder bootMacAddress(String bootMacAddress) {
            return bootMacAddress(Output.of(bootMacAddress));
        }

        /**
         * @param extendedLocation The extended location of the cluster associated with the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The extended location of the cluster associated with the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param machineDetails The custom details provided by the customer.
         * 
         * @return builder
         * 
         */
        public Builder machineDetails(Output machineDetails) {
            $.machineDetails = machineDetails;
            return this;
        }

        /**
         * @param machineDetails The custom details provided by the customer.
         * 
         * @return builder
         * 
         */
        public Builder machineDetails(String machineDetails) {
            return machineDetails(Output.of(machineDetails));
        }

        /**
         * @param machineName The OS-level hostname assigned to this machine.
         * 
         * @return builder
         * 
         */
        public Builder machineName(Output machineName) {
            $.machineName = machineName;
            return this;
        }

        /**
         * @param machineName The OS-level hostname assigned to this machine.
         * 
         * @return builder
         * 
         */
        public Builder machineName(String machineName) {
            return machineName(Output.of(machineName));
        }

        /**
         * @param machineSkuId The unique internal identifier of the bare metal machine SKU.
         * 
         * @return builder
         * 
         */
        public Builder machineSkuId(Output machineSkuId) {
            $.machineSkuId = machineSkuId;
            return this;
        }

        /**
         * @param machineSkuId The unique internal identifier of the bare metal machine SKU.
         * 
         * @return builder
         * 
         */
        public Builder machineSkuId(String machineSkuId) {
            return machineSkuId(Output.of(machineSkuId));
        }

        /**
         * @param rackId The resource ID of the rack where this bare metal machine resides.
         * 
         * @return builder
         * 
         */
        public Builder rackId(Output rackId) {
            $.rackId = rackId;
            return this;
        }

        /**
         * @param rackId The resource ID of the rack where this bare metal machine resides.
         * 
         * @return builder
         * 
         */
        public Builder rackId(String rackId) {
            return rackId(Output.of(rackId));
        }

        /**
         * @param rackSlot The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1.
         * 
         * @return builder
         * 
         */
        public Builder rackSlot(Output rackSlot) {
            $.rackSlot = rackSlot;
            return this;
        }

        /**
         * @param rackSlot The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1.
         * 
         * @return builder
         * 
         */
        public Builder rackSlot(Double rackSlot) {
            return rackSlot(Output.of(rackSlot));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serialNumber The serial number of the bare metal machine.
         * 
         * @return builder
         * 
         */
        public Builder serialNumber(Output serialNumber) {
            $.serialNumber = serialNumber;
            return this;
        }

        /**
         * @param serialNumber The serial number of the bare metal machine.
         * 
         * @return builder
         * 
         */
        public Builder serialNumber(String serialNumber) {
            return serialNumber(Output.of(serialNumber));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public BareMetalMachineArgs build() {
            if ($.bmcConnectionString == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "bmcConnectionString");
            }
            if ($.bmcCredentials == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "bmcCredentials");
            }
            if ($.bmcMacAddress == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "bmcMacAddress");
            }
            if ($.bootMacAddress == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "bootMacAddress");
            }
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "extendedLocation");
            }
            if ($.machineDetails == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "machineDetails");
            }
            if ($.machineName == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "machineName");
            }
            if ($.machineSkuId == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "machineSkuId");
            }
            if ($.rackId == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "rackId");
            }
            if ($.rackSlot == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "rackSlot");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "resourceGroupName");
            }
            if ($.serialNumber == null) {
                throw new MissingRequiredPropertyException("BareMetalMachineArgs", "serialNumber");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy