@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getDeviceId() != null)
            sb.append("DeviceId: ").append(getDeviceId()).append(",");
        if (getSampleTime() != null)
            sb.append("SampleTime: ").append(getSampleTime()).append(",");
        if (getPosition() != null)
            sb.append("Position: ").append("***Sensitive Data Redacted***").append(",");
        if (getAccuracy() != null)
            sb.append("Accuracy: ").append(getAccuracy()).append(",");
        if (getIpv4Address() != null)
            sb.append("Ipv4Address: ").append(getIpv4Address()).append(",");
        if (getWiFiAccessPoints() != null)
            sb.append("WiFiAccessPoints: ").append(getWiFiAccessPoints()).append(",");
        if (getCellSignals() != null)
            sb.append("CellSignals: ").append(getCellSignals());
        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-location/src/main/java/com/amazonaws/services/location/model/DeviceState.java