@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getLocationCode() != null)
            sb.append("LocationCode: ").append(getLocationCode()).append(",");
        if (getLocationName() != null)
            sb.append("LocationName: ").append(getLocationName()).append(",");
        if (getRegion() != null)
            sb.append("Region: ").append(getRegion()).append(",");
        if (getAvailablePortSpeeds() != null)
            sb.append("AvailablePortSpeeds: ").append(getAvailablePortSpeeds()).append(",");
        if (getAvailableProviders() != null)
            sb.append("AvailableProviders: ").append(getAvailableProviders()).append(",");
        if (getAvailableMacSecPortSpeeds() != null)
            sb.append("AvailableMacSecPortSpeeds: ").append(getAvailableMacSecPortSpeeds());
        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-directconnect/src/main/java/com/amazonaws/services/directconnect/model/Location.java