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

com.pulumi.azurenative.sql.inputs.FailoverGroupReadOnlyEndpointArgs Maven / Gradle / Ivy

The 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.sql.inputs;

import com.pulumi.azurenative.sql.enums.ReadOnlyEndpointFailoverPolicy;
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;


/**
 * Read-only endpoint of the failover group instance.
 * 
 */
public final class FailoverGroupReadOnlyEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final FailoverGroupReadOnlyEndpointArgs Empty = new FailoverGroupReadOnlyEndpointArgs();

    /**
     * Failover policy of the read-only endpoint for the failover group.
     * 
     */
    @Import(name="failoverPolicy")
    private @Nullable Output> failoverPolicy;

    /**
     * @return Failover policy of the read-only endpoint for the failover group.
     * 
     */
    public Optional>> failoverPolicy() {
        return Optional.ofNullable(this.failoverPolicy);
    }

    private FailoverGroupReadOnlyEndpointArgs() {}

    private FailoverGroupReadOnlyEndpointArgs(FailoverGroupReadOnlyEndpointArgs $) {
        this.failoverPolicy = $.failoverPolicy;
    }

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

    public static final class Builder {
        private FailoverGroupReadOnlyEndpointArgs $;

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

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

        /**
         * @param failoverPolicy Failover policy of the read-only endpoint for the failover group.
         * 
         * @return builder
         * 
         */
        public Builder failoverPolicy(@Nullable Output> failoverPolicy) {
            $.failoverPolicy = failoverPolicy;
            return this;
        }

        /**
         * @param failoverPolicy Failover policy of the read-only endpoint for the failover group.
         * 
         * @return builder
         * 
         */
        public Builder failoverPolicy(Either failoverPolicy) {
            return failoverPolicy(Output.of(failoverPolicy));
        }

        /**
         * @param failoverPolicy Failover policy of the read-only endpoint for the failover group.
         * 
         * @return builder
         * 
         */
        public Builder failoverPolicy(String failoverPolicy) {
            return failoverPolicy(Either.ofLeft(failoverPolicy));
        }

        /**
         * @param failoverPolicy Failover policy of the read-only endpoint for the failover group.
         * 
         * @return builder
         * 
         */
        public Builder failoverPolicy(ReadOnlyEndpointFailoverPolicy failoverPolicy) {
            return failoverPolicy(Either.ofRight(failoverPolicy));
        }

        public FailoverGroupReadOnlyEndpointArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy