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

com.pulumi.azurenative.compute.inputs.GetGalleryArgs Maven / Gradle / Ivy

The 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.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 GetGalleryArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetGalleryArgs Empty = new GetGalleryArgs();

    /**
     * The expand query option to apply on the operation.
     * 
     */
    @Import(name="expand")
    private @Nullable Output expand;

    /**
     * @return The expand query option to apply on the operation.
     * 
     */
    public Optional> expand() {
        return Optional.ofNullable(this.expand);
    }

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

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

    /**
     * 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 select expression to apply on the operation.
     * 
     */
    @Import(name="select")
    private @Nullable Output select;

    /**
     * @return The select expression to apply on the operation.
     * 
     */
    public Optional> select() {
        return Optional.ofNullable(this.select);
    }

    private GetGalleryArgs() {}

    private GetGalleryArgs(GetGalleryArgs $) {
        this.expand = $.expand;
        this.galleryName = $.galleryName;
        this.resourceGroupName = $.resourceGroupName;
        this.select = $.select;
    }

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

    public static final class Builder {
        private GetGalleryArgs $;

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

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

        /**
         * @param expand The expand query option to apply on the operation.
         * 
         * @return builder
         * 
         */
        public Builder expand(@Nullable Output expand) {
            $.expand = expand;
            return this;
        }

        /**
         * @param expand The expand query option to apply on the operation.
         * 
         * @return builder
         * 
         */
        public Builder expand(String expand) {
            return expand(Output.of(expand));
        }

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

        /**
         * @param galleryName The name of the Shared Image Gallery.
         * 
         * @return builder
         * 
         */
        public Builder galleryName(String galleryName) {
            return galleryName(Output.of(galleryName));
        }

        /**
         * @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 select The select expression to apply on the operation.
         * 
         * @return builder
         * 
         */
        public Builder select(@Nullable Output select) {
            $.select = select;
            return this;
        }

        /**
         * @param select The select expression to apply on the operation.
         * 
         * @return builder
         * 
         */
        public Builder select(String select) {
            return select(Output.of(select));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy