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

com.pulumi.azurenative.testbase.inputs.GalleryAppDefinitionArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.testbase.inputs;

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


/**
 * Properties of the definition of a gallery application used in Test Base package.
 * 
 */
public final class GalleryAppDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final GalleryAppDefinitionArgs Empty = new GalleryAppDefinitionArgs();

    /**
     * Whether the disclaimer of the gallery application is accepted.
     * 
     */
    @Import(name="isConsented")
    private @Nullable Output isConsented;

    /**
     * @return Whether the disclaimer of the gallery application is accepted.
     * 
     */
    public Optional> isConsented() {
        return Optional.ofNullable(this.isConsented);
    }

    /**
     * The SKU id of the gallery application.
     * 
     */
    @Import(name="skuId", required=true)
    private Output skuId;

    /**
     * @return The SKU id of the gallery application.
     * 
     */
    public Output skuId() {
        return this.skuId;
    }

    private GalleryAppDefinitionArgs() {}

    private GalleryAppDefinitionArgs(GalleryAppDefinitionArgs $) {
        this.isConsented = $.isConsented;
        this.skuId = $.skuId;
    }

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

    public static final class Builder {
        private GalleryAppDefinitionArgs $;

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

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

        /**
         * @param isConsented Whether the disclaimer of the gallery application is accepted.
         * 
         * @return builder
         * 
         */
        public Builder isConsented(@Nullable Output isConsented) {
            $.isConsented = isConsented;
            return this;
        }

        /**
         * @param isConsented Whether the disclaimer of the gallery application is accepted.
         * 
         * @return builder
         * 
         */
        public Builder isConsented(Boolean isConsented) {
            return isConsented(Output.of(isConsented));
        }

        /**
         * @param skuId The SKU id of the gallery application.
         * 
         * @return builder
         * 
         */
        public Builder skuId(Output skuId) {
            $.skuId = skuId;
            return this;
        }

        /**
         * @param skuId The SKU id of the gallery application.
         * 
         * @return builder
         * 
         */
        public Builder skuId(String skuId) {
            return skuId(Output.of(skuId));
        }

        public GalleryAppDefinitionArgs build() {
            $.isConsented = Codegen.booleanProp("isConsented").output().arg($.isConsented).def(false).getNullable();
            if ($.skuId == null) {
                throw new MissingRequiredPropertyException("GalleryAppDefinitionArgs", "skuId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy