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

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

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

import com.pulumi.azurenative.compute.enums.StorageAccountType;
import com.pulumi.azurenative.compute.inputs.EncryptionImagesArgs;
import com.pulumi.core.Either;
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;


/**
 * Describes the target region information.
 * 
 */
public final class TargetRegionArgs extends com.pulumi.resources.ResourceArgs {

    public static final TargetRegionArgs Empty = new TargetRegionArgs();

    /**
     * Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * Contains the flag setting to hide an image when users specify version='latest'
     * 
     */
    @Import(name="excludeFromLatest")
    private @Nullable Output excludeFromLatest;

    /**
     * @return Contains the flag setting to hide an image when users specify version='latest'
     * 
     */
    public Optional> excludeFromLatest() {
        return Optional.ofNullable(this.excludeFromLatest);
    }

    /**
     * The name of the region.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the region.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The number of replicas of the Image Version to be created per region. This property is updatable.
     * 
     */
    @Import(name="regionalReplicaCount")
    private @Nullable Output regionalReplicaCount;

    /**
     * @return The number of replicas of the Image Version to be created per region. This property is updatable.
     * 
     */
    public Optional> regionalReplicaCount() {
        return Optional.ofNullable(this.regionalReplicaCount);
    }

    /**
     * Specifies the storage account type to be used to store the image. This property is not updatable.
     * 
     */
    @Import(name="storageAccountType")
    private @Nullable Output> storageAccountType;

    /**
     * @return Specifies the storage account type to be used to store the image. This property is not updatable.
     * 
     */
    public Optional>> storageAccountType() {
        return Optional.ofNullable(this.storageAccountType);
    }

    private TargetRegionArgs() {}

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

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

    public static final class Builder {
        private TargetRegionArgs $;

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

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

        /**
         * @param encryption Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
         * 
         * @return builder
         * 
         */
        public Builder encryption(EncryptionImagesArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param excludeFromLatest Contains the flag setting to hide an image when users specify version='latest'
         * 
         * @return builder
         * 
         */
        public Builder excludeFromLatest(@Nullable Output excludeFromLatest) {
            $.excludeFromLatest = excludeFromLatest;
            return this;
        }

        /**
         * @param excludeFromLatest Contains the flag setting to hide an image when users specify version='latest'
         * 
         * @return builder
         * 
         */
        public Builder excludeFromLatest(Boolean excludeFromLatest) {
            return excludeFromLatest(Output.of(excludeFromLatest));
        }

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

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

        /**
         * @param regionalReplicaCount The number of replicas of the Image Version to be created per region. This property is updatable.
         * 
         * @return builder
         * 
         */
        public Builder regionalReplicaCount(@Nullable Output regionalReplicaCount) {
            $.regionalReplicaCount = regionalReplicaCount;
            return this;
        }

        /**
         * @param regionalReplicaCount The number of replicas of the Image Version to be created per region. This property is updatable.
         * 
         * @return builder
         * 
         */
        public Builder regionalReplicaCount(Integer regionalReplicaCount) {
            return regionalReplicaCount(Output.of(regionalReplicaCount));
        }

        /**
         * @param storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountType(@Nullable Output> storageAccountType) {
            $.storageAccountType = storageAccountType;
            return this;
        }

        /**
         * @param storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountType(Either storageAccountType) {
            return storageAccountType(Output.of(storageAccountType));
        }

        /**
         * @param storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountType(String storageAccountType) {
            return storageAccountType(Either.ofLeft(storageAccountType));
        }

        /**
         * @param storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountType(StorageAccountType storageAccountType) {
            return storageAccountType(Either.ofRight(storageAccountType));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy