@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getNodeGroupId() != null)
            sb.append("NodeGroupId: ").append(getNodeGroupId()).append(",");
        if (getSlots() != null)
            sb.append("Slots: ").append(getSlots()).append(",");
        if (getReplicaCount() != null)
            sb.append("ReplicaCount: ").append(getReplicaCount()).append(",");
        if (getPrimaryAvailabilityZone() != null)
            sb.append("PrimaryAvailabilityZone: ").append(getPrimaryAvailabilityZone()).append(",");
        if (getReplicaAvailabilityZones() != null)
            sb.append("ReplicaAvailabilityZones: ").append(getReplicaAvailabilityZones()).append(",");
        if (getPrimaryOutpostArn() != null)
            sb.append("PrimaryOutpostArn: ").append(getPrimaryOutpostArn()).append(",");
        if (getReplicaOutpostArns() != null)
            sb.append("ReplicaOutpostArns: ").append(getReplicaOutpostArns());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/NodeGroupConfiguration.java