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

com.pulumi.azure.compute.inputs.GalleryApplicationVersionTargetRegionArgs 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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GalleryApplicationVersionTargetRegionArgs extends com.pulumi.resources.ResourceArgs {

    public static final GalleryApplicationVersionTargetRegionArgs Empty = new GalleryApplicationVersionTargetRegionArgs();

    /**
     * Specifies whether this Gallery Application Version should be excluded from the `latest` filter. If set to `true`, this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`.
     * 
     */
    @Import(name="excludeFromLatest")
    private @Nullable Output excludeFromLatest;

    /**
     * @return Specifies whether this Gallery Application Version should be excluded from the `latest` filter. If set to `true`, this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`.
     * 
     */
    public Optional> excludeFromLatest() {
        return Optional.ofNullable(this.excludeFromLatest);
    }

    /**
     * The Azure Region in which the Gallery Application Version exists.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The Azure Region in which the Gallery Application Version exists.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The number of replicas of the Gallery Application Version to be created per region. Possible values are between `1` and `10`.
     * 
     */
    @Import(name="regionalReplicaCount", required=true)
    private Output regionalReplicaCount;

    /**
     * @return The number of replicas of the Gallery Application Version to be created per region. Possible values are between `1` and `10`.
     * 
     */
    public Output regionalReplicaCount() {
        return this.regionalReplicaCount;
    }

    /**
     * The storage account type for the Gallery Application Version. Possible values are `Standard_LRS`, `Premium_LRS` and `Standard_ZRS`. Defaults to `Standard_LRS`.
     * 
     */
    @Import(name="storageAccountType")
    private @Nullable Output storageAccountType;

    /**
     * @return The storage account type for the Gallery Application Version. Possible values are `Standard_LRS`, `Premium_LRS` and `Standard_ZRS`. Defaults to `Standard_LRS`.
     * 
     */
    public Optional> storageAccountType() {
        return Optional.ofNullable(this.storageAccountType);
    }

    private GalleryApplicationVersionTargetRegionArgs() {}

    private GalleryApplicationVersionTargetRegionArgs(GalleryApplicationVersionTargetRegionArgs $) {
        this.excludeFromLatest = $.excludeFromLatest;
        this.name = $.name;
        this.regionalReplicaCount = $.regionalReplicaCount;
        this.storageAccountType = $.storageAccountType;
    }

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

    public static final class Builder {
        private GalleryApplicationVersionTargetRegionArgs $;

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

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

        /**
         * @param excludeFromLatest Specifies whether this Gallery Application Version should be excluded from the `latest` filter. If set to `true`, this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder excludeFromLatest(@Nullable Output excludeFromLatest) {
            $.excludeFromLatest = excludeFromLatest;
            return this;
        }

        /**
         * @param excludeFromLatest Specifies whether this Gallery Application Version should be excluded from the `latest` filter. If set to `true`, this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder excludeFromLatest(Boolean excludeFromLatest) {
            return excludeFromLatest(Output.of(excludeFromLatest));
        }

        /**
         * @param name The Azure Region in which the Gallery Application Version exists.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The Azure Region in which the Gallery Application Version exists.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param regionalReplicaCount The number of replicas of the Gallery Application Version to be created per region. Possible values are between `1` and `10`.
         * 
         * @return builder
         * 
         */
        public Builder regionalReplicaCount(Output regionalReplicaCount) {
            $.regionalReplicaCount = regionalReplicaCount;
            return this;
        }

        /**
         * @param regionalReplicaCount The number of replicas of the Gallery Application Version to be created per region. Possible values are between `1` and `10`.
         * 
         * @return builder
         * 
         */
        public Builder regionalReplicaCount(Integer regionalReplicaCount) {
            return regionalReplicaCount(Output.of(regionalReplicaCount));
        }

        /**
         * @param storageAccountType The storage account type for the Gallery Application Version. Possible values are `Standard_LRS`, `Premium_LRS` and `Standard_ZRS`. Defaults to `Standard_LRS`.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountType(@Nullable Output storageAccountType) {
            $.storageAccountType = storageAccountType;
            return this;
        }

        /**
         * @param storageAccountType The storage account type for the Gallery Application Version. Possible values are `Standard_LRS`, `Premium_LRS` and `Standard_ZRS`. Defaults to `Standard_LRS`.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountType(String storageAccountType) {
            return storageAccountType(Output.of(storageAccountType));
        }

        public GalleryApplicationVersionTargetRegionArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GalleryApplicationVersionTargetRegionArgs", "name");
            }
            if ($.regionalReplicaCount == null) {
                throw new MissingRequiredPropertyException("GalleryApplicationVersionTargetRegionArgs", "regionalReplicaCount");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy