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

com.pulumi.azure.mssql.outputs.ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.mssql.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 ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy {
    /**
     * @return Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted.
     * 
     */
    private @Nullable Integer graceMinutes;
    /**
     * @return The failover mode. Possible values are `Automatic` or `Manual`.
     * 
     */
    private String mode;

    private ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy() {}
    /**
     * @return Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted.
     * 
     */
    public Optional graceMinutes() {
        return Optional.ofNullable(this.graceMinutes);
    }
    /**
     * @return The failover mode. Possible values are `Automatic` or `Manual`.
     * 
     */
    public String mode() {
        return this.mode;
    }

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

    public static Builder builder(ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer graceMinutes;
        private String mode;
        public Builder() {}
        public Builder(ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.graceMinutes = defaults.graceMinutes;
    	      this.mode = defaults.mode;
        }

        @CustomType.Setter
        public Builder graceMinutes(@Nullable Integer graceMinutes) {

            this.graceMinutes = graceMinutes;
            return this;
        }
        @CustomType.Setter
        public Builder mode(String mode) {
            if (mode == null) {
              throw new MissingRequiredPropertyException("ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy", "mode");
            }
            this.mode = mode;
            return this;
        }
        public ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy build() {
            final var _resultValue = new ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy();
            _resultValue.graceMinutes = graceMinutes;
            _resultValue.mode = mode;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy