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

com.pulumi.azurenative.azurearcdata.outputs.AvailabilityGroupConfigureResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurearcdata.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 AvailabilityGroupConfigureResponse {
    /**
     * @return The Availability Synchronization mode of the availability group replica.
     * 
     */
    private String availabilityModeDescription;
    /**
     * @return Represents the user-specified priority for performing backups on this replica relative to the other replicas in the same availability group.
     * 
     */
    private @Nullable Integer backupPriority;
    /**
     * @return Mirroring endpoint URL of availability group replica
     * 
     */
    private @Nullable String endpointUrl;
    /**
     * @return The failover mode of the availability group replica.
     * 
     */
    private String failoverModeDescription;
    /**
     * @return Whether the availability allows all connections or only read-write connections.
     * 
     */
    private String primaryRoleAllowConnectionsDescription;
    /**
     * @return Connectivity endpoint (URL) of the read only availability replica.
     * 
     */
    private @Nullable String readOnlyRoutingUrl;
    /**
     * @return Connectivity endpoint (URL) of the read write availability replica.
     * 
     */
    private @Nullable String readWriteRoutingUrl;
    /**
     * @return Date that the replica was created.
     * 
     */
    private String replicaCreateDate;
    /**
     * @return Date that the replica was modified.
     * 
     */
    private String replicaModifyDate;
    /**
     * @return Whether an availability replica that is performing the secondary role (that is, a secondary replica) can accept connections from clients.
     * 
     */
    private String secondaryRoleAllowConnectionsDescription;
    /**
     * @return Describes seeding mode.
     * 
     */
    private String seedingModeDescription;
    /**
     * @return The time-out period of availability group session replica, in seconds.
     * 
     */
    private @Nullable Integer sessionTimeout;

    private AvailabilityGroupConfigureResponse() {}
    /**
     * @return The Availability Synchronization mode of the availability group replica.
     * 
     */
    public String availabilityModeDescription() {
        return this.availabilityModeDescription;
    }
    /**
     * @return Represents the user-specified priority for performing backups on this replica relative to the other replicas in the same availability group.
     * 
     */
    public Optional backupPriority() {
        return Optional.ofNullable(this.backupPriority);
    }
    /**
     * @return Mirroring endpoint URL of availability group replica
     * 
     */
    public Optional endpointUrl() {
        return Optional.ofNullable(this.endpointUrl);
    }
    /**
     * @return The failover mode of the availability group replica.
     * 
     */
    public String failoverModeDescription() {
        return this.failoverModeDescription;
    }
    /**
     * @return Whether the availability allows all connections or only read-write connections.
     * 
     */
    public String primaryRoleAllowConnectionsDescription() {
        return this.primaryRoleAllowConnectionsDescription;
    }
    /**
     * @return Connectivity endpoint (URL) of the read only availability replica.
     * 
     */
    public Optional readOnlyRoutingUrl() {
        return Optional.ofNullable(this.readOnlyRoutingUrl);
    }
    /**
     * @return Connectivity endpoint (URL) of the read write availability replica.
     * 
     */
    public Optional readWriteRoutingUrl() {
        return Optional.ofNullable(this.readWriteRoutingUrl);
    }
    /**
     * @return Date that the replica was created.
     * 
     */
    public String replicaCreateDate() {
        return this.replicaCreateDate;
    }
    /**
     * @return Date that the replica was modified.
     * 
     */
    public String replicaModifyDate() {
        return this.replicaModifyDate;
    }
    /**
     * @return Whether an availability replica that is performing the secondary role (that is, a secondary replica) can accept connections from clients.
     * 
     */
    public String secondaryRoleAllowConnectionsDescription() {
        return this.secondaryRoleAllowConnectionsDescription;
    }
    /**
     * @return Describes seeding mode.
     * 
     */
    public String seedingModeDescription() {
        return this.seedingModeDescription;
    }
    /**
     * @return The time-out period of availability group session replica, in seconds.
     * 
     */
    public Optional sessionTimeout() {
        return Optional.ofNullable(this.sessionTimeout);
    }

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

    public static Builder builder(AvailabilityGroupConfigureResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String availabilityModeDescription;
        private @Nullable Integer backupPriority;
        private @Nullable String endpointUrl;
        private String failoverModeDescription;
        private String primaryRoleAllowConnectionsDescription;
        private @Nullable String readOnlyRoutingUrl;
        private @Nullable String readWriteRoutingUrl;
        private String replicaCreateDate;
        private String replicaModifyDate;
        private String secondaryRoleAllowConnectionsDescription;
        private String seedingModeDescription;
        private @Nullable Integer sessionTimeout;
        public Builder() {}
        public Builder(AvailabilityGroupConfigureResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.availabilityModeDescription = defaults.availabilityModeDescription;
    	      this.backupPriority = defaults.backupPriority;
    	      this.endpointUrl = defaults.endpointUrl;
    	      this.failoverModeDescription = defaults.failoverModeDescription;
    	      this.primaryRoleAllowConnectionsDescription = defaults.primaryRoleAllowConnectionsDescription;
    	      this.readOnlyRoutingUrl = defaults.readOnlyRoutingUrl;
    	      this.readWriteRoutingUrl = defaults.readWriteRoutingUrl;
    	      this.replicaCreateDate = defaults.replicaCreateDate;
    	      this.replicaModifyDate = defaults.replicaModifyDate;
    	      this.secondaryRoleAllowConnectionsDescription = defaults.secondaryRoleAllowConnectionsDescription;
    	      this.seedingModeDescription = defaults.seedingModeDescription;
    	      this.sessionTimeout = defaults.sessionTimeout;
        }

        @CustomType.Setter
        public Builder availabilityModeDescription(String availabilityModeDescription) {
            if (availabilityModeDescription == null) {
              throw new MissingRequiredPropertyException("AvailabilityGroupConfigureResponse", "availabilityModeDescription");
            }
            this.availabilityModeDescription = availabilityModeDescription;
            return this;
        }
        @CustomType.Setter
        public Builder backupPriority(@Nullable Integer backupPriority) {

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

            this.endpointUrl = endpointUrl;
            return this;
        }
        @CustomType.Setter
        public Builder failoverModeDescription(String failoverModeDescription) {
            if (failoverModeDescription == null) {
              throw new MissingRequiredPropertyException("AvailabilityGroupConfigureResponse", "failoverModeDescription");
            }
            this.failoverModeDescription = failoverModeDescription;
            return this;
        }
        @CustomType.Setter
        public Builder primaryRoleAllowConnectionsDescription(String primaryRoleAllowConnectionsDescription) {
            if (primaryRoleAllowConnectionsDescription == null) {
              throw new MissingRequiredPropertyException("AvailabilityGroupConfigureResponse", "primaryRoleAllowConnectionsDescription");
            }
            this.primaryRoleAllowConnectionsDescription = primaryRoleAllowConnectionsDescription;
            return this;
        }
        @CustomType.Setter
        public Builder readOnlyRoutingUrl(@Nullable String readOnlyRoutingUrl) {

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

            this.readWriteRoutingUrl = readWriteRoutingUrl;
            return this;
        }
        @CustomType.Setter
        public Builder replicaCreateDate(String replicaCreateDate) {
            if (replicaCreateDate == null) {
              throw new MissingRequiredPropertyException("AvailabilityGroupConfigureResponse", "replicaCreateDate");
            }
            this.replicaCreateDate = replicaCreateDate;
            return this;
        }
        @CustomType.Setter
        public Builder replicaModifyDate(String replicaModifyDate) {
            if (replicaModifyDate == null) {
              throw new MissingRequiredPropertyException("AvailabilityGroupConfigureResponse", "replicaModifyDate");
            }
            this.replicaModifyDate = replicaModifyDate;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryRoleAllowConnectionsDescription(String secondaryRoleAllowConnectionsDescription) {
            if (secondaryRoleAllowConnectionsDescription == null) {
              throw new MissingRequiredPropertyException("AvailabilityGroupConfigureResponse", "secondaryRoleAllowConnectionsDescription");
            }
            this.secondaryRoleAllowConnectionsDescription = secondaryRoleAllowConnectionsDescription;
            return this;
        }
        @CustomType.Setter
        public Builder seedingModeDescription(String seedingModeDescription) {
            if (seedingModeDescription == null) {
              throw new MissingRequiredPropertyException("AvailabilityGroupConfigureResponse", "seedingModeDescription");
            }
            this.seedingModeDescription = seedingModeDescription;
            return this;
        }
        @CustomType.Setter
        public Builder sessionTimeout(@Nullable Integer sessionTimeout) {

            this.sessionTimeout = sessionTimeout;
            return this;
        }
        public AvailabilityGroupConfigureResponse build() {
            final var _resultValue = new AvailabilityGroupConfigureResponse();
            _resultValue.availabilityModeDescription = availabilityModeDescription;
            _resultValue.backupPriority = backupPriority;
            _resultValue.endpointUrl = endpointUrl;
            _resultValue.failoverModeDescription = failoverModeDescription;
            _resultValue.primaryRoleAllowConnectionsDescription = primaryRoleAllowConnectionsDescription;
            _resultValue.readOnlyRoutingUrl = readOnlyRoutingUrl;
            _resultValue.readWriteRoutingUrl = readWriteRoutingUrl;
            _resultValue.replicaCreateDate = replicaCreateDate;
            _resultValue.replicaModifyDate = replicaModifyDate;
            _resultValue.secondaryRoleAllowConnectionsDescription = secondaryRoleAllowConnectionsDescription;
            _resultValue.seedingModeDescription = seedingModeDescription;
            _resultValue.sessionTimeout = sessionTimeout;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy