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

com.pulumi.azure.mysql.inputs.FlexibleServerHighAvailabilityArgs Maven / Gradle / Ivy

// *** 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.mysql.inputs;

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


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

    public static final FlexibleServerHighAvailabilityArgs Empty = new FlexibleServerHighAvailabilityArgs();

    /**
     * The high availability mode for the MySQL Flexible Server. Possibles values are `SameZone` and `ZoneRedundant`.
     * 
     * > **NOTE:** `storage[0].auto_grow_enabled` must be enabled when `high_availability` is enabled. To change the `high_availability` for a MySQL Flexible Server created with `high_availability` disabled during creation, the resource has to be recreated.
     * 
     */
    @Import(name="mode", required=true)
    private Output mode;

    /**
     * @return The high availability mode for the MySQL Flexible Server. Possibles values are `SameZone` and `ZoneRedundant`.
     * 
     * > **NOTE:** `storage[0].auto_grow_enabled` must be enabled when `high_availability` is enabled. To change the `high_availability` for a MySQL Flexible Server created with `high_availability` disabled during creation, the resource has to be recreated.
     * 
     */
    public Output mode() {
        return this.mode;
    }

    @Import(name="standbyAvailabilityZone")
    private @Nullable Output standbyAvailabilityZone;

    public Optional> standbyAvailabilityZone() {
        return Optional.ofNullable(this.standbyAvailabilityZone);
    }

    private FlexibleServerHighAvailabilityArgs() {}

    private FlexibleServerHighAvailabilityArgs(FlexibleServerHighAvailabilityArgs $) {
        this.mode = $.mode;
        this.standbyAvailabilityZone = $.standbyAvailabilityZone;
    }

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

    public static final class Builder {
        private FlexibleServerHighAvailabilityArgs $;

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

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

        /**
         * @param mode The high availability mode for the MySQL Flexible Server. Possibles values are `SameZone` and `ZoneRedundant`.
         * 
         * > **NOTE:** `storage[0].auto_grow_enabled` must be enabled when `high_availability` is enabled. To change the `high_availability` for a MySQL Flexible Server created with `high_availability` disabled during creation, the resource has to be recreated.
         * 
         * @return builder
         * 
         */
        public Builder mode(Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode The high availability mode for the MySQL Flexible Server. Possibles values are `SameZone` and `ZoneRedundant`.
         * 
         * > **NOTE:** `storage[0].auto_grow_enabled` must be enabled when `high_availability` is enabled. To change the `high_availability` for a MySQL Flexible Server created with `high_availability` disabled during creation, the resource has to be recreated.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        public Builder standbyAvailabilityZone(@Nullable Output standbyAvailabilityZone) {
            $.standbyAvailabilityZone = standbyAvailabilityZone;
            return this;
        }

        public Builder standbyAvailabilityZone(String standbyAvailabilityZone) {
            return standbyAvailabilityZone(Output.of(standbyAvailabilityZone));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy