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

com.pulumi.azurenative.sql.outputs.GetDisasterRecoveryConfigurationResult 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.azurenative.sql.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetDisasterRecoveryConfigurationResult {
    /**
     * @return Whether or not failover can be done automatically.
     * 
     */
    private String autoFailover;
    /**
     * @return How aggressive the automatic failover should be.
     * 
     */
    private String failoverPolicy;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Location of the server that contains this disaster recovery configuration.
     * 
     */
    private String location;
    /**
     * @return Logical name of the server.
     * 
     */
    private String logicalServerName;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Logical name of the partner server.
     * 
     */
    private String partnerLogicalServerName;
    /**
     * @return Id of the partner server.
     * 
     */
    private String partnerServerId;
    /**
     * @return The role of the current server in the disaster recovery configuration.
     * 
     */
    private String role;
    /**
     * @return The status of the disaster recovery configuration.
     * 
     */
    private String status;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetDisasterRecoveryConfigurationResult() {}
    /**
     * @return Whether or not failover can be done automatically.
     * 
     */
    public String autoFailover() {
        return this.autoFailover;
    }
    /**
     * @return How aggressive the automatic failover should be.
     * 
     */
    public String failoverPolicy() {
        return this.failoverPolicy;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Location of the server that contains this disaster recovery configuration.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Logical name of the server.
     * 
     */
    public String logicalServerName() {
        return this.logicalServerName;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Logical name of the partner server.
     * 
     */
    public String partnerLogicalServerName() {
        return this.partnerLogicalServerName;
    }
    /**
     * @return Id of the partner server.
     * 
     */
    public String partnerServerId() {
        return this.partnerServerId;
    }
    /**
     * @return The role of the current server in the disaster recovery configuration.
     * 
     */
    public String role() {
        return this.role;
    }
    /**
     * @return The status of the disaster recovery configuration.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetDisasterRecoveryConfigurationResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String autoFailover;
        private String failoverPolicy;
        private String id;
        private String location;
        private String logicalServerName;
        private String name;
        private String partnerLogicalServerName;
        private String partnerServerId;
        private String role;
        private String status;
        private String type;
        public Builder() {}
        public Builder(GetDisasterRecoveryConfigurationResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoFailover = defaults.autoFailover;
    	      this.failoverPolicy = defaults.failoverPolicy;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.logicalServerName = defaults.logicalServerName;
    	      this.name = defaults.name;
    	      this.partnerLogicalServerName = defaults.partnerLogicalServerName;
    	      this.partnerServerId = defaults.partnerServerId;
    	      this.role = defaults.role;
    	      this.status = defaults.status;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder autoFailover(String autoFailover) {
            if (autoFailover == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "autoFailover");
            }
            this.autoFailover = autoFailover;
            return this;
        }
        @CustomType.Setter
        public Builder failoverPolicy(String failoverPolicy) {
            if (failoverPolicy == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "failoverPolicy");
            }
            this.failoverPolicy = failoverPolicy;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder logicalServerName(String logicalServerName) {
            if (logicalServerName == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "logicalServerName");
            }
            this.logicalServerName = logicalServerName;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder partnerLogicalServerName(String partnerLogicalServerName) {
            if (partnerLogicalServerName == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "partnerLogicalServerName");
            }
            this.partnerLogicalServerName = partnerLogicalServerName;
            return this;
        }
        @CustomType.Setter
        public Builder partnerServerId(String partnerServerId) {
            if (partnerServerId == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "partnerServerId");
            }
            this.partnerServerId = partnerServerId;
            return this;
        }
        @CustomType.Setter
        public Builder role(String role) {
            if (role == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "role");
            }
            this.role = role;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetDisasterRecoveryConfigurationResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetDisasterRecoveryConfigurationResult build() {
            final var _resultValue = new GetDisasterRecoveryConfigurationResult();
            _resultValue.autoFailover = autoFailover;
            _resultValue.failoverPolicy = failoverPolicy;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.logicalServerName = logicalServerName;
            _resultValue.name = name;
            _resultValue.partnerLogicalServerName = partnerLogicalServerName;
            _resultValue.partnerServerId = partnerServerId;
            _resultValue.role = role;
            _resultValue.status = status;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy