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

com.pulumi.azurenative.virtualmachineimages.inputs.TargetRegionArgs 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.virtualmachineimages.inputs;

import com.pulumi.azurenative.virtualmachineimages.enums.SharedImageStorageAccountType;
import com.pulumi.core.Either;
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.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();

    /**
     * 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 in this region. Omit to use the default (1).
     * 
     */
    @Import(name="replicaCount")
    private @Nullable Output replicaCount;

    /**
     * @return The number of replicas of the Image Version to be created in this region. Omit to use the default (1).
     * 
     */
    public Optional> replicaCount() {
        return Optional.ofNullable(this.replicaCount);
    }

    /**
     * Specifies the storage account type to be used to store the image in this region. Omit to use the default (Standard_LRS).
     * 
     */
    @Import(name="storageAccountType")
    private @Nullable Output> storageAccountType;

    /**
     * @return Specifies the storage account type to be used to store the image in this region. Omit to use the default (Standard_LRS).
     * 
     */
    public Optional>> storageAccountType() {
        return Optional.ofNullable(this.storageAccountType);
    }

    private TargetRegionArgs() {}

    private TargetRegionArgs(TargetRegionArgs $) {
        this.name = $.name;
        this.replicaCount = $.replicaCount;
        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 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 replicaCount The number of replicas of the Image Version to be created in this region. Omit to use the default (1).
         * 
         * @return builder
         * 
         */
        public Builder replicaCount(@Nullable Output replicaCount) {
            $.replicaCount = replicaCount;
            return this;
        }

        /**
         * @param replicaCount The number of replicas of the Image Version to be created in this region. Omit to use the default (1).
         * 
         * @return builder
         * 
         */
        public Builder replicaCount(Integer replicaCount) {
            return replicaCount(Output.of(replicaCount));
        }

        /**
         * @param storageAccountType Specifies the storage account type to be used to store the image in this region. Omit to use the default (Standard_LRS).
         * 
         * @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 in this region. Omit to use the default (Standard_LRS).
         * 
         * @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 in this region. Omit to use the default (Standard_LRS).
         * 
         * @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 in this region. Omit to use the default (Standard_LRS).
         * 
         * @return builder
         * 
         */
        public Builder storageAccountType(SharedImageStorageAccountType storageAccountType) {
            return storageAccountType(Either.ofRight(storageAccountType));
        }

        public TargetRegionArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("TargetRegionArgs", "name");
            }
            $.replicaCount = Codegen.integerProp("replicaCount").output().arg($.replicaCount).def(1).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy