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

com.pulumi.azurenative.devtestlab.CustomImageArgs 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.devtestlab;

import com.pulumi.azurenative.devtestlab.inputs.CustomImagePropertiesCustomArgs;
import com.pulumi.azurenative.devtestlab.inputs.CustomImagePropertiesFromPlanArgs;
import com.pulumi.azurenative.devtestlab.inputs.CustomImagePropertiesFromVmArgs;
import com.pulumi.azurenative.devtestlab.inputs.DataDiskStorageTypeInfoArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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 CustomImageArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomImageArgs Empty = new CustomImageArgs();

    /**
     * The author of the custom image.
     * 
     */
    @Import(name="author")
    private @Nullable Output author;

    /**
     * @return The author of the custom image.
     * 
     */
    public Optional> author() {
        return Optional.ofNullable(this.author);
    }

    /**
     * Storage information about the plan related to this custom image
     * 
     */
    @Import(name="customImagePlan")
    private @Nullable Output customImagePlan;

    /**
     * @return Storage information about the plan related to this custom image
     * 
     */
    public Optional> customImagePlan() {
        return Optional.ofNullable(this.customImagePlan);
    }

    /**
     * Storage information about the data disks present in the custom image
     * 
     */
    @Import(name="dataDiskStorageInfo")
    private @Nullable Output> dataDiskStorageInfo;

    /**
     * @return Storage information about the data disks present in the custom image
     * 
     */
    public Optional>> dataDiskStorageInfo() {
        return Optional.ofNullable(this.dataDiskStorageInfo);
    }

    /**
     * The description of the custom image.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the custom image.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
     * 
     */
    @Import(name="isPlanAuthorized")
    private @Nullable Output isPlanAuthorized;

    /**
     * @return Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
     * 
     */
    public Optional> isPlanAuthorized() {
        return Optional.ofNullable(this.isPlanAuthorized);
    }

    /**
     * The name of the lab.
     * 
     */
    @Import(name="labName", required=true)
    private Output labName;

    /**
     * @return The name of the lab.
     * 
     */
    public Output labName() {
        return this.labName;
    }

    /**
     * The location of the resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of the resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The Managed Image Id backing the custom image.
     * 
     */
    @Import(name="managedImageId")
    private @Nullable Output managedImageId;

    /**
     * @return The Managed Image Id backing the custom image.
     * 
     */
    public Optional> managedImageId() {
        return Optional.ofNullable(this.managedImageId);
    }

    /**
     * The Managed Snapshot Id backing the custom image.
     * 
     */
    @Import(name="managedSnapshotId")
    private @Nullable Output managedSnapshotId;

    /**
     * @return The Managed Snapshot Id backing the custom image.
     * 
     */
    public Optional> managedSnapshotId() {
        return Optional.ofNullable(this.managedSnapshotId);
    }

    /**
     * The name of the custom image.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the custom image.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

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

    /**
     * The tags of the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tags of the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The VHD from which the image is to be created.
     * 
     */
    @Import(name="vhd")
    private @Nullable Output vhd;

    /**
     * @return The VHD from which the image is to be created.
     * 
     */
    public Optional> vhd() {
        return Optional.ofNullable(this.vhd);
    }

    /**
     * The virtual machine from which the image is to be created.
     * 
     */
    @Import(name="vm")
    private @Nullable Output vm;

    /**
     * @return The virtual machine from which the image is to be created.
     * 
     */
    public Optional> vm() {
        return Optional.ofNullable(this.vm);
    }

    private CustomImageArgs() {}

    private CustomImageArgs(CustomImageArgs $) {
        this.author = $.author;
        this.customImagePlan = $.customImagePlan;
        this.dataDiskStorageInfo = $.dataDiskStorageInfo;
        this.description = $.description;
        this.isPlanAuthorized = $.isPlanAuthorized;
        this.labName = $.labName;
        this.location = $.location;
        this.managedImageId = $.managedImageId;
        this.managedSnapshotId = $.managedSnapshotId;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.vhd = $.vhd;
        this.vm = $.vm;
    }

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

    public static final class Builder {
        private CustomImageArgs $;

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

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

        /**
         * @param author The author of the custom image.
         * 
         * @return builder
         * 
         */
        public Builder author(@Nullable Output author) {
            $.author = author;
            return this;
        }

        /**
         * @param author The author of the custom image.
         * 
         * @return builder
         * 
         */
        public Builder author(String author) {
            return author(Output.of(author));
        }

        /**
         * @param customImagePlan Storage information about the plan related to this custom image
         * 
         * @return builder
         * 
         */
        public Builder customImagePlan(@Nullable Output customImagePlan) {
            $.customImagePlan = customImagePlan;
            return this;
        }

        /**
         * @param customImagePlan Storage information about the plan related to this custom image
         * 
         * @return builder
         * 
         */
        public Builder customImagePlan(CustomImagePropertiesFromPlanArgs customImagePlan) {
            return customImagePlan(Output.of(customImagePlan));
        }

        /**
         * @param dataDiskStorageInfo Storage information about the data disks present in the custom image
         * 
         * @return builder
         * 
         */
        public Builder dataDiskStorageInfo(@Nullable Output> dataDiskStorageInfo) {
            $.dataDiskStorageInfo = dataDiskStorageInfo;
            return this;
        }

        /**
         * @param dataDiskStorageInfo Storage information about the data disks present in the custom image
         * 
         * @return builder
         * 
         */
        public Builder dataDiskStorageInfo(List dataDiskStorageInfo) {
            return dataDiskStorageInfo(Output.of(dataDiskStorageInfo));
        }

        /**
         * @param dataDiskStorageInfo Storage information about the data disks present in the custom image
         * 
         * @return builder
         * 
         */
        public Builder dataDiskStorageInfo(DataDiskStorageTypeInfoArgs... dataDiskStorageInfo) {
            return dataDiskStorageInfo(List.of(dataDiskStorageInfo));
        }

        /**
         * @param description The description of the custom image.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the custom image.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param isPlanAuthorized Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
         * 
         * @return builder
         * 
         */
        public Builder isPlanAuthorized(@Nullable Output isPlanAuthorized) {
            $.isPlanAuthorized = isPlanAuthorized;
            return this;
        }

        /**
         * @param isPlanAuthorized Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
         * 
         * @return builder
         * 
         */
        public Builder isPlanAuthorized(Boolean isPlanAuthorized) {
            return isPlanAuthorized(Output.of(isPlanAuthorized));
        }

        /**
         * @param labName The name of the lab.
         * 
         * @return builder
         * 
         */
        public Builder labName(Output labName) {
            $.labName = labName;
            return this;
        }

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

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

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

        /**
         * @param managedImageId The Managed Image Id backing the custom image.
         * 
         * @return builder
         * 
         */
        public Builder managedImageId(@Nullable Output managedImageId) {
            $.managedImageId = managedImageId;
            return this;
        }

        /**
         * @param managedImageId The Managed Image Id backing the custom image.
         * 
         * @return builder
         * 
         */
        public Builder managedImageId(String managedImageId) {
            return managedImageId(Output.of(managedImageId));
        }

        /**
         * @param managedSnapshotId The Managed Snapshot Id backing the custom image.
         * 
         * @return builder
         * 
         */
        public Builder managedSnapshotId(@Nullable Output managedSnapshotId) {
            $.managedSnapshotId = managedSnapshotId;
            return this;
        }

        /**
         * @param managedSnapshotId The Managed Snapshot Id backing the custom image.
         * 
         * @return builder
         * 
         */
        public Builder managedSnapshotId(String managedSnapshotId) {
            return managedSnapshotId(Output.of(managedSnapshotId));
        }

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

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

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

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

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

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

        /**
         * @param vhd The VHD from which the image is to be created.
         * 
         * @return builder
         * 
         */
        public Builder vhd(@Nullable Output vhd) {
            $.vhd = vhd;
            return this;
        }

        /**
         * @param vhd The VHD from which the image is to be created.
         * 
         * @return builder
         * 
         */
        public Builder vhd(CustomImagePropertiesCustomArgs vhd) {
            return vhd(Output.of(vhd));
        }

        /**
         * @param vm The virtual machine from which the image is to be created.
         * 
         * @return builder
         * 
         */
        public Builder vm(@Nullable Output vm) {
            $.vm = vm;
            return this;
        }

        /**
         * @param vm The virtual machine from which the image is to be created.
         * 
         * @return builder
         * 
         */
        public Builder vm(CustomImagePropertiesFromVmArgs vm) {
            return vm(Output.of(vm));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy