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

com.pulumi.azurenative.dbforpostgresql.outputs.HighAvailabilityResponse 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.dbforpostgresql.outputs;

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

@CustomType
public final class HighAvailabilityResponse {
    /**
     * @return The HA mode for the server.
     * 
     */
    private @Nullable String mode;
    /**
     * @return availability zone information of the standby.
     * 
     */
    private @Nullable String standbyAvailabilityZone;
    /**
     * @return A state of a HA server that is visible to user.
     * 
     */
    private String state;

    private HighAvailabilityResponse() {}
    /**
     * @return The HA mode for the server.
     * 
     */
    public Optional mode() {
        return Optional.ofNullable(this.mode);
    }
    /**
     * @return availability zone information of the standby.
     * 
     */
    public Optional standbyAvailabilityZone() {
        return Optional.ofNullable(this.standbyAvailabilityZone);
    }
    /**
     * @return A state of a HA server that is visible to user.
     * 
     */
    public String state() {
        return this.state;
    }

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

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

        @CustomType.Setter
        public Builder mode(@Nullable String mode) {

            this.mode = mode;
            return this;
        }
        @CustomType.Setter
        public Builder standbyAvailabilityZone(@Nullable String standbyAvailabilityZone) {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy