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

com.pulumi.azure.maintenance.AssignmentVirtualMachineArgs 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.maintenance;

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


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

    public static final AssignmentVirtualMachineArgs Empty = new AssignmentVirtualMachineArgs();

    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="maintenanceConfigurationId", required=true)
    private Output maintenanceConfigurationId;

    /**
     * @return Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
     * 
     */
    public Output maintenanceConfigurationId() {
        return this.maintenanceConfigurationId;
    }

    /**
     * Specifies the Virtual Machine ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="virtualMachineId", required=true)
    private Output virtualMachineId;

    /**
     * @return Specifies the Virtual Machine ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
     * 
     */
    public Output virtualMachineId() {
        return this.virtualMachineId;
    }

    private AssignmentVirtualMachineArgs() {}

    private AssignmentVirtualMachineArgs(AssignmentVirtualMachineArgs $) {
        this.location = $.location;
        this.maintenanceConfigurationId = $.maintenanceConfigurationId;
        this.virtualMachineId = $.virtualMachineId;
    }

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

    public static final class Builder {
        private AssignmentVirtualMachineArgs $;

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

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

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param maintenanceConfigurationId Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceConfigurationId(Output maintenanceConfigurationId) {
            $.maintenanceConfigurationId = maintenanceConfigurationId;
            return this;
        }

        /**
         * @param maintenanceConfigurationId Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceConfigurationId(String maintenanceConfigurationId) {
            return maintenanceConfigurationId(Output.of(maintenanceConfigurationId));
        }

        /**
         * @param virtualMachineId Specifies the Virtual Machine ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineId(Output virtualMachineId) {
            $.virtualMachineId = virtualMachineId;
            return this;
        }

        /**
         * @param virtualMachineId Specifies the Virtual Machine ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineId(String virtualMachineId) {
            return virtualMachineId(Output.of(virtualMachineId));
        }

        public AssignmentVirtualMachineArgs build() {
            if ($.maintenanceConfigurationId == null) {
                throw new MissingRequiredPropertyException("AssignmentVirtualMachineArgs", "maintenanceConfigurationId");
            }
            if ($.virtualMachineId == null) {
                throw new MissingRequiredPropertyException("AssignmentVirtualMachineArgs", "virtualMachineId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy