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

com.pulumi.azurenative.cache.outputs.RedisInstanceDetailsResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.cache.outputs;

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

@CustomType
public final class RedisInstanceDetailsResponse {
    /**
     * @return Specifies whether the instance is a primary node.
     * 
     */
    private Boolean isMaster;
    /**
     * @return Specifies whether the instance is a primary node.
     * 
     */
    private Boolean isPrimary;
    /**
     * @return If enableNonSslPort is true, provides Redis instance Non-SSL port.
     * 
     */
    private Integer nonSslPort;
    /**
     * @return If clustering is enabled, the Shard ID of Redis Instance
     * 
     */
    private Integer shardId;
    /**
     * @return Redis instance SSL port.
     * 
     */
    private Integer sslPort;
    /**
     * @return If the Cache uses availability zones, specifies availability zone where this instance is located.
     * 
     */
    private String zone;

    private RedisInstanceDetailsResponse() {}
    /**
     * @return Specifies whether the instance is a primary node.
     * 
     */
    public Boolean isMaster() {
        return this.isMaster;
    }
    /**
     * @return Specifies whether the instance is a primary node.
     * 
     */
    public Boolean isPrimary() {
        return this.isPrimary;
    }
    /**
     * @return If enableNonSslPort is true, provides Redis instance Non-SSL port.
     * 
     */
    public Integer nonSslPort() {
        return this.nonSslPort;
    }
    /**
     * @return If clustering is enabled, the Shard ID of Redis Instance
     * 
     */
    public Integer shardId() {
        return this.shardId;
    }
    /**
     * @return Redis instance SSL port.
     * 
     */
    public Integer sslPort() {
        return this.sslPort;
    }
    /**
     * @return If the Cache uses availability zones, specifies availability zone where this instance is located.
     * 
     */
    public String zone() {
        return this.zone;
    }

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

    public static Builder builder(RedisInstanceDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean isMaster;
        private Boolean isPrimary;
        private Integer nonSslPort;
        private Integer shardId;
        private Integer sslPort;
        private String zone;
        public Builder() {}
        public Builder(RedisInstanceDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.isMaster = defaults.isMaster;
    	      this.isPrimary = defaults.isPrimary;
    	      this.nonSslPort = defaults.nonSslPort;
    	      this.shardId = defaults.shardId;
    	      this.sslPort = defaults.sslPort;
    	      this.zone = defaults.zone;
        }

        @CustomType.Setter
        public Builder isMaster(Boolean isMaster) {
            if (isMaster == null) {
              throw new MissingRequiredPropertyException("RedisInstanceDetailsResponse", "isMaster");
            }
            this.isMaster = isMaster;
            return this;
        }
        @CustomType.Setter
        public Builder isPrimary(Boolean isPrimary) {
            if (isPrimary == null) {
              throw new MissingRequiredPropertyException("RedisInstanceDetailsResponse", "isPrimary");
            }
            this.isPrimary = isPrimary;
            return this;
        }
        @CustomType.Setter
        public Builder nonSslPort(Integer nonSslPort) {
            if (nonSslPort == null) {
              throw new MissingRequiredPropertyException("RedisInstanceDetailsResponse", "nonSslPort");
            }
            this.nonSslPort = nonSslPort;
            return this;
        }
        @CustomType.Setter
        public Builder shardId(Integer shardId) {
            if (shardId == null) {
              throw new MissingRequiredPropertyException("RedisInstanceDetailsResponse", "shardId");
            }
            this.shardId = shardId;
            return this;
        }
        @CustomType.Setter
        public Builder sslPort(Integer sslPort) {
            if (sslPort == null) {
              throw new MissingRequiredPropertyException("RedisInstanceDetailsResponse", "sslPort");
            }
            this.sslPort = sslPort;
            return this;
        }
        @CustomType.Setter
        public Builder zone(String zone) {
            if (zone == null) {
              throw new MissingRequiredPropertyException("RedisInstanceDetailsResponse", "zone");
            }
            this.zone = zone;
            return this;
        }
        public RedisInstanceDetailsResponse build() {
            final var _resultValue = new RedisInstanceDetailsResponse();
            _resultValue.isMaster = isMaster;
            _resultValue.isPrimary = isPrimary;
            _resultValue.nonSslPort = nonSslPort;
            _resultValue.shardId = shardId;
            _resultValue.sslPort = sslPort;
            _resultValue.zone = zone;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy