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

com.pulumi.azurenative.baremetalinfrastructure.AzureBareMetalInstanceArgs 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.azurenative.baremetalinfrastructure;

import com.pulumi.azurenative.baremetalinfrastructure.enums.AzureBareMetalInstancePowerStateEnum;
import com.pulumi.azurenative.baremetalinfrastructure.inputs.HardwareProfileArgs;
import com.pulumi.azurenative.baremetalinfrastructure.inputs.NetworkProfileArgs;
import com.pulumi.azurenative.baremetalinfrastructure.inputs.OSProfileArgs;
import com.pulumi.azurenative.baremetalinfrastructure.inputs.StorageProfileArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AzureBareMetalInstanceArgs Empty = new AzureBareMetalInstanceArgs();

    /**
     * Specifies the Azure Bare Metal Instance unique ID.
     * 
     */
    @Import(name="azureBareMetalInstanceId")
    private @Nullable Output azureBareMetalInstanceId;

    /**
     * @return Specifies the Azure Bare Metal Instance unique ID.
     * 
     */
    public Optional> azureBareMetalInstanceId() {
        return Optional.ofNullable(this.azureBareMetalInstanceId);
    }

    /**
     * Name of the Azure Bare Metal Instance, also known as the ResourceName.
     * 
     */
    @Import(name="azureBareMetalInstanceName")
    private @Nullable Output azureBareMetalInstanceName;

    /**
     * @return Name of the Azure Bare Metal Instance, also known as the ResourceName.
     * 
     */
    public Optional> azureBareMetalInstanceName() {
        return Optional.ofNullable(this.azureBareMetalInstanceName);
    }

    /**
     * Specifies the hardware settings for the Azure Bare Metal Instance.
     * 
     */
    @Import(name="hardwareProfile")
    private @Nullable Output hardwareProfile;

    /**
     * @return Specifies the hardware settings for the Azure Bare Metal Instance.
     * 
     */
    public Optional> hardwareProfile() {
        return Optional.ofNullable(this.hardwareProfile);
    }

    /**
     * Hardware revision of an Azure Bare Metal Instance
     * 
     */
    @Import(name="hwRevision")
    private @Nullable Output hwRevision;

    /**
     * @return Hardware revision of an Azure Bare Metal Instance
     * 
     */
    public Optional> hwRevision() {
        return Optional.ofNullable(this.hwRevision);
    }

    /**
     * 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);
    }

    /**
     * Specifies the network settings for the Azure Bare Metal Instance.
     * 
     */
    @Import(name="networkProfile")
    private @Nullable Output networkProfile;

    /**
     * @return Specifies the network settings for the Azure Bare Metal Instance.
     * 
     */
    public Optional> networkProfile() {
        return Optional.ofNullable(this.networkProfile);
    }

    /**
     * Specifies the operating system settings for the Azure Bare Metal Instance.
     * 
     */
    @Import(name="osProfile")
    private @Nullable Output osProfile;

    /**
     * @return Specifies the operating system settings for the Azure Bare Metal Instance.
     * 
     */
    public Optional> osProfile() {
        return Optional.ofNullable(this.osProfile);
    }

    /**
     * ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance
     * 
     */
    @Import(name="partnerNodeId")
    private @Nullable Output partnerNodeId;

    /**
     * @return ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance
     * 
     */
    public Optional> partnerNodeId() {
        return Optional.ofNullable(this.partnerNodeId);
    }

    /**
     * Resource power state
     * 
     */
    @Import(name="powerState")
    private @Nullable Output> powerState;

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

    /**
     * Resource proximity placement group
     * 
     */
    @Import(name="proximityPlacementGroup")
    private @Nullable Output proximityPlacementGroup;

    /**
     * @return Resource proximity placement group
     * 
     */
    public Optional> proximityPlacementGroup() {
        return Optional.ofNullable(this.proximityPlacementGroup);
    }

    /**
     * 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;
    }

    /**
     * Specifies the storage settings for the Azure Bare Metal Instance disks.
     * 
     */
    @Import(name="storageProfile")
    private @Nullable Output storageProfile;

    /**
     * @return Specifies the storage settings for the Azure Bare Metal Instance disks.
     * 
     */
    public Optional> storageProfile() {
        return Optional.ofNullable(this.storageProfile);
    }

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

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

    private AzureBareMetalInstanceArgs() {}

    private AzureBareMetalInstanceArgs(AzureBareMetalInstanceArgs $) {
        this.azureBareMetalInstanceId = $.azureBareMetalInstanceId;
        this.azureBareMetalInstanceName = $.azureBareMetalInstanceName;
        this.hardwareProfile = $.hardwareProfile;
        this.hwRevision = $.hwRevision;
        this.location = $.location;
        this.networkProfile = $.networkProfile;
        this.osProfile = $.osProfile;
        this.partnerNodeId = $.partnerNodeId;
        this.powerState = $.powerState;
        this.proximityPlacementGroup = $.proximityPlacementGroup;
        this.resourceGroupName = $.resourceGroupName;
        this.storageProfile = $.storageProfile;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private AzureBareMetalInstanceArgs $;

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

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

        /**
         * @param azureBareMetalInstanceId Specifies the Azure Bare Metal Instance unique ID.
         * 
         * @return builder
         * 
         */
        public Builder azureBareMetalInstanceId(@Nullable Output azureBareMetalInstanceId) {
            $.azureBareMetalInstanceId = azureBareMetalInstanceId;
            return this;
        }

        /**
         * @param azureBareMetalInstanceId Specifies the Azure Bare Metal Instance unique ID.
         * 
         * @return builder
         * 
         */
        public Builder azureBareMetalInstanceId(String azureBareMetalInstanceId) {
            return azureBareMetalInstanceId(Output.of(azureBareMetalInstanceId));
        }

        /**
         * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
         * 
         * @return builder
         * 
         */
        public Builder azureBareMetalInstanceName(@Nullable Output azureBareMetalInstanceName) {
            $.azureBareMetalInstanceName = azureBareMetalInstanceName;
            return this;
        }

        /**
         * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
         * 
         * @return builder
         * 
         */
        public Builder azureBareMetalInstanceName(String azureBareMetalInstanceName) {
            return azureBareMetalInstanceName(Output.of(azureBareMetalInstanceName));
        }

        /**
         * @param hardwareProfile Specifies the hardware settings for the Azure Bare Metal Instance.
         * 
         * @return builder
         * 
         */
        public Builder hardwareProfile(@Nullable Output hardwareProfile) {
            $.hardwareProfile = hardwareProfile;
            return this;
        }

        /**
         * @param hardwareProfile Specifies the hardware settings for the Azure Bare Metal Instance.
         * 
         * @return builder
         * 
         */
        public Builder hardwareProfile(HardwareProfileArgs hardwareProfile) {
            return hardwareProfile(Output.of(hardwareProfile));
        }

        /**
         * @param hwRevision Hardware revision of an Azure Bare Metal Instance
         * 
         * @return builder
         * 
         */
        public Builder hwRevision(@Nullable Output hwRevision) {
            $.hwRevision = hwRevision;
            return this;
        }

        /**
         * @param hwRevision Hardware revision of an Azure Bare Metal Instance
         * 
         * @return builder
         * 
         */
        public Builder hwRevision(String hwRevision) {
            return hwRevision(Output.of(hwRevision));
        }

        /**
         * @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 networkProfile Specifies the network settings for the Azure Bare Metal Instance.
         * 
         * @return builder
         * 
         */
        public Builder networkProfile(@Nullable Output networkProfile) {
            $.networkProfile = networkProfile;
            return this;
        }

        /**
         * @param networkProfile Specifies the network settings for the Azure Bare Metal Instance.
         * 
         * @return builder
         * 
         */
        public Builder networkProfile(NetworkProfileArgs networkProfile) {
            return networkProfile(Output.of(networkProfile));
        }

        /**
         * @param osProfile Specifies the operating system settings for the Azure Bare Metal Instance.
         * 
         * @return builder
         * 
         */
        public Builder osProfile(@Nullable Output osProfile) {
            $.osProfile = osProfile;
            return this;
        }

        /**
         * @param osProfile Specifies the operating system settings for the Azure Bare Metal Instance.
         * 
         * @return builder
         * 
         */
        public Builder osProfile(OSProfileArgs osProfile) {
            return osProfile(Output.of(osProfile));
        }

        /**
         * @param partnerNodeId ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance
         * 
         * @return builder
         * 
         */
        public Builder partnerNodeId(@Nullable Output partnerNodeId) {
            $.partnerNodeId = partnerNodeId;
            return this;
        }

        /**
         * @param partnerNodeId ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance
         * 
         * @return builder
         * 
         */
        public Builder partnerNodeId(String partnerNodeId) {
            return partnerNodeId(Output.of(partnerNodeId));
        }

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

        /**
         * @param powerState Resource power state
         * 
         * @return builder
         * 
         */
        public Builder powerState(Either powerState) {
            return powerState(Output.of(powerState));
        }

        /**
         * @param powerState Resource power state
         * 
         * @return builder
         * 
         */
        public Builder powerState(String powerState) {
            return powerState(Either.ofLeft(powerState));
        }

        /**
         * @param powerState Resource power state
         * 
         * @return builder
         * 
         */
        public Builder powerState(AzureBareMetalInstancePowerStateEnum powerState) {
            return powerState(Either.ofRight(powerState));
        }

        /**
         * @param proximityPlacementGroup Resource proximity placement group
         * 
         * @return builder
         * 
         */
        public Builder proximityPlacementGroup(@Nullable Output proximityPlacementGroup) {
            $.proximityPlacementGroup = proximityPlacementGroup;
            return this;
        }

        /**
         * @param proximityPlacementGroup Resource proximity placement group
         * 
         * @return builder
         * 
         */
        public Builder proximityPlacementGroup(String proximityPlacementGroup) {
            return proximityPlacementGroup(Output.of(proximityPlacementGroup));
        }

        /**
         * @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 storageProfile Specifies the storage settings for the Azure Bare Metal Instance disks.
         * 
         * @return builder
         * 
         */
        public Builder storageProfile(@Nullable Output storageProfile) {
            $.storageProfile = storageProfile;
            return this;
        }

        /**
         * @param storageProfile Specifies the storage settings for the Azure Bare Metal Instance disks.
         * 
         * @return builder
         * 
         */
        public Builder storageProfile(StorageProfileArgs storageProfile) {
            return storageProfile(Output.of(storageProfile));
        }

        /**
         * @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 AzureBareMetalInstanceArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AzureBareMetalInstanceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy