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

com.pulumi.azurenative.hybridcompute.MachineArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.hybridcompute;

import com.pulumi.azurenative.hybridcompute.inputs.AgentUpgradeArgs;
import com.pulumi.azurenative.hybridcompute.inputs.IdentityArgs;
import com.pulumi.azurenative.hybridcompute.inputs.LocationDataArgs;
import com.pulumi.azurenative.hybridcompute.inputs.MachineExtensionInstanceViewArgs;
import com.pulumi.azurenative.hybridcompute.inputs.OSProfileArgs;
import com.pulumi.azurenative.hybridcompute.inputs.ServiceStatusesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MachineArgs Empty = new MachineArgs();

    /**
     * The info of the machine w.r.t Agent Upgrade
     * 
     */
    @Import(name="agentUpgrade")
    private @Nullable Output agentUpgrade;

    /**
     * @return The info of the machine w.r.t Agent Upgrade
     * 
     */
    public Optional> agentUpgrade() {
        return Optional.ofNullable(this.agentUpgrade);
    }

    /**
     * Public Key that the client provides to be used during initial resource onboarding
     * 
     */
    @Import(name="clientPublicKey")
    private @Nullable Output clientPublicKey;

    /**
     * @return Public Key that the client provides to be used during initial resource onboarding
     * 
     */
    public Optional> clientPublicKey() {
        return Optional.ofNullable(this.clientPublicKey);
    }

    /**
     * Machine Extensions information (deprecated field)
     * 
     */
    @Import(name="extensions")
    private @Nullable Output> extensions;

    /**
     * @return Machine Extensions information (deprecated field)
     * 
     */
    public Optional>> extensions() {
        return Optional.ofNullable(this.extensions);
    }

    /**
     * Identity for the resource.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Identity for the resource.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

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

    /**
     * Metadata pertaining to the geographic location of the resource.
     * 
     */
    @Import(name="locationData")
    private @Nullable Output locationData;

    /**
     * @return Metadata pertaining to the geographic location of the resource.
     * 
     */
    public Optional> locationData() {
        return Optional.ofNullable(this.locationData);
    }

    /**
     * The name of the hybrid machine.
     * 
     */
    @Import(name="machineName")
    private @Nullable Output machineName;

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

    /**
     * Specifies whether any MS SQL instance is discovered on the machine.
     * 
     */
    @Import(name="mssqlDiscovered")
    private @Nullable Output mssqlDiscovered;

    /**
     * @return Specifies whether any MS SQL instance is discovered on the machine.
     * 
     */
    public Optional> mssqlDiscovered() {
        return Optional.ofNullable(this.mssqlDiscovered);
    }

    /**
     * Specifies the operating system settings for the hybrid machine.
     * 
     */
    @Import(name="osProfile")
    private @Nullable Output osProfile;

    /**
     * @return Specifies the operating system settings for the hybrid machine.
     * 
     */
    public Optional> osProfile() {
        return Optional.ofNullable(this.osProfile);
    }

    /**
     * The type of Operating System (windows/linux).
     * 
     */
    @Import(name="osType")
    private @Nullable Output osType;

    /**
     * @return The type of Operating System (windows/linux).
     * 
     */
    public Optional> osType() {
        return Optional.ofNullable(this.osType);
    }

    /**
     * The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
     * 
     */
    @Import(name="parentClusterResourceId")
    private @Nullable Output parentClusterResourceId;

    /**
     * @return The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
     * 
     */
    public Optional> parentClusterResourceId() {
        return Optional.ofNullable(this.parentClusterResourceId);
    }

    /**
     * The resource id of the private link scope this machine is assigned to, if any.
     * 
     */
    @Import(name="privateLinkScopeResourceId")
    private @Nullable Output privateLinkScopeResourceId;

    /**
     * @return The resource id of the private link scope this machine is assigned to, if any.
     * 
     */
    public Optional> privateLinkScopeResourceId() {
        return Optional.ofNullable(this.privateLinkScopeResourceId);
    }

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

    /**
     * Statuses of dependent services that are reported back to ARM.
     * 
     */
    @Import(name="serviceStatuses")
    private @Nullable Output serviceStatuses;

    /**
     * @return Statuses of dependent services that are reported back to ARM.
     * 
     */
    public Optional> serviceStatuses() {
        return Optional.ofNullable(this.serviceStatuses);
    }

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

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

    /**
     * Specifies the hybrid machine unique ID.
     * 
     */
    @Import(name="vmId")
    private @Nullable Output vmId;

    /**
     * @return Specifies the hybrid machine unique ID.
     * 
     */
    public Optional> vmId() {
        return Optional.ofNullable(this.vmId);
    }

    private MachineArgs() {}

    private MachineArgs(MachineArgs $) {
        this.agentUpgrade = $.agentUpgrade;
        this.clientPublicKey = $.clientPublicKey;
        this.extensions = $.extensions;
        this.identity = $.identity;
        this.location = $.location;
        this.locationData = $.locationData;
        this.machineName = $.machineName;
        this.mssqlDiscovered = $.mssqlDiscovered;
        this.osProfile = $.osProfile;
        this.osType = $.osType;
        this.parentClusterResourceId = $.parentClusterResourceId;
        this.privateLinkScopeResourceId = $.privateLinkScopeResourceId;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceStatuses = $.serviceStatuses;
        this.tags = $.tags;
        this.vmId = $.vmId;
    }

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

    public static final class Builder {
        private MachineArgs $;

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

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

        /**
         * @param agentUpgrade The info of the machine w.r.t Agent Upgrade
         * 
         * @return builder
         * 
         */
        public Builder agentUpgrade(@Nullable Output agentUpgrade) {
            $.agentUpgrade = agentUpgrade;
            return this;
        }

        /**
         * @param agentUpgrade The info of the machine w.r.t Agent Upgrade
         * 
         * @return builder
         * 
         */
        public Builder agentUpgrade(AgentUpgradeArgs agentUpgrade) {
            return agentUpgrade(Output.of(agentUpgrade));
        }

        /**
         * @param clientPublicKey Public Key that the client provides to be used during initial resource onboarding
         * 
         * @return builder
         * 
         */
        public Builder clientPublicKey(@Nullable Output clientPublicKey) {
            $.clientPublicKey = clientPublicKey;
            return this;
        }

        /**
         * @param clientPublicKey Public Key that the client provides to be used during initial resource onboarding
         * 
         * @return builder
         * 
         */
        public Builder clientPublicKey(String clientPublicKey) {
            return clientPublicKey(Output.of(clientPublicKey));
        }

        /**
         * @param extensions Machine Extensions information (deprecated field)
         * 
         * @return builder
         * 
         */
        public Builder extensions(@Nullable Output> extensions) {
            $.extensions = extensions;
            return this;
        }

        /**
         * @param extensions Machine Extensions information (deprecated field)
         * 
         * @return builder
         * 
         */
        public Builder extensions(List extensions) {
            return extensions(Output.of(extensions));
        }

        /**
         * @param extensions Machine Extensions information (deprecated field)
         * 
         * @return builder
         * 
         */
        public Builder extensions(MachineExtensionInstanceViewArgs... extensions) {
            return extensions(List.of(extensions));
        }

        /**
         * @param identity Identity for the resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Identity for the resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(IdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @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 locationData Metadata pertaining to the geographic location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder locationData(@Nullable Output locationData) {
            $.locationData = locationData;
            return this;
        }

        /**
         * @param locationData Metadata pertaining to the geographic location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder locationData(LocationDataArgs locationData) {
            return locationData(Output.of(locationData));
        }

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

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

        /**
         * @param mssqlDiscovered Specifies whether any MS SQL instance is discovered on the machine.
         * 
         * @return builder
         * 
         */
        public Builder mssqlDiscovered(@Nullable Output mssqlDiscovered) {
            $.mssqlDiscovered = mssqlDiscovered;
            return this;
        }

        /**
         * @param mssqlDiscovered Specifies whether any MS SQL instance is discovered on the machine.
         * 
         * @return builder
         * 
         */
        public Builder mssqlDiscovered(String mssqlDiscovered) {
            return mssqlDiscovered(Output.of(mssqlDiscovered));
        }

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

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

        /**
         * @param osType The type of Operating System (windows/linux).
         * 
         * @return builder
         * 
         */
        public Builder osType(@Nullable Output osType) {
            $.osType = osType;
            return this;
        }

        /**
         * @param osType The type of Operating System (windows/linux).
         * 
         * @return builder
         * 
         */
        public Builder osType(String osType) {
            return osType(Output.of(osType));
        }

        /**
         * @param parentClusterResourceId The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
         * 
         * @return builder
         * 
         */
        public Builder parentClusterResourceId(@Nullable Output parentClusterResourceId) {
            $.parentClusterResourceId = parentClusterResourceId;
            return this;
        }

        /**
         * @param parentClusterResourceId The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
         * 
         * @return builder
         * 
         */
        public Builder parentClusterResourceId(String parentClusterResourceId) {
            return parentClusterResourceId(Output.of(parentClusterResourceId));
        }

        /**
         * @param privateLinkScopeResourceId The resource id of the private link scope this machine is assigned to, if any.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkScopeResourceId(@Nullable Output privateLinkScopeResourceId) {
            $.privateLinkScopeResourceId = privateLinkScopeResourceId;
            return this;
        }

        /**
         * @param privateLinkScopeResourceId The resource id of the private link scope this machine is assigned to, if any.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkScopeResourceId(String privateLinkScopeResourceId) {
            return privateLinkScopeResourceId(Output.of(privateLinkScopeResourceId));
        }

        /**
         * @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 serviceStatuses Statuses of dependent services that are reported back to ARM.
         * 
         * @return builder
         * 
         */
        public Builder serviceStatuses(@Nullable Output serviceStatuses) {
            $.serviceStatuses = serviceStatuses;
            return this;
        }

        /**
         * @param serviceStatuses Statuses of dependent services that are reported back to ARM.
         * 
         * @return builder
         * 
         */
        public Builder serviceStatuses(ServiceStatusesArgs serviceStatuses) {
            return serviceStatuses(Output.of(serviceStatuses));
        }

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

        /**
         * @param vmId Specifies the hybrid machine unique ID.
         * 
         * @return builder
         * 
         */
        public Builder vmId(@Nullable Output vmId) {
            $.vmId = vmId;
            return this;
        }

        /**
         * @param vmId Specifies the hybrid machine unique ID.
         * 
         * @return builder
         * 
         */
        public Builder vmId(String vmId) {
            return vmId(Output.of(vmId));
        }

        public MachineArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MachineArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy