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

com.pulumi.azure.compute.inputs.GetSharedImageVersionPlainArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.compute.inputs;

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


public final class GetSharedImageVersionPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSharedImageVersionPlainArgs Empty = new GetSharedImageVersionPlainArgs();

    /**
     * The name of the Shared Image Gallery in which the Shared Image exists.
     * 
     */
    @Import(name="galleryName", required=true)
    private String galleryName;

    /**
     * @return The name of the Shared Image Gallery in which the Shared Image exists.
     * 
     */
    public String galleryName() {
        return this.galleryName;
    }

    /**
     * The name of the Shared Image in which this Version exists.
     * 
     */
    @Import(name="imageName", required=true)
    private String imageName;

    /**
     * @return The name of the Shared Image in which this Version exists.
     * 
     */
    public String imageName() {
        return this.imageName;
    }

    /**
     * The name of the Image Version.
     * 
     * > **Note:** You may specify `latest` to obtain the latest version or `recent` to obtain the most recently updated version.
     * 
     * > **Note:** In 3.0, `latest` may return an image version with `exclude_from_latest` set to `true`. Starting from 4.0 onwards `latest` will not return image versions with `exlude_from_latest` set to `true`.
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return The name of the Image Version.
     * 
     * > **Note:** You may specify `latest` to obtain the latest version or `recent` to obtain the most recently updated version.
     * 
     * > **Note:** In 3.0, `latest` may return an image version with `exclude_from_latest` set to `true`. Starting from 4.0 onwards `latest` will not return image versions with `exlude_from_latest` set to `true`.
     * 
     */
    public String name() {
        return this.name;
    }

    /**
     * The name of the Resource Group in which the Shared Image Gallery exists.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private String resourceGroupName;

    /**
     * @return The name of the Resource Group in which the Shared Image Gallery exists.
     * 
     */
    public String resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Sort available versions taking SemVer versioning scheme into account. Defaults to `false`.
     * 
     */
    @Import(name="sortVersionsBySemver")
    private @Nullable Boolean sortVersionsBySemver;

    /**
     * @return Sort available versions taking SemVer versioning scheme into account. Defaults to `false`.
     * 
     */
    public Optional sortVersionsBySemver() {
        return Optional.ofNullable(this.sortVersionsBySemver);
    }

    /**
     * A mapping of tags assigned to the Shared Image.
     * 
     */
    @Import(name="tags")
    private @Nullable Map tags;

    /**
     * @return A mapping of tags assigned to the Shared Image.
     * 
     */
    public Optional> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetSharedImageVersionPlainArgs() {}

    private GetSharedImageVersionPlainArgs(GetSharedImageVersionPlainArgs $) {
        this.galleryName = $.galleryName;
        this.imageName = $.imageName;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.sortVersionsBySemver = $.sortVersionsBySemver;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetSharedImageVersionPlainArgs $;

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

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

        /**
         * @param galleryName The name of the Shared Image Gallery in which the Shared Image exists.
         * 
         * @return builder
         * 
         */
        public Builder galleryName(String galleryName) {
            $.galleryName = galleryName;
            return this;
        }

        /**
         * @param imageName The name of the Shared Image in which this Version exists.
         * 
         * @return builder
         * 
         */
        public Builder imageName(String imageName) {
            $.imageName = imageName;
            return this;
        }

        /**
         * @param name The name of the Image Version.
         * 
         * > **Note:** You may specify `latest` to obtain the latest version or `recent` to obtain the most recently updated version.
         * 
         * > **Note:** In 3.0, `latest` may return an image version with `exclude_from_latest` set to `true`. Starting from 4.0 onwards `latest` will not return image versions with `exlude_from_latest` set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            $.name = name;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the Shared Image Gallery exists.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param sortVersionsBySemver Sort available versions taking SemVer versioning scheme into account. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder sortVersionsBySemver(@Nullable Boolean sortVersionsBySemver) {
            $.sortVersionsBySemver = sortVersionsBySemver;
            return this;
        }

        /**
         * @param tags A mapping of tags assigned to the Shared Image.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Map tags) {
            $.tags = tags;
            return this;
        }

        public GetSharedImageVersionPlainArgs build() {
            if ($.galleryName == null) {
                throw new MissingRequiredPropertyException("GetSharedImageVersionPlainArgs", "galleryName");
            }
            if ($.imageName == null) {
                throw new MissingRequiredPropertyException("GetSharedImageVersionPlainArgs", "imageName");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetSharedImageVersionPlainArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetSharedImageVersionPlainArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy