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

com.pulumi.azurenative.virtualmachineimages.outputs.TargetRegionResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class TargetRegionResponse {
    /**
     * @return The name of the region.
     * 
     */
    private String name;
    /**
     * @return The number of replicas of the Image Version to be created in this region. Omit to use the default (1).
     * 
     */
    private @Nullable Integer replicaCount;
    /**
     * @return Specifies the storage account type to be used to store the image in this region. Omit to use the default (Standard_LRS).
     * 
     */
    private @Nullable String storageAccountType;

    private TargetRegionResponse() {}
    /**
     * @return The name of the region.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @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);
    }
    /**
     * @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);
    }

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

    public static Builder builder(TargetRegionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private @Nullable Integer replicaCount;
        private @Nullable String storageAccountType;
        public Builder() {}
        public Builder(TargetRegionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.replicaCount = defaults.replicaCount;
    	      this.storageAccountType = defaults.storageAccountType;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("TargetRegionResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder replicaCount(@Nullable Integer replicaCount) {

            this.replicaCount = replicaCount;
            return this;
        }
        @CustomType.Setter
        public Builder storageAccountType(@Nullable String storageAccountType) {

            this.storageAccountType = storageAccountType;
            return this;
        }
        public TargetRegionResponse build() {
            final var _resultValue = new TargetRegionResponse();
            _resultValue.name = name;
            _resultValue.replicaCount = replicaCount;
            _resultValue.storageAccountType = storageAccountType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy