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

com.pulumi.azure.compute.inputs.GetPlatformImageArgs 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.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 GetPlatformImageArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetPlatformImageArgs Empty = new GetPlatformImageArgs();

    /**
     * Specifies the Location to pull information about this Platform Image from.
     * 
     */
    @Import(name="location", required=true)
    private Output location;

    /**
     * @return Specifies the Location to pull information about this Platform Image from.
     * 
     */
    public Output location() {
        return this.location;
    }

    /**
     * Specifies the Offer associated with the Platform Image.
     * 
     */
    @Import(name="offer", required=true)
    private Output offer;

    /**
     * @return Specifies the Offer associated with the Platform Image.
     * 
     */
    public Output offer() {
        return this.offer;
    }

    /**
     * Specifies the Publisher associated with the Platform Image.
     * 
     */
    @Import(name="publisher", required=true)
    private Output publisher;

    /**
     * @return Specifies the Publisher associated with the Platform Image.
     * 
     */
    public Output publisher() {
        return this.publisher;
    }

    /**
     * Specifies the SKU of the Platform Image.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return Specifies the SKU of the Platform Image.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * The version of the Platform Image.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return The version of the Platform Image.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private GetPlatformImageArgs() {}

    private GetPlatformImageArgs(GetPlatformImageArgs $) {
        this.location = $.location;
        this.offer = $.offer;
        this.publisher = $.publisher;
        this.sku = $.sku;
        this.version = $.version;
    }

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

    public static final class Builder {
        private GetPlatformImageArgs $;

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

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

        /**
         * @param location Specifies the Location to pull information about this Platform Image from.
         * 
         * @return builder
         * 
         */
        public Builder location(Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the Location to pull information about this Platform Image from.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param offer Specifies the Offer associated with the Platform Image.
         * 
         * @return builder
         * 
         */
        public Builder offer(Output offer) {
            $.offer = offer;
            return this;
        }

        /**
         * @param offer Specifies the Offer associated with the Platform Image.
         * 
         * @return builder
         * 
         */
        public Builder offer(String offer) {
            return offer(Output.of(offer));
        }

        /**
         * @param publisher Specifies the Publisher associated with the Platform Image.
         * 
         * @return builder
         * 
         */
        public Builder publisher(Output publisher) {
            $.publisher = publisher;
            return this;
        }

        /**
         * @param publisher Specifies the Publisher associated with the Platform Image.
         * 
         * @return builder
         * 
         */
        public Builder publisher(String publisher) {
            return publisher(Output.of(publisher));
        }

        /**
         * @param sku Specifies the SKU of the Platform Image.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Specifies the SKU of the Platform Image.
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

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

        /**
         * @param version The version of the Platform Image.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public GetPlatformImageArgs build() {
            if ($.location == null) {
                throw new MissingRequiredPropertyException("GetPlatformImageArgs", "location");
            }
            if ($.offer == null) {
                throw new MissingRequiredPropertyException("GetPlatformImageArgs", "offer");
            }
            if ($.publisher == null) {
                throw new MissingRequiredPropertyException("GetPlatformImageArgs", "publisher");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("GetPlatformImageArgs", "sku");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy