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

com.pulumi.azurenative.azurestackhci.GalleryImageArgs 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.azurestackhci;

import com.pulumi.azurenative.azurestackhci.enums.CloudInitDataSource;
import com.pulumi.azurenative.azurestackhci.enums.HyperVGeneration;
import com.pulumi.azurenative.azurestackhci.enums.OperatingSystemTypes;
import com.pulumi.azurenative.azurestackhci.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.azurestackhci.inputs.GalleryImageIdentifierArgs;
import com.pulumi.azurenative.azurestackhci.inputs.GalleryImageVersionArgs;
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 GalleryImageArgs extends com.pulumi.resources.ResourceArgs {

    public static final GalleryImageArgs Empty = new GalleryImageArgs();

    /**
     * Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
     * 
     */
    @Import(name="cloudInitDataSource")
    private @Nullable Output> cloudInitDataSource;

    /**
     * @return Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
     * 
     */
    public Optional>> cloudInitDataSource() {
        return Optional.ofNullable(this.cloudInitDataSource);
    }

    /**
     * Container Name for storage container
     * 
     */
    @Import(name="containerName")
    private @Nullable Output containerName;

    /**
     * @return Container Name for storage container
     * 
     */
    public Optional> containerName() {
        return Optional.ofNullable(this.containerName);
    }

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

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

    /**
     * Name of the gallery image
     * 
     */
    @Import(name="galleryImageName")
    private @Nullable Output galleryImageName;

    /**
     * @return Name of the gallery image
     * 
     */
    public Optional> galleryImageName() {
        return Optional.ofNullable(this.galleryImageName);
    }

    /**
     * The hypervisor generation of the Virtual Machine [V1, V2]
     * 
     */
    @Import(name="hyperVGeneration")
    private @Nullable Output> hyperVGeneration;

    /**
     * @return The hypervisor generation of the Virtual Machine [V1, V2]
     * 
     */
    public Optional>> hyperVGeneration() {
        return Optional.ofNullable(this.hyperVGeneration);
    }

    /**
     * This is the gallery image definition identifier.
     * 
     */
    @Import(name="identifier")
    private @Nullable Output identifier;

    /**
     * @return This is the gallery image definition identifier.
     * 
     */
    public Optional> identifier() {
        return Optional.ofNullable(this.identifier);
    }

    /**
     * location of the image the gallery image should be created from
     * 
     */
    @Import(name="imagePath")
    private @Nullable Output imagePath;

    /**
     * @return location of the image the gallery image should be created from
     * 
     */
    public Optional> imagePath() {
        return Optional.ofNullable(this.imagePath);
    }

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

    /**
     * Operating system type that the gallery image uses [Windows, Linux]
     * 
     */
    @Import(name="osType")
    private @Nullable Output osType;

    /**
     * @return Operating system type that the gallery image uses [Windows, Linux]
     * 
     */
    public Optional> osType() {
        return Optional.ofNullable(this.osType);
    }

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

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

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

    /**
     * Specifies information about the gallery image version that you want to create or update.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Specifies information about the gallery image version that you want to create or update.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private GalleryImageArgs() {}

    private GalleryImageArgs(GalleryImageArgs $) {
        this.cloudInitDataSource = $.cloudInitDataSource;
        this.containerName = $.containerName;
        this.extendedLocation = $.extendedLocation;
        this.galleryImageName = $.galleryImageName;
        this.hyperVGeneration = $.hyperVGeneration;
        this.identifier = $.identifier;
        this.imagePath = $.imagePath;
        this.location = $.location;
        this.osType = $.osType;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.version = $.version;
    }

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

    public static final class Builder {
        private GalleryImageArgs $;

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

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

        /**
         * @param cloudInitDataSource Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
         * 
         * @return builder
         * 
         */
        public Builder cloudInitDataSource(@Nullable Output> cloudInitDataSource) {
            $.cloudInitDataSource = cloudInitDataSource;
            return this;
        }

        /**
         * @param cloudInitDataSource Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
         * 
         * @return builder
         * 
         */
        public Builder cloudInitDataSource(Either cloudInitDataSource) {
            return cloudInitDataSource(Output.of(cloudInitDataSource));
        }

        /**
         * @param cloudInitDataSource Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
         * 
         * @return builder
         * 
         */
        public Builder cloudInitDataSource(String cloudInitDataSource) {
            return cloudInitDataSource(Either.ofLeft(cloudInitDataSource));
        }

        /**
         * @param cloudInitDataSource Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
         * 
         * @return builder
         * 
         */
        public Builder cloudInitDataSource(CloudInitDataSource cloudInitDataSource) {
            return cloudInitDataSource(Either.ofRight(cloudInitDataSource));
        }

        /**
         * @param containerName Container Name for storage container
         * 
         * @return builder
         * 
         */
        public Builder containerName(@Nullable Output containerName) {
            $.containerName = containerName;
            return this;
        }

        /**
         * @param containerName Container Name for storage container
         * 
         * @return builder
         * 
         */
        public Builder containerName(String containerName) {
            return containerName(Output.of(containerName));
        }

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

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

        /**
         * @param galleryImageName Name of the gallery image
         * 
         * @return builder
         * 
         */
        public Builder galleryImageName(@Nullable Output galleryImageName) {
            $.galleryImageName = galleryImageName;
            return this;
        }

        /**
         * @param galleryImageName Name of the gallery image
         * 
         * @return builder
         * 
         */
        public Builder galleryImageName(String galleryImageName) {
            return galleryImageName(Output.of(galleryImageName));
        }

        /**
         * @param hyperVGeneration The hypervisor generation of the Virtual Machine [V1, V2]
         * 
         * @return builder
         * 
         */
        public Builder hyperVGeneration(@Nullable Output> hyperVGeneration) {
            $.hyperVGeneration = hyperVGeneration;
            return this;
        }

        /**
         * @param hyperVGeneration The hypervisor generation of the Virtual Machine [V1, V2]
         * 
         * @return builder
         * 
         */
        public Builder hyperVGeneration(Either hyperVGeneration) {
            return hyperVGeneration(Output.of(hyperVGeneration));
        }

        /**
         * @param hyperVGeneration The hypervisor generation of the Virtual Machine [V1, V2]
         * 
         * @return builder
         * 
         */
        public Builder hyperVGeneration(String hyperVGeneration) {
            return hyperVGeneration(Either.ofLeft(hyperVGeneration));
        }

        /**
         * @param hyperVGeneration The hypervisor generation of the Virtual Machine [V1, V2]
         * 
         * @return builder
         * 
         */
        public Builder hyperVGeneration(HyperVGeneration hyperVGeneration) {
            return hyperVGeneration(Either.ofRight(hyperVGeneration));
        }

        /**
         * @param identifier This is the gallery image definition identifier.
         * 
         * @return builder
         * 
         */
        public Builder identifier(@Nullable Output identifier) {
            $.identifier = identifier;
            return this;
        }

        /**
         * @param identifier This is the gallery image definition identifier.
         * 
         * @return builder
         * 
         */
        public Builder identifier(GalleryImageIdentifierArgs identifier) {
            return identifier(Output.of(identifier));
        }

        /**
         * @param imagePath location of the image the gallery image should be created from
         * 
         * @return builder
         * 
         */
        public Builder imagePath(@Nullable Output imagePath) {
            $.imagePath = imagePath;
            return this;
        }

        /**
         * @param imagePath location of the image the gallery image should be created from
         * 
         * @return builder
         * 
         */
        public Builder imagePath(String imagePath) {
            return imagePath(Output.of(imagePath));
        }

        /**
         * @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 osType Operating system type that the gallery image uses [Windows, Linux]
         * 
         * @return builder
         * 
         */
        public Builder osType(@Nullable Output osType) {
            $.osType = osType;
            return this;
        }

        /**
         * @param osType Operating system type that the gallery image uses [Windows, Linux]
         * 
         * @return builder
         * 
         */
        public Builder osType(OperatingSystemTypes osType) {
            return osType(Output.of(osType));
        }

        /**
         * @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 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 version Specifies information about the gallery image version that you want to create or update.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Specifies information about the gallery image version that you want to create or update.
         * 
         * @return builder
         * 
         */
        public Builder version(GalleryImageVersionArgs version) {
            return version(Output.of(version));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy