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

com.pulumi.azurenative.documentdb.inputs.LocationArgs Maven / Gradle / Ivy

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A region in which the Azure Cosmos DB database account is deployed.
 * 
 */
public final class LocationArgs extends com.pulumi.resources.ResourceArgs {

    public static final LocationArgs Empty = new LocationArgs();

    /**
     * The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
     * 
     */
    @Import(name="failoverPriority")
    private @Nullable Output failoverPriority;

    /**
     * @return The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
     * 
     */
    public Optional> failoverPriority() {
        return Optional.ofNullable(this.failoverPriority);
    }

    /**
     * Flag to indicate whether or not this region is an AvailabilityZone region
     * 
     */
    @Import(name="isZoneRedundant")
    private @Nullable Output isZoneRedundant;

    /**
     * @return Flag to indicate whether or not this region is an AvailabilityZone region
     * 
     */
    public Optional> isZoneRedundant() {
        return Optional.ofNullable(this.isZoneRedundant);
    }

    /**
     * The name of the region.
     * 
     */
    @Import(name="locationName")
    private @Nullable Output locationName;

    /**
     * @return The name of the region.
     * 
     */
    public Optional> locationName() {
        return Optional.ofNullable(this.locationName);
    }

    private LocationArgs() {}

    private LocationArgs(LocationArgs $) {
        this.failoverPriority = $.failoverPriority;
        this.isZoneRedundant = $.isZoneRedundant;
        this.locationName = $.locationName;
    }

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

    public static final class Builder {
        private LocationArgs $;

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

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

        /**
         * @param failoverPriority The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
         * 
         * @return builder
         * 
         */
        public Builder failoverPriority(@Nullable Output failoverPriority) {
            $.failoverPriority = failoverPriority;
            return this;
        }

        /**
         * @param failoverPriority The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
         * 
         * @return builder
         * 
         */
        public Builder failoverPriority(Integer failoverPriority) {
            return failoverPriority(Output.of(failoverPriority));
        }

        /**
         * @param isZoneRedundant Flag to indicate whether or not this region is an AvailabilityZone region
         * 
         * @return builder
         * 
         */
        public Builder isZoneRedundant(@Nullable Output isZoneRedundant) {
            $.isZoneRedundant = isZoneRedundant;
            return this;
        }

        /**
         * @param isZoneRedundant Flag to indicate whether or not this region is an AvailabilityZone region
         * 
         * @return builder
         * 
         */
        public Builder isZoneRedundant(Boolean isZoneRedundant) {
            return isZoneRedundant(Output.of(isZoneRedundant));
        }

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

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

        public LocationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy