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

com.pulumi.azurenative.dbformysql.inputs.HighAvailabilityArgs 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.dbformysql.inputs;

import com.pulumi.azurenative.dbformysql.enums.HighAvailabilityMode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Network related properties of a server
 * 
 */
public final class HighAvailabilityArgs extends com.pulumi.resources.ResourceArgs {

    public static final HighAvailabilityArgs Empty = new HighAvailabilityArgs();

    /**
     * High availability mode for a server.
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return High availability mode for a server.
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * Availability zone of the standby server.
     * 
     */
    @Import(name="standbyAvailabilityZone")
    private @Nullable Output standbyAvailabilityZone;

    /**
     * @return Availability zone of the standby server.
     * 
     */
    public Optional> standbyAvailabilityZone() {
        return Optional.ofNullable(this.standbyAvailabilityZone);
    }

    private HighAvailabilityArgs() {}

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

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

    public static final class Builder {
        private HighAvailabilityArgs $;

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

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

        /**
         * @param mode High availability mode for a server.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode High availability mode for a server.
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode High availability mode for a server.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode High availability mode for a server.
         * 
         * @return builder
         * 
         */
        public Builder mode(HighAvailabilityMode mode) {
            return mode(Either.ofRight(mode));
        }

        /**
         * @param standbyAvailabilityZone Availability zone of the standby server.
         * 
         * @return builder
         * 
         */
        public Builder standbyAvailabilityZone(@Nullable Output standbyAvailabilityZone) {
            $.standbyAvailabilityZone = standbyAvailabilityZone;
            return this;
        }

        /**
         * @param standbyAvailabilityZone Availability zone of the standby server.
         * 
         * @return builder
         * 
         */
        public Builder standbyAvailabilityZone(String standbyAvailabilityZone) {
            return standbyAvailabilityZone(Output.of(standbyAvailabilityZone));
        }

        public HighAvailabilityArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy